1 //===--- XRayArgs.h - Arguments for XRay ------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_DRIVER_XRAYARGS_H
10 #define LLVM_CLANG_DRIVER_XRAYARGS_H
12 #include "clang/Basic/XRayInstr.h"
13 #include "clang/Driver/Types.h"
14 #include "llvm/Option/Arg.h"
15 #include "llvm/Option/ArgList.h"
23 std::vector<std::string> AlwaysInstrumentFiles;
24 std::vector<std::string> NeverInstrumentFiles;
25 std::vector<std::string> AttrListFiles;
26 std::vector<std::string> ExtraDeps;
27 std::vector<std::string> Modes;
28 XRayInstrSet InstrumentationBundle;
29 bool XRayInstrument = false;
30 int InstructionThreshold = 200;
31 bool XRayAlwaysEmitCustomEvents = false;
32 bool XRayAlwaysEmitTypedEvents = false;
36 /// Parses the XRay arguments from an argument list.
37 XRayArgs(const ToolChain &TC, const llvm::opt::ArgList &Args);
38 void addArgs(const ToolChain &TC, const llvm::opt::ArgList &Args,
39 llvm::opt::ArgStringList &CmdArgs, types::ID InputType) const;
41 bool needsXRayRt() const { return XRayInstrument && XRayRT; }
42 llvm::ArrayRef<std::string> modeList() const { return Modes; }
43 XRayInstrSet instrumentationBundle() const { return InstrumentationBundle; }
49 #endif // LLVM_CLANG_DRIVER_XRAYARGS_H