16 #ifndef LLVM_OBJECTYAML_WASMYAML_H
17 #define LLVM_OBJECTYAML_WASMYAML_H
149 return C &&
C->Name ==
"name";
160 return C &&
C->Name ==
"linking";
310 static void mapping(
IO &
IO, std::unique_ptr<WasmYAML::Section> &
Section);
382 static void enumeration(
IO &
IO, WasmYAML::ExportKind &
Kind);
386 static void enumeration(
IO &
IO, WasmYAML::TableType &
Type);
390 static void enumeration(
IO &
IO, WasmYAML::Opcode &Opcode);
394 static void enumeration(
IO &
IO, WasmYAML::RelocType &
Kind);
400 #endif // LLVM_OBJECTYAML_WASMYAML_H
static bool classof(const Section *S)
std::vector< Relocation > Relocations
std::vector< Limits > Memories
static bool classof(const Section *S)
static bool classof(const Section *S)
std::vector< Signature > Signatures
std::vector< std::unique_ptr< Section > > Sections
static bool classof(const Section *S)
static bool classof(const Section *S)
#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)
Utility for declaring that a std::vector of a particular type should be considered a YAML sequence...
wasm::WasmInitExpr InitExpr
std::vector< Import > Imports
Export information to summary.
wasm::WasmInitExpr Offset
CustomSection(StringRef Name)
static bool classof(const Section *S)
std::vector< Function > Functions
static bool classof(const Section *S)
This class should be specialized by any type that needs to be converted to/from a YAML mapping...
static bool classof(const Section *S)
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
std::vector< SymbolInfo > SymbolInfos
Section(SectionType SecType)
std::vector< uint32_t > FunctionTypes
static bool classof(const Section *S)
static bool classof(const Section *S)
This class should be specialized by any integral type that converts to/from a YAML scalar where there...
#define LLVM_YAML_STRONG_TYPEDEF(_base, _type)
YAML I/O does conversion based on types.
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
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
std::vector< LocalDecl > Locals
std::vector< NameEntry > FunctionNames
static bool classof(const Section *S)
std::vector< Global > Globals
wasm::WasmInitExpr Offset
StringRef - Represent a constant reference to a string, i.e.
SectionType
These are the section type and attributes fields.