LLVM: include/llvm/XRay/YAMLXRayRecord.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12#ifndef LLVM_XRAY_YAMLXRAYRECORD_H
13#define LLVM_XRAY_YAMLXRAYRECORD_H
14
17
19
27
40
45
46}
47
48namespace llvm {
49
50
61
71
85
86 static constexpr bool flow = true;
87};
88
97}
98
100
101#endif
#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)
Utility for declaring that a std::vector of a particular type should be considered a YAML sequence.
The instances of the Type class are immutable: once they are created, they are never changed.
void enumCase(T &Val, StringRef Str, const T ConstVal)
void mapOptional(StringRef Key, T &Val)
void mapRequired(StringRef Key, T &Val)
RecordTypes
Determines the supported types of records that could be seen in XRay traces.
This is an optimization pass for GlobalISel generic memory operations.
Definition YAMLXRayRecord.h:28
uint32_t TId
Definition YAMLXRayRecord.h:35
uint64_t TSC
Definition YAMLXRayRecord.h:34
std::string Data
Definition YAMLXRayRecord.h:38
RecordTypes Type
Definition YAMLXRayRecord.h:31
std::vector< uint64_t > CallArgs
Definition YAMLXRayRecord.h:37
std::string Function
Definition YAMLXRayRecord.h:33
int32_t FuncId
Definition YAMLXRayRecord.h:32
uint16_t CPU
Definition YAMLXRayRecord.h:30
uint32_t PId
Definition YAMLXRayRecord.h:36
uint16_t RecordType
Definition YAMLXRayRecord.h:29
Definition YAMLXRayRecord.h:41
std::vector< YAMLXRayRecord > Records
Definition YAMLXRayRecord.h:43
YAMLXRayFileHeader Header
Definition YAMLXRayRecord.h:42
static void mapping(IO &IO, xray::YAMLXRayTrace &Trace)
Definition YAMLXRayRecord.h:90
static constexpr bool flow
Definition YAMLXRayRecord.h:86
static void mapping(IO &IO, xray::YAMLXRayRecord &Record)
Definition YAMLXRayRecord.h:73
This class should be specialized by any type that needs to be converted to/from a YAML mapping.
static void enumeration(IO &IO, xray::RecordTypes &Type)
Definition YAMLXRayRecord.h:52
This class should be specialized by any integral type that converts to/from a YAML scalar where there...