15#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_UTILS_WEBASSEMBLYTYPEUTILITIES_H
16#define LLVM_LIB_TARGET_WEBASSEMBLY_UTILS_WEBASSEMBLYTYPEUTILITIES_H
26class TargetRegisterClass;
28namespace WebAssembly {
54 return isa<PointerType>(Ty) &&
59 return isa<PointerType>(Ty) &&
This file contains the declaration of the WebAssembly-specific type parsing utility functions.
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.
The instances of the Type class are immutable: once they are created, they are never changed.
unsigned getPointerAddressSpace() const
Get the address space of this pointer or pointer vector type.
bool isDefaultAddressSpace(unsigned AS)
wasm::ValType regClassToValType(unsigned RC)
@ WASM_ADDRESS_SPACE_EXTERNREF
@ WASM_ADDRESS_SPACE_DEFAULT
@ WASM_ADDRESS_SPACE_FUNCREF
wasm::ValType toValType(MVT Type)
bool isRefType(wasm::ValType Type)
bool isExternrefType(const Type *Ty)
bool isFuncrefType(const Type *Ty)
bool isValidAddressSpace(unsigned AS)
void wasmSymbolSetType(MCSymbolWasm *Sym, const Type *GlobalVT, const ArrayRef< MVT > &VTs)
Sets a Wasm Symbol Type.
MVT parseMVT(StringRef Type)
bool isWasmVarAddressSpace(unsigned AS)
This is an optimization pass for GlobalISel generic memory operations.