Go to the documentation of this file.
15 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_UTILS_WEBASSEMBLYTYPEUTILITIES_H
16 #define LLVM_LIB_TARGET_WEBASSEMBLY_UTILS_WEBASSEMBLYTYPEUTILITIES_H
25 namespace WebAssembly {
70 return isa<PointerType>(Ty) &&
75 return isa<PointerType>(Ty) &&
MVT parseMVT(StringRef Type)
This is an optimization pass for GlobalISel generic memory operations.
bool isExternrefType(const Type *Ty)
@ WASM_ADDRESS_SPACE_FUNCREF
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
bool isFuncrefType(const Type *Ty)
unsigned getPointerAddressSpace() const
Get the address space of this pointer or pointer vector type.
std::string signatureToString(const wasm::WasmSignature *Sig)
The instances of the Type class are immutable: once they are created, they are never changed.
@ WASM_ADDRESS_SPACE_EXTERNREF
bool isDefaultAddressSpace(unsigned AS)
void wasmSymbolSetType(MCSymbolWasm *Sym, const Type *GlobalVT, const SmallVector< MVT, 1 > &VTs)
Sets a Wasm Symbol Type.
wasm::ValType regClassToValType(unsigned RC)
Optional< wasm::ValType > parseType(StringRef Type)
wasm::ValType toValType(MVT Type)
std::string typeListToString(ArrayRef< wasm::ValType > List)
bool isRefType(const Type *Ty)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
StringRef - Represent a constant reference to a string, i.e.
@ WASM_ADDRESS_SPACE_DEFAULT
BlockType parseBlockType(StringRef Type)
const char * typeToString(wasm::ValType Type)
bool isWasmVarAddressSpace(unsigned AS)
BlockType
Used as immediate MachineOperands for block signatures.
const char * anyTypeToString(unsigned Type)
bool isValidAddressSpace(unsigned AS)