Go to the documentation of this file.
15 #ifndef LLVM_OBJECTYAML_WASMYAML_H
16 #define LLVM_OBJECTYAML_WASMYAML_H
204 auto C = dyn_cast<CustomSection>(
S);
205 return C &&
C->Name ==
"dylink";
219 auto C = dyn_cast<CustomSection>(
S);
220 return C &&
C->Name ==
"name";
232 auto C = dyn_cast<CustomSection>(
S);
233 return C &&
C->Name ==
"linking";
247 auto C = dyn_cast<CustomSection>(
S);
248 return C &&
C->Name ==
"producers";
253 std::vector<ProducerEntry>
SDKs;
260 auto C = dyn_cast<CustomSection>(
S);
261 return C &&
C->Name ==
"target_features";
436 static void mapping(IO &IO, std::unique_ptr<WasmYAML::Section> &
Section);
455 template <>
struct ScalarBitSetTraits<WasmYAML::LimitFlags> {
456 static void bitset(IO &IO, WasmYAML::LimitFlags &
Value);
463 template <>
struct ScalarEnumerationTraits<WasmYAML::
SymbolKind> {
467 template <>
struct ScalarBitSetTraits<WasmYAML::SegmentFlags> {
468 static void bitset(IO &IO, WasmYAML::SegmentFlags &
Value);
471 template <>
struct ScalarEnumerationTraits<WasmYAML::
SectionType> {
503 template <>
struct ScalarEnumerationTraits<WasmYAML::FeaturePolicyPrefix> {
504 static void enumeration(IO &IO, WasmYAML::FeaturePolicyPrefix &
Prefix);
539 template <>
struct ScalarEnumerationTraits<WasmYAML::ComdatKind> {
540 static void enumeration(IO &IO, WasmYAML::ComdatKind &
Kind);
551 template <>
struct ScalarEnumerationTraits<WasmYAML::
ValueType> {
555 template <>
struct ScalarEnumerationTraits<WasmYAML::ExportKind> {
556 static void enumeration(IO &IO, WasmYAML::ExportKind &
Kind);
559 template <>
struct ScalarEnumerationTraits<WasmYAML::TableType> {
560 static void enumeration(IO &IO, WasmYAML::TableType &
Type);
563 template <>
struct ScalarEnumerationTraits<WasmYAML::Opcode> {
564 static void enumeration(IO &IO, WasmYAML::Opcode &Opcode);
567 template <>
struct ScalarEnumerationTraits<WasmYAML::RelocType> {
568 static void enumeration(IO &IO, WasmYAML::RelocType &
Kind);
578 #endif // LLVM_OBJECTYAML_WASMYAML_H
std::vector< SymbolInfo > SymbolTable
std::vector< Table > Tables
std::vector< LocalDecl > Locals
std::vector< Relocation > Relocations
This class represents lattice values for constants.
std::vector< std::unique_ptr< Section > > Sections
SymbolKind
Duplicate copy of the above enum, but using the official CV names.
std::vector< uint32_t > FunctionTypes
static bool classof(const Section *S)
#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)
wasm::WasmInitExpr Offset
The instances of the Type class are immutable: once they are created, they are never changed.
std::vector< NameEntry > GlobalNames
static bool classof(const Section *S)
static bool classof(const Section *S)
std::vector< Global > Globals
std::vector< Comdat > Comdats
(vector float) vec_cmpeq(*A, *B) C
std::vector< ValueType > ReturnTypes
std::vector< StringRef > Needed
std::vector< SegmentInfo > SegmentInfos
std::vector< FeatureEntry > Features
Analysis containing CSE Info
@ Import
Import information from summary.
std::vector< uint32_t > Functions
static bool classof(const Section *S)
std::vector< Export > Exports
CustomSection(StringRef Name)
static bool classof(const Section *S)
static bool classof(const Section *S)
static bool classof(const Section *S)
#define LLVM_YAML_STRONG_TYPEDEF(_base, _type)
std::vector< Signature > Signatures
static bool classof(const Section *S)
wasm::WasmInitExpr Offset
static bool classof(const Section *S)
static bool classof(const Section *S)
static bool classof(const Section *S)
FeaturePolicyPrefix Prefix
static bool classof(const Section *S)
static bool classof(const Section *S)
std::vector< Function > Functions
StringRef - Represent a constant reference to a string, i.e.
Specialized YAMLIO scalar type for representing a binary blob.
wasm::WasmInitExpr InitExpr
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
static bool classof(const Section *S)
static bool classof(const Section *S)
std::vector< Event > Events
std::vector< ComdatEntry > Entries
static bool classof(const Section *S)
Section(SectionType SecType)
std::vector< DataSegment > Segments
static bool classof(const Section *S)
std::vector< InitFunction > InitFunctions
std::vector< NameEntry > FunctionNames
wasm::WasmDataReference DataRef
std::vector< NameEntry > DataSegmentNames
std::vector< ValueType > ParamTypes
std::vector< Limits > Memories
static bool classof(const Section *S)
LLVM Value Representation.
std::vector< ElemSegment > Segments
std::vector< Import > Imports
SectionType
These are the section type and attributes fields.