LLVM: include/llvm/BinaryFormat/MsgPackReader.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38#ifndef LLVM_BINARYFORMAT_MSGPACKREADER_H
39#define LLVM_BINARYFORMAT_MSGPACKREADER_H
40
44#include
45
46namespace llvm {
48
49
50
51
52
53
67
68
69
76
77
78
79
80
81
84 union {
85
87
89
91
93
95
97
99 };
100
102};
103
104
106public:
107
109
111
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
130
131private:
135
136 size_t remainingSpace() {
137
138
139 return static_cast<size_t>(End - Current);
140 }
141
149};
150
151}
152}
153
154#endif
The Input class is used to parse a yaml document into in-memory structs and vectors.
Tagged union holding either a T or a Error.
StringRef - Represent a constant reference to a string, i.e.
Reader(const Reader &)=delete
LLVM_ABI Reader(MemoryBufferRef InputBuffer)
Construct a reader, keeping a reference to the InputBuffer.
LLVM_ABI Expected< bool > read(Object &Obj)
Read one object from the input buffer, advancing past it.
Reader & operator=(const Reader &)=delete
Type
MessagePack types as defined in the standard, with the exception of Integer being divided into a sign...
Definition MsgPackReader.h:54
@ UInt
Definition MsgPackReader.h:56
@ Int
Definition MsgPackReader.h:55
@ Float
Definition MsgPackReader.h:59
@ String
Definition MsgPackReader.h:60
@ Boolean
Definition MsgPackReader.h:58
@ Array
Definition MsgPackReader.h:62
@ Map
Definition MsgPackReader.h:63
@ Nil
Definition MsgPackReader.h:57
@ Extension
Definition MsgPackReader.h:64
@ Binary
Definition MsgPackReader.h:61
@ Empty
Definition MsgPackReader.h:65
This is an optimization pass for GlobalISel generic memory operations.
Extension types are composed of a user-defined type ID and an uninterpreted sequence of bytes.
Definition MsgPackReader.h:70
int8_t Type
User-defined extension type.
Definition MsgPackReader.h:72
StringRef Bytes
Raw bytes of the extension object.
Definition MsgPackReader.h:74
MessagePack object, represented as a tagged union of C++ types.
Definition MsgPackReader.h:82
int64_t Int
Value for Type::Int.
Definition MsgPackReader.h:86
double Float
Value for Type::Float.
Definition MsgPackReader.h:92
StringRef Raw
Value for Type::String and Type::Binary.
Definition MsgPackReader.h:94
Type Kind
Definition MsgPackReader.h:83
uint64_t UInt
Value for Type::Uint.
Definition MsgPackReader.h:88
bool Bool
Value for Type::Boolean.
Definition MsgPackReader.h:90
Object()
Definition MsgPackReader.h:101
ExtensionType Extension
Value for Type::Extension.
Definition MsgPackReader.h:98
size_t Length
Value for Type::Array and Type::Map.
Definition MsgPackReader.h:96