Lines Matching refs:AsmToken
279 bool error(const Twine &Msg, const AsmToken &Tok) { in error()
348 bool isNext(AsmToken::TokenKind Kind) { in isNext()
355 bool expect(AsmToken::TokenKind Kind, const char *KindName) { in expect()
363 if (!Lexer.is(AsmToken::Identifier)) { in expectIdent()
373 while (Lexer.is(AsmToken::Identifier)) { in parseRegTypeList()
379 if (!isNext(AsmToken::Comma)) in parseRegTypeList()
411 if (Lexer.isNot(AsmToken::Identifier)) in parseSpecialFloatMaybe()
440 if (IsLoadStore && isNext(AsmToken::Colon)) { in checkForP2AlignIfLoadStore()
444 if (expect(AsmToken::Equal, "=")) in checkForP2AlignIfLoadStore()
446 if (!Lexer.is(AsmToken::Integer)) in checkForP2AlignIfLoadStore()
483 if (!Tok.is(AsmToken::Integer)) in parseLimits()
490 if (isNext(AsmToken::Comma)) { in parseLimits()
493 if (!Tok.is(AsmToken::Integer)) in parseLimits()
510 if (Tok.is(AsmToken::Identifier)) { in parseFunctionTableOperand()
518 return expect(AsmToken::Comma, ","); in parseFunctionTableOperand()
551 Sep.getKind() != AsmToken::Slash) in ParseInstruction()
558 if (Id.getKind() != AsmToken::Identifier || in ParseInstruction()
625 if (ExpectFuncType || (ExpectBlockType && Lexer.is(AsmToken::LParen))) { in ParseInstruction()
652 while (Lexer.isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
655 case AsmToken::Identifier: { in ParseInstruction()
681 case AsmToken::Minus: in ParseInstruction()
683 if (Lexer.is(AsmToken::Integer)) { in ParseInstruction()
687 } else if (Lexer.is(AsmToken::Real)) { in ParseInstruction()
696 case AsmToken::Integer: in ParseInstruction()
701 case AsmToken::Real: { in ParseInstruction()
706 case AsmToken::LCurly: { in ParseInstruction()
710 if (!Lexer.is(AsmToken::RCurly)) in ParseInstruction()
713 expect(AsmToken::Integer, "integer"); in ParseInstruction()
714 if (!isNext(AsmToken::Comma)) in ParseInstruction()
717 expect(AsmToken::RCurly, "}"); in ParseInstruction()
724 if (Lexer.isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
725 if (expect(AsmToken::Comma, ",")) in ParseInstruction()
740 if (expect(AsmToken::LParen, "(")) in parseSignature()
744 if (expect(AsmToken::RParen, ")")) in parseSignature()
746 if (expect(AsmToken::MinusGreater, "->")) in parseSignature()
748 if (expect(AsmToken::LParen, "(")) in parseSignature()
752 if (expect(AsmToken::RParen, ")")) in parseSignature()
771 ParseStatus parseDirective(AsmToken DirectiveID) override { in parseDirective()
772 assert(DirectiveID.getKind() == AsmToken::Identifier); in parseDirective()
782 if (expect(AsmToken::Comma, ",")) in parseDirective()
795 if (isNext(AsmToken::Comma)) { in parseDirective()
812 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
820 if (expect(AsmToken::Comma, ",")) in parseDirective()
833 if (isNext(AsmToken::Comma) && parseLimits(&Limits)) in parseDirective()
846 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
887 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
894 if (expect(AsmToken::Comma, ",")) in parseDirective()
902 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
909 if (expect(AsmToken::Comma, ",")) in parseDirective()
917 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
924 if (expect(AsmToken::Comma, ",")) in parseDirective()
932 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
947 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
960 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
976 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
986 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()