[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / compiler-rt / lib / xray / xray_flags.h
blobe29d62e0a3b91955cf42ef0c72c407fba2082501
1 //===-- xray_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 runtime flags.
12 //===----------------------------------------------------------------------===//
14 #ifndef XRAY_FLAGS_H
15 #define XRAY_FLAGS_H
17 #include "sanitizer_common/sanitizer_flag_parser.h"
18 #include "sanitizer_common/sanitizer_internal_defs.h"
20 extern "C" {
21 // Users can specify their default options upon building the instrumented
22 // binaries by provide a definition of this function.
23 SANITIZER_INTERFACE_ATTRIBUTE
24 const char *__xray_default_options();
27 namespace __xray {
29 struct Flags {
30 #define XRAY_FLAG(Type, Name, DefaultValue, Description) Type Name;
31 #include "xray_flags.inc"
32 #undef XRAY_FLAG
34 void setDefaults();
37 extern Flags xray_flags_dont_use_directly;
38 extern void registerXRayFlags(FlagParser *P, Flags *F);
39 const char *useCompilerDefinedFlags();
40 inline Flags *flags() { return &xray_flags_dont_use_directly; }
42 void initializeFlags();
44 } // namespace __xray
46 #endif // XRAY_FLAGS_H