14#include "llvm/ADT/SmallVector.h"
15#include "llvm/ADT/StringSwitch.h"
21 llvm::StringSwitch<XRayInstrMask>(
Value)
37 Values.push_back(
"all");
42 Values.push_back(
"none");
47 Values.push_back(
"custom");
50 Values.push_back(
"typed");
54 Values.push_back(
"function");
56 Values.push_back(
"function-entry");
58 Values.push_back(
"function-exit");
Defines the clang::XRayInstrKind enum.
constexpr XRayInstrMask Typed
constexpr XRayInstrMask FunctionExit
constexpr XRayInstrMask None
constexpr XRayInstrMask FunctionEntry
constexpr XRayInstrMask All
constexpr XRayInstrMask Custom
The JSON file list parser is used to communicate input to InstallAPI.
XRayInstrMask parseXRayInstrValue(StringRef Value)
Parses a command line argument into a mask.
void serializeXRayInstrValue(XRayInstrSet Set, SmallVectorImpl< StringRef > &Values)
Serializes a set into a list of command line arguments.