16#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_ASMPARSER_TYPECHECK_H
17#define LLVM_LIB_TARGET_WEBASSEMBLY_ASMPARSER_TYPECHECK_H
36 bool TypeErrorThisFunction =
false;
37 bool Unreachable =
false;
40 void dumpTypeStack(
Twine Msg);
41 bool typeError(
SMLoc ErrorLoc,
const Twine &Msg);
42 bool popType(
SMLoc ErrorLoc, std::optional<wasm::ValType>
EVT);
43 bool popRefType(
SMLoc ErrorLoc);
45 bool checkEnd(
SMLoc ErrorLoc,
bool PopVals =
false);
46 bool checkBr(
SMLoc ErrorLoc,
size_t Level);
68 TypeErrorThisFunction =
false;
mir Rename Register Operands
Generic assembler parser interface, for use by target specific assembly parsers.
Instances of this class represent a single low-level machine instruction.
Interface to description of machine instruction set.
Represent a reference to a symbol from inside an expression.
Represents a location in source code.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
The instances of the Type class are immutable: once they are created, they are never changed.
bool endOfFunction(SMLoc ErrorLoc)
void funcDecl(const wasm::WasmSignature &Sig)
void setLastSig(const wasm::WasmSignature &Sig)
void localDecl(const SmallVectorImpl< wasm::ValType > &Locals)
bool typeCheck(SMLoc ErrorLoc, const MCInst &Inst, OperandVector &Operands)
This is an optimization pass for GlobalISel generic memory operations.