1278497Sdim//===-- dfsan_flags.inc -----------------------------------------*- C++ -*-===//
2278497Sdim//
3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4353358Sdim// See https://llvm.org/LICENSE.txt for license information.
5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6278497Sdim//
7278497Sdim//===----------------------------------------------------------------------===//
8278497Sdim//
9278497Sdim// DFSan runtime flags.
10278497Sdim//
11278497Sdim//===----------------------------------------------------------------------===//
12278497Sdim#ifndef DFSAN_FLAG
13278497Sdim# error "Define DFSAN_FLAG prior to including this file!"
14278497Sdim#endif
15278497Sdim
16278497Sdim// DFSAN_FLAG(Type, Name, DefaultValue, Description)
17278497Sdim// See COMMON_FLAG in sanitizer_flags.inc for more details.
18278497Sdim
19278497SdimDFSAN_FLAG(bool, warn_unimplemented, true,
20278497Sdim           "Whether to warn on unimplemented functions.")
21278497SdimDFSAN_FLAG(bool, warn_nonzero_labels, false,
22278497Sdim           "Whether to warn on unimplemented functions.")
23278497SdimDFSAN_FLAG(
24278497Sdim    bool, strict_data_dependencies, true,
25278497Sdim    "Whether to propagate labels only when there is an obvious data dependency"
26278497Sdim    "(e.g., when comparing strings, ignore the fact that the output of the"
27278497Sdim    "comparison might be data-dependent on the content of the strings). This"
28278497Sdim    "applies only to the custom functions defined in 'custom.c'.")
29278497SdimDFSAN_FLAG(const char *, dump_labels_at_exit, "", "The path of the file where "
30278497Sdim                                                  "to dump the labels when the "
31278497Sdim                                                  "program terminates.")
32353358SdimDFSAN_FLAG(bool, fast16labels, false,
33353358Sdim    "Enables experimental mode where DFSan supports only 16 power-of-2 labels "
34353358Sdim    "(1, 2, 4, 8, ... 32768) and the label union is computed as a bit-wise OR."
35353358Sdim)
36