Lines Matching defs:Tok
53 StringRef Tok;
73 struct TokOp Tok;
81 : Kind(K), StartLoc(Start), EndLoc(End), Tok(T) {}
110 return Tok.Tok;
157 OS << "Tok:" << Tok.Tok;
279 bool error(const Twine &Msg, const AsmToken &Tok) {
280 return Parser.Error(Tok.getLoc(), Msg + Tok.getString());
460 auto Tok = Lexer.getTok();
462 WebAssemblyOperand::Integer, Tok.getLoc(), Tok.getEndLoc(),
482 auto Tok = Lexer.getTok();
483 if (!Tok.is(AsmToken::Integer))
484 return error("Expected integer constant, instead got: ", Tok);
485 int64_t Val = Tok.getIntVal();
492 auto Tok = Lexer.getTok();
493 if (!Tok.is(AsmToken::Integer))
494 return error("Expected integer constant, instead got: ", Tok);
495 int64_t Val = Tok.getIntVal();
509 auto &Tok = Lexer.getTok();
510 if (Tok.is(AsmToken::Identifier)) {
512 GetOrCreateFunctionTableSymbol(getContext(), Tok.getString(), is64);
515 WebAssemblyOperand::Symbol, Tok.getLoc(), Tok.getEndLoc(),
653 auto &Tok = Lexer.getTok();
654 switch (Tok.getKind()) {
709 WebAssemblyOperand::BrList, Tok.getLoc(), Tok.getEndLoc());
722 return error("Unexpected token in operand: ", Tok);