Home
last modified time | relevance | path

Searched refs:StackType (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.h35 using StackType = std::variant<wasm::ValType, Ref, Any, Polymorphic>; variable
36 SmallVector<StackType, 16> Stack;
56 bool checkTypes(SMLoc ErrorLoc, ArrayRef<StackType> Types,
60 bool popTypes(SMLoc ErrorLoc, ArrayRef<StackType> Types,
62 bool popType(SMLoc ErrorLoc, StackType Type);
66 void pushType(StackType Type) { Stack.push_back(Type); } in pushType()
67 bool match(StackType TypeA, StackType TypeB);
70 std::string getTypesString(ArrayRef<StackType> Types, size_t StartPos = 0);
71 SmallVector<StackType, 4>
H A DWebAssemblyAsmTypeCheck.cpp70 bool WebAssemblyAsmTypeCheck::match(StackType TypeA, StackType TypeB) { in match()
89 std::string WebAssemblyAsmTypeCheck::getTypesString(ArrayRef<StackType> Types, in getTypesString()
125 SmallVector<WebAssemblyAsmTypeCheck::StackType, 4>
128 SmallVector<StackType, 4> Types(ValTypes.size()); in valTypesToStackTypes()
130 [](wasm::ValType Val) -> StackType { return Val; }); in valTypesToStackTypes()
141 ArrayRef<StackType> Types, in checkTypes()
199 ArrayRef<StackType> Types, in popTypes()
212 bool WebAssemblyAsmTypeCheck::popType(SMLoc ErrorLoc, StackType Type) { in popType()
455 SmallVector<StackType, 2> PopTypes; in typeCheck()
475 SmallVector<StackType, 2> PopTypes; in typeCheck()
[all …]