15#ifndef LLVM_OBJECTYAML_WASMYAML_H
16#define LLVM_OBJECTYAML_WASMYAML_H
223 auto C = dyn_cast<CustomSection>(S);
224 return C &&
C->Name ==
"dylink.0";
241 auto C = dyn_cast<CustomSection>(S);
242 return C &&
C->Name ==
"name";
254 auto C = dyn_cast<CustomSection>(S);
255 return C &&
C->Name ==
"linking";
269 auto C = dyn_cast<CustomSection>(S);
270 return C &&
C->Name ==
"producers";
275 std::vector<ProducerEntry>
SDKs;
282 auto C = dyn_cast<CustomSection>(S);
283 return C &&
C->Name ==
"target_features";
459 static void mapping(IO &IO, std::unique_ptr<WasmYAML::Section> &Section);
478template <>
struct ScalarBitSetTraits<WasmYAML::LimitFlags> {
479 static void bitset(IO &IO, WasmYAML::LimitFlags &
Value);
482template <>
struct ScalarBitSetTraits<WasmYAML::SymbolFlags> {
483 static void bitset(IO &IO, WasmYAML::SymbolFlags &
Value);
486template <>
struct ScalarEnumerationTraits<WasmYAML::SymbolKind> {
487 static void enumeration(IO &IO, WasmYAML::SymbolKind &Kind);
490template <>
struct ScalarBitSetTraits<WasmYAML::SegmentFlags> {
491 static void bitset(IO &IO, WasmYAML::SegmentFlags &
Value);
494template <>
struct ScalarEnumerationTraits<WasmYAML::SectionType> {
495 static void enumeration(IO &IO, WasmYAML::SectionType &
Type);
526template <>
struct ScalarEnumerationTraits<WasmYAML::FeaturePolicyPrefix> {
527 static void enumeration(IO &IO, WasmYAML::FeaturePolicyPrefix &Prefix);
562template <>
struct ScalarEnumerationTraits<WasmYAML::ComdatKind> {
563 static void enumeration(IO &IO, WasmYAML::ComdatKind &Kind);
574template <>
struct ScalarEnumerationTraits<WasmYAML::
ValueType> {
575 static void enumeration(IO &IO, WasmYAML::ValueType &
Type);
578template <>
struct ScalarEnumerationTraits<WasmYAML::ExportKind> {
579 static void enumeration(IO &IO, WasmYAML::ExportKind &Kind);
582template <>
struct ScalarEnumerationTraits<WasmYAML::TableType> {
583 static void enumeration(IO &IO, WasmYAML::TableType &
Type);
586template <>
struct ScalarEnumerationTraits<WasmYAML::Opcode> {
587 static void enumeration(IO &IO, WasmYAML::Opcode &Opcode);
590template <>
struct ScalarEnumerationTraits<WasmYAML::RelocType> {
591 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< StringRef > RuntimePath
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