Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / lib / xray / xray_profiling_flags.h
blobd67f240adc8833f309c24c9add8e2fe2525a5892
1 //===-- xray_profiling_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 //===----------------------------------------------------------------------===//
8 //
9 // This file is a part of XRay, a dynamic runtime instrumentation system.
11 // XRay profiling runtime flags.
12 //===----------------------------------------------------------------------===//
14 #ifndef XRAY_PROFILER_FLAGS_H
15 #define XRAY_PROFILER_FLAGS_H
17 #include "sanitizer_common/sanitizer_flag_parser.h"
18 #include "sanitizer_common/sanitizer_internal_defs.h"
20 namespace __xray {
22 struct ProfilerFlags {
23 #define XRAY_FLAG(Type, Name, DefaultValue, Description) Type Name;
24 #include "xray_profiling_flags.inc"
25 #undef XRAY_FLAG
27 void setDefaults();
30 extern ProfilerFlags xray_profiling_flags_dont_use_directly;
31 inline ProfilerFlags *profilingFlags() {
32 return &xray_profiling_flags_dont_use_directly;
34 void registerProfilerFlags(FlagParser *P, ProfilerFlags *F);
36 } // namespace __xray
38 #endif // XRAY_PROFILER_FLAGS_H