14#ifndef LLVM_BINARYFORMAT_WASM_H
15#define LLVM_BINARYFORMAT_WASM_H
250#define WASM_RELOC(name, value) name = value,
253#include "WasmRelocs.def"
300 std::vector<std::pair<std::string, std::string>>
Languages;
301 std::vector<std::pair<std::string, std::string>>
Tools;
302 std::vector<std::pair<std::string, std::string>>
SDKs;
512 return LHS.State ==
RHS.State &&
LHS.Returns ==
RHS.Returns &&
521 return LHS.Type ==
RHS.Type &&
LHS.Mutable ==
RHS.Mutable;
529 return LHS.Flags ==
RHS.Flags &&
LHS.Minimum ==
RHS.Minimum &&
535 return LHS.ElemType ==
RHS.ElemType &&
LHS.Limits ==
RHS.Limits;
This file defines the SmallVector class.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
StringRef - Represent a constant reference to a string, i.e.
const unsigned WASM_SYMBOL_UNDEFINED
const uint32_t WasmPageSize
@ WASM_TYPE_NULLEXTERNREF
const unsigned WASM_SYMBOL_NO_STRIP
@ WASM_OPCODE_I32_ATOMIC_STORE
@ WASM_OPCODE_MEMORY_FILL
@ WASM_OPCODE_I32_ATOMIC_WAIT
@ WASM_OPCODE_MISC_PREFIX
@ WASM_OPCODE_ATOMIC_NOTIFY
@ WASM_OPCODE_I32_RMW_CMPXCHG
@ WASM_OPCODE_MEMORY_INIT
@ WASM_OPCODE_ATOMICS_PREFIX
@ WASM_ELEM_SEGMENT_HAS_INIT_EXPRS
@ WASM_ELEM_SEGMENT_IS_DECLARATIVE
@ WASM_ELEM_SEGMENT_HAS_TABLE_NUMBER
@ WASM_ELEM_SEGMENT_IS_PASSIVE
const unsigned WASM_SYMBOL_BINDING_GLOBAL
const unsigned WASM_ELEM_SEGMENT_MASK_HAS_ELEM_KIND
@ WASM_TAG_ATTRIBUTE_EXCEPTION
const unsigned WASM_SYMBOL_TLS
const uint32_t WasmMetadataVersion
const unsigned WASM_SYMBOL_BINDING_WEAK
const unsigned WASM_SYMBOL_BINDING_LOCAL
@ WASM_NAMES_DATA_SEGMENT
llvm::StringRef toString(WasmSymbolType type)
@ WASM_SYMBOL_TYPE_GLOBAL
@ WASM_SYMBOL_TYPE_SECTION
@ WASM_SYMBOL_TYPE_FUNCTION
const uint32_t WasmVersion
@ WASM_OPCODE_ARRAY_NEW_FIXED
@ WASM_OPCODE_ARRAY_NEW_DEFAULT
@ WASM_OPCODE_STRUCT_NEW_DEFAULT
const unsigned WASM_SYMBOL_EXPORTED
const unsigned WASM_SYMBOL_BINDING_MASK
@ WASM_LIMITS_FLAG_HAS_MAX
@ WASM_LIMITS_FLAG_IS_SHARED
bool relocTypeHasAddend(uint32_t type)
@ WASM_OPCODE_CATCH_ALL_REF
@ WASM_DATA_SEGMENT_IS_PASSIVE
@ WASM_DATA_SEGMENT_HAS_MEMINDEX
bool operator!=(const WasmSignature &LHS, const WasmSignature &RHS)
llvm::StringRef sectionTypeToString(uint32_t type)
const unsigned WASM_SYMBOL_EXPLICIT_NAME
@ WASM_FEATURE_PREFIX_USED
@ WASM_FEATURE_PREFIX_DISALLOWED
const unsigned WASM_SYMBOL_ABSOLUTE
const unsigned WASM_SYMBOL_VISIBILITY_MASK
@ WASM_DYLINK_EXPORT_INFO
@ WASM_DYLINK_IMPORT_INFO
const unsigned WASM_SYMBOL_VISIBILITY_HIDDEN
llvm::StringRef relocTypetoString(uint32_t type)
const unsigned WASM_SYMBOL_VISIBILITY_DEFAULT
This is an optimization pass for GlobalISel generic memory operations.
bool operator==(const AddressRangeValuePair &LHS, const AddressRangeValuePair &RHS)
ArrayRef< uint8_t > Content
std::vector< StringRef > Needed
std::vector< WasmDylinkExportInfo > ExportInfo
std::vector< WasmDylinkImportInfo > ImportInfo
std::vector< uint32_t > Functions
std::optional< StringRef > ExportName
std::vector< WasmLocalDecl > Locals
uint32_t CodeSectionOffset
union llvm::wasm::WasmInitExprMVP::@187 Value
std::vector< WasmInitFunc > InitFunctions
std::vector< StringRef > Comdats
std::vector< std::pair< std::string, std::string > > SDKs
std::vector< std::pair< std::string, std::string > > Languages
std::vector< std::pair< std::string, std::string > > Tools
WasmSignature(SmallVector< ValType, 1 > &&InReturns, SmallVector< ValType, 4 > &&InParams)
enum llvm::wasm::WasmSignature::@193 State
SmallVector< ValType, 1 > Returns
SmallVector< ValType, 4 > Params
enum llvm::wasm::WasmSignature::@192 Kind
std::optional< StringRef > ExportName
WasmDataReference DataRef
std::optional< StringRef > ImportModule
std::optional< StringRef > ImportName