15#ifndef LLVM_OBJECTYAML_WASMYAML_H
16#define LLVM_OBJECTYAML_WASMYAML_H
222 auto C = dyn_cast<CustomSection>(S);
223 return C &&
C->Name ==
"dylink.0";
239 auto C = dyn_cast<CustomSection>(S);
240 return C &&
C->Name ==
"name";
252 auto C = dyn_cast<CustomSection>(S);
253 return C &&
C->Name ==
"linking";
267 auto C = dyn_cast<CustomSection>(S);
268 return C &&
C->Name ==
"producers";
273 std::vector<ProducerEntry>
SDKs;
280 auto C = dyn_cast<CustomSection>(S);
281 return C &&
C->Name ==
"target_features";
457 static void mapping(IO &IO, std::unique_ptr<WasmYAML::Section> &Section);
476template <>
struct ScalarBitSetTraits<WasmYAML::LimitFlags> {
477 static void bitset(IO &IO, WasmYAML::LimitFlags &
Value);
480template <>
struct ScalarBitSetTraits<WasmYAML::SymbolFlags> {
481 static void bitset(IO &IO, WasmYAML::SymbolFlags &
Value);
484template <>
struct ScalarEnumerationTraits<WasmYAML::SymbolKind> {
485 static void enumeration(IO &IO, WasmYAML::SymbolKind &Kind);
488template <>
struct ScalarBitSetTraits<WasmYAML::SegmentFlags> {
489 static void bitset(IO &IO, WasmYAML::SegmentFlags &
Value);
492template <>
struct ScalarEnumerationTraits<WasmYAML::SectionType> {
493 static void enumeration(IO &IO, WasmYAML::SectionType &
Type);
524template <>
struct ScalarEnumerationTraits<WasmYAML::FeaturePolicyPrefix> {
525 static void enumeration(IO &IO, WasmYAML::FeaturePolicyPrefix &Prefix);
560template <>
struct ScalarEnumerationTraits<WasmYAML::ComdatKind> {
561 static void enumeration(IO &IO, WasmYAML::ComdatKind &Kind);
572template <>
struct ScalarEnumerationTraits<WasmYAML::
ValueType> {
573 static void enumeration(IO &IO, WasmYAML::ValueType &
Type);
576template <>
struct ScalarEnumerationTraits<WasmYAML::ExportKind> {
577 static void enumeration(IO &IO, WasmYAML::ExportKind &Kind);
580template <>
struct ScalarEnumerationTraits<WasmYAML::TableType> {
581 static void enumeration(IO &IO, WasmYAML::TableType &
Type);
584template <>
struct ScalarEnumerationTraits<WasmYAML::Opcode> {
585 static void enumeration(IO &IO, WasmYAML::Opcode &Opcode);
588template <>
struct ScalarEnumerationTraits<WasmYAML::RelocType> {
589 static void enumeration(IO &IO, WasmYAML::RelocType &Kind);
Analysis containing CSE Info
#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)
#define LLVM_YAML_STRONG_TYPEDEF(_base, _type)
StringRef - Represent a constant reference to a string, i.e.
The instances of the Type class are immutable: once they are created, they are never changed.
LLVM Value Representation.
Specialized YAMLIO scalar type for representing a binary blob.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
@ Export
Export information to summary.
@ Import
Import information from summary.
@ Global
Append to llvm.global_dtors.
Implement std::hash so that hash_code can be used in STL containers.
std::vector< Function > Functions
static bool classof(const Section *S)
std::vector< ComdatEntry > Entries
static bool classof(const Section *S)
CustomSection(StringRef Name)
static bool classof(const Section *S)
std::vector< DataSegment > Segments
static bool classof(const Section *S)
std::vector< DylinkImportInfo > ImportInfo
std::vector< StringRef > Needed
std::vector< DylinkExportInfo > ExportInfo
static bool classof(const Section *S)
std::vector< ElemSegment > Segments
static bool classof(const Section *S)
std::vector< uint32_t > Functions
static bool classof(const Section *S)
std::vector< Export > Exports
FeaturePolicyPrefix Prefix
std::vector< uint32_t > FunctionTypes
static bool classof(const Section *S)
std::vector< LocalDecl > Locals
static bool classof(const Section *S)
std::vector< Global > Globals
std::vector< Import > Imports
static bool classof(const Section *S)
wasm::WasmInitExprMVP Inst
std::vector< InitFunction > InitFunctions
std::vector< SymbolInfo > SymbolTable
std::vector< SegmentInfo > SegmentInfos
static bool classof(const Section *S)
std::vector< Comdat > Comdats
std::vector< Limits > Memories
static bool classof(const Section *S)
std::vector< NameEntry > DataSegmentNames
static bool classof(const Section *S)
std::vector< NameEntry > FunctionNames
std::vector< NameEntry > GlobalNames
std::vector< std::unique_ptr< Section > > Sections
Section(SectionType SecType)
std::optional< uint8_t > HeaderSecSizeEncodingLen
std::vector< Relocation > Relocations
std::vector< ValueType > ReturnTypes
std::vector< ValueType > ParamTypes
static bool classof(const Section *S)
wasm::WasmDataReference DataRef
static bool classof(const Section *S)
std::vector< Table > Tables
std::vector< FeatureEntry > Features
static bool classof(const Section *S)
static bool classof(const Section *S)
std::vector< Signature > Signatures