10b57cec5SDimitry Andric //===-- xray_basic_flags.h -------------------------------------*- C++ -*-===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric // 9*349cc55cSDimitry Andric // This file is a part of XRay, a dynamic runtime instrumentation system. 100b57cec5SDimitry Andric // 110b57cec5SDimitry Andric // XRay Basic Mode runtime flags. 120b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 130b57cec5SDimitry Andric 140b57cec5SDimitry Andric #ifndef XRAY_BASIC_FLAGS_H 150b57cec5SDimitry Andric #define XRAY_BASIC_FLAGS_H 160b57cec5SDimitry Andric 170b57cec5SDimitry Andric #include "sanitizer_common/sanitizer_flag_parser.h" 180b57cec5SDimitry Andric #include "sanitizer_common/sanitizer_internal_defs.h" 190b57cec5SDimitry Andric 200b57cec5SDimitry Andric namespace __xray { 210b57cec5SDimitry Andric 220b57cec5SDimitry Andric struct BasicFlags { 230b57cec5SDimitry Andric #define XRAY_FLAG(Type, Name, DefaultValue, Description) Type Name; 240b57cec5SDimitry Andric #include "xray_basic_flags.inc" 250b57cec5SDimitry Andric #undef XRAY_FLAG 260b57cec5SDimitry Andric 270b57cec5SDimitry Andric void setDefaults(); 280b57cec5SDimitry Andric }; 290b57cec5SDimitry Andric 300b57cec5SDimitry Andric extern BasicFlags xray_basic_flags_dont_use_directly; 310b57cec5SDimitry Andric extern void registerXRayBasicFlags(FlagParser *P, BasicFlags *F); 320b57cec5SDimitry Andric const char *useCompilerDefinedBasicFlags(); basicFlags()330b57cec5SDimitry Andricinline BasicFlags *basicFlags() { return &xray_basic_flags_dont_use_directly; } 340b57cec5SDimitry Andric 350b57cec5SDimitry Andric } // namespace __xray 360b57cec5SDimitry Andric 370b57cec5SDimitry Andric #endif // XRAY_BASIC_FLAGS_H 38