[AMDGPU] Infer amdgpu-no-flat-scratch-init attribute in AMDGPUAttributor (#94647)
[llvm-project.git] / compiler-rt / lib / scudo / standalone / flags.h
blob2cd0a5b1334be881b772c04d05111d1fc785d5f9
1 //===-- flags.h -------------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef SCUDO_FLAGS_H_
10 #define SCUDO_FLAGS_H_
12 #include "internal_defs.h"
14 namespace scudo {
16 struct Flags {
17 #define SCUDO_FLAG(Type, Name, DefaultValue, Description) Type Name;
18 #include "flags.inc"
19 #undef SCUDO_FLAG
21 #ifdef GWP_ASAN_HOOKS
22 #define GWP_ASAN_OPTION(Type, Name, DefaultValue, Description) \
23 Type GWP_ASAN_##Name;
24 #include "gwp_asan/options.inc"
25 #undef GWP_ASAN_OPTION
26 #endif // GWP_ASAN_HOOKS
28 void setDefaults();
31 Flags *getFlags();
32 void initFlags();
33 class FlagParser;
34 void registerFlags(FlagParser *Parser, Flags *F);
36 } // namespace scudo
38 #endif // SCUDO_FLAGS_H_