LLVM 20.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 SmallVectorImpl< wasm::ValType > &Locals) |
void | setLastSig (const wasm::WasmSignature &Sig) |
bool | endOfFunction (SMLoc ErrorLoc, bool ExactMatch) |
bool | typeCheck (SMLoc ErrorLoc, const MCInst &Inst, OperandVector &Operands) |
void | clear () |
Definition at line 28 of file WebAssemblyAsmTypeCheck.h.
llvm::WebAssemblyAsmTypeCheck::WebAssemblyAsmTypeCheck | ( | MCAsmParser & | Parser, |
const MCInstrInfo & | MII, | ||
bool | Is64 | ||
) |
Definition at line 45 of file WebAssemblyAsmTypeCheck.cpp.
|
inline |
Definition at line 97 of file WebAssemblyAsmTypeCheck.h.
References llvm::SmallVectorImpl< T >::clear().
Definition at line 325 of file WebAssemblyAsmTypeCheck.cpp.
References assert(), and llvm::SmallVectorBase< Size_T >::empty().
Referenced by typeCheck().
void llvm::WebAssemblyAsmTypeCheck::funcDecl | ( | const wasm::WasmSignature & | Sig | ) |
Definition at line 50 of file WebAssemblyAsmTypeCheck.cpp.
References llvm::SmallVectorImpl< T >::assign(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::wasm::WasmSignature::Params, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
void llvm::WebAssemblyAsmTypeCheck::localDecl | ( | const SmallVectorImpl< wasm::ValType > & | Locals | ) |
Definition at line 55 of file WebAssemblyAsmTypeCheck.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::end(), and llvm::SmallVectorImpl< T >::insert().
|
inline |
Definition at line 93 of file WebAssemblyAsmTypeCheck.h.
bool llvm::WebAssemblyAsmTypeCheck::typeCheck | ( | SMLoc | ErrorLoc, |
const MCInst & | Inst, | ||
OperandVector & | Operands | ||
) |
Definition at line 393 of file WebAssemblyAsmTypeCheck.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::SmallVectorBase< Size_T >::empty(), endOfFunction(), llvm::wasm::EXNREF, llvm::MCInstrInfo::get(), llvm::MCOperand::getImm(), getMnemonic(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::WebAssembly::getRegisterOpcode(), I, llvm::wasm::I32, llvm::wasm::I64, II, llvm::MCOperand::isImm(), Name, llvm::MCOI::OPERAND_REGISTER, Operands, llvm::wasm::WasmSignature::Params, llvm::SmallVectorTemplateBase< T, bool >::pop_back(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::WebAssembly::regClassToValType(), llvm::SmallVectorBase< Size_T >::size(), llvm::SmallVectorImpl< T >::truncate(), llvm::wasm::WASM_SYMBOL_TYPE_FUNCTION, and llvm::wasm::WASM_SYMBOL_TYPE_TAG.