16 #ifndef LLVM_OBJECTYAML_WASMYAML_H 17 #define LLVM_OBJECTYAML_WASMYAML_H 32 LLVM_YAML_STRONG_TYPEDEF(
uint32_t, TableType)
33 LLVM_YAML_STRONG_TYPEDEF(
uint32_t, SignatureForm)
34 LLVM_YAML_STRONG_TYPEDEF(
uint32_t, ExportKind)
35 LLVM_YAML_STRONG_TYPEDEF(
uint32_t, Opcode)
36 LLVM_YAML_STRONG_TYPEDEF(
uint32_t, RelocType)
37 LLVM_YAML_STRONG_TYPEDEF(
uint32_t, SymbolFlags)
39 LLVM_YAML_STRONG_TYPEDEF(
uint32_t, SegmentFlags)
40 LLVM_YAML_STRONG_TYPEDEF(
uint32_t, LimitFlags)
41 LLVM_YAML_STRONG_TYPEDEF(
uint32_t, ComdatKind)
184 return C &&
C->Name ==
"name";
195 return C &&
C->Name ==
"linking";
323 LLVM_YAML_IS_SEQUENCE_VECTOR(std::unique_ptr<llvm::WasmYAML::Section>)
351 static void mapping(IO &IO, std::unique_ptr<WasmYAML::Section> &
Section);
370 template <>
struct ScalarBitSetTraits<WasmYAML::LimitFlags> {
371 static void bitset(IO &IO, WasmYAML::LimitFlags &
Value);
374 template <>
struct ScalarBitSetTraits<WasmYAML::SymbolFlags> {
375 static void bitset(IO &IO, WasmYAML::SymbolFlags &
Value);
378 template <>
struct ScalarEnumerationTraits<WasmYAML::
SymbolKind> {
382 template <>
struct ScalarBitSetTraits<WasmYAML::SegmentFlags> {
383 static void bitset(IO &IO, WasmYAML::SegmentFlags &
Value);
386 template <>
struct ScalarEnumerationTraits<WasmYAML::
SectionType> {
442 template <>
struct ScalarEnumerationTraits<WasmYAML::ComdatKind> {
443 static void enumeration(IO &IO, WasmYAML::ComdatKind &
Kind);
454 template <>
struct ScalarEnumerationTraits<WasmYAML::
ValueType> {
458 template <>
struct ScalarEnumerationTraits<WasmYAML::ExportKind> {
459 static void enumeration(IO &IO, WasmYAML::ExportKind &
Kind);
462 template <>
struct ScalarEnumerationTraits<WasmYAML::TableType> {
463 static void enumeration(IO &IO, WasmYAML::TableType &
Type);
466 template <>
struct ScalarEnumerationTraits<WasmYAML::Opcode> {
467 static void enumeration(IO &IO, WasmYAML::Opcode &Opcode);
470 template <>
struct ScalarEnumerationTraits<WasmYAML::RelocType> {
471 static void enumeration(IO &IO, WasmYAML::RelocType &
Kind);
477 #endif // LLVM_OBJECTYAML_WASMYAML_H std::vector< InitFunction > InitFunctions
static bool classof(const Section *S)
std::vector< Comdat > Comdats
std::vector< Relocation > Relocations
std::vector< Limits > Memories
static bool classof(const Section *S)
static bool classof(const Section *S)
std::vector< Signature > Signatures
Compute iterated dominance frontiers using a linear time algorithm.
std::vector< std::unique_ptr< Section > > Sections
static bool classof(const Section *S)
static bool classof(const Section *S)
wasm::WasmInitExpr InitExpr
std::vector< Import > Imports
Export information to summary.
wasm::WasmInitExpr Offset
CustomSection(StringRef Name)
std::vector< SegmentInfo > SegmentInfos
std::vector< SymbolInfo > SymbolTable
static bool classof(const Section *S)
std::vector< Function > Functions
static bool classof(const Section *S)
static bool classof(const Section *S)
std::vector< ComdatEntry > Entries
Import information from summary.
The instances of the Type class are immutable: once they are created, they are never changed...
static bool classof(const Section *S)
std::vector< Export > Exports
Section(SectionType SecType)
std::vector< uint32_t > FunctionTypes
static bool classof(const Section *S)
static bool classof(const Section *S)
std::vector< Table > Tables
static bool classof(const Section *S)
std::vector< ElemSegment > Segments
Specialized YAMLIO scalar type for representing a binary blob.
std::vector< uint32_t > Functions
static bool classof(const Section *S)
std::vector< DataSegment > Segments
wasm::WasmDataReference DataRef
LLVM_NODISCARD std::enable_if<!is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
std::vector< ValueType > ParamTypes
SymbolKind
Duplicate copy of the above enum, but using the official CV names.
std::vector< LocalDecl > Locals
std::vector< NameEntry > FunctionNames
static bool classof(const Section *S)
std::vector< Global > Globals
LLVM Value Representation.
wasm::WasmInitExpr Offset
StringRef - Represent a constant reference to a string, i.e.
SectionType
These are the section type and attributes fields.
A discriminated union of two pointer types, with the discriminator in the low bit of the pointer...