LLVM
15.0.0git
|
#include "Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.h"
Public Member Functions | |
WebAssemblyAsmTypeCheck (MCAsmParser &Parser, const MCInstrInfo &MII, bool is64) | |
void | funcDecl (const wasm::WasmSignature &Sig) |
void | localDecl (const SmallVector< wasm::ValType, 4 > &Locals) |
void | setLastSig (const wasm::WasmSignature &Sig) |
bool | endOfFunction (SMLoc ErrorLoc) |
bool | typeCheck (SMLoc ErrorLoc, const MCInst &Inst, OperandVector &Operands) |
void | Clear () |
Definition at line 27 of file WebAssemblyAsmTypeCheck.h.
llvm::WebAssemblyAsmTypeCheck::WebAssemblyAsmTypeCheck | ( | MCAsmParser & | Parser, |
const MCInstrInfo & | MII, | ||
bool | is64 | ||
) |
Definition at line 47 of file WebAssemblyAsmTypeCheck.cpp.
|
inline |
Definition at line 60 of file WebAssemblyAsmTypeCheck.h.
References llvm::SmallVectorImpl< T >::clear().
bool llvm::WebAssemblyAsmTypeCheck::endOfFunction | ( | SMLoc | ErrorLoc | ) |
Definition at line 210 of file WebAssemblyAsmTypeCheck.cpp.
References llvm::reverse(), and llvm::to_string().
Referenced by typeCheck().
void llvm::WebAssemblyAsmTypeCheck::funcDecl | ( | const wasm::WasmSignature & | Sig | ) |
Definition at line 52 of file WebAssemblyAsmTypeCheck.cpp.
References llvm::SmallVectorImpl< T >::assign(), llvm::wasm::WasmSignature::Params, and llvm::wasm::WasmSignature::Returns.
void llvm::WebAssemblyAsmTypeCheck::localDecl | ( | const SmallVector< wasm::ValType, 4 > & | Locals | ) |
Definition at line 57 of file WebAssemblyAsmTypeCheck.cpp.
References llvm::SmallVectorImpl< T >::insert().
|
inline |
Definition at line 56 of file WebAssemblyAsmTypeCheck.h.
bool llvm::WebAssemblyAsmTypeCheck::typeCheck | ( | SMLoc | ErrorLoc, |
const MCInst & | Inst, | ||
OperandVector & | Operands | ||
) |
Definition at line 224 of file WebAssemblyAsmTypeCheck.cpp.
References assert(), endOfFunction(), llvm::MCInstrInfo::get(), GetMnemonic(), llvm::MCInst::getOpcode(), llvm::WebAssembly::getRegisterOpcode(), llvm::MCSymbolRefExpr::getSymbol(), I, llvm::wasm::I32, llvm::SmallVectorImpl< T >::insert(), llvm::MCOI::OPERAND_REGISTER, Operands, llvm::wasm::WasmSignature::Params, llvm::WebAssembly::regClassToValType(), llvm::wasm::WASM_SYMBOL_TYPE_FUNCTION, and llvm::wasm::WASM_SYMBOL_TYPE_TAG.