Lines Matching refs:AsmToken

282   bool error(const Twine &Msg, const AsmToken &Tok) {  in error()
361 bool isNext(AsmToken::TokenKind Kind) { in isNext()
368 bool expect(AsmToken::TokenKind Kind, const char *KindName) { in expect()
376 if (!Lexer.is(AsmToken::Identifier)) { in expectIdent()
386 while (Lexer.is(AsmToken::Identifier)) { in parseRegTypeList()
392 if (!isNext(AsmToken::Comma)) in parseRegTypeList()
424 if (Lexer.isNot(AsmToken::Identifier)) in parseSpecialFloatMaybe()
453 if (IsLoadStore && isNext(AsmToken::Colon)) { in checkForP2AlignIfLoadStore()
457 if (expect(AsmToken::Equal, "=")) in checkForP2AlignIfLoadStore()
459 if (!Lexer.is(AsmToken::Integer)) in checkForP2AlignIfLoadStore()
496 if (!Tok.is(AsmToken::Integer)) in parseLimits()
503 if (isNext(AsmToken::Comma)) { in parseLimits()
506 if (!Tok.is(AsmToken::Integer)) in parseLimits()
523 if (Tok.is(AsmToken::Identifier)) { in parseFunctionTableOperand()
531 return expect(AsmToken::Comma, ","); in parseFunctionTableOperand()
564 Sep.getKind() != AsmToken::Slash) in ParseInstruction()
571 if (Id.getKind() != AsmToken::Identifier || in ParseInstruction()
638 if (ExpectFuncType || (ExpectBlockType && Lexer.is(AsmToken::LParen))) { in ParseInstruction()
666 while (Lexer.isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
669 case AsmToken::Identifier: { in ParseInstruction()
695 case AsmToken::Minus: in ParseInstruction()
697 if (Lexer.is(AsmToken::Integer)) { in ParseInstruction()
701 } else if (Lexer.is(AsmToken::Real)) { in ParseInstruction()
710 case AsmToken::Integer: in ParseInstruction()
715 case AsmToken::Real: { in ParseInstruction()
720 case AsmToken::LCurly: { in ParseInstruction()
724 if (!Lexer.is(AsmToken::RCurly)) in ParseInstruction()
727 expect(AsmToken::Integer, "integer"); in ParseInstruction()
728 if (!isNext(AsmToken::Comma)) in ParseInstruction()
731 expect(AsmToken::RCurly, "}"); in ParseInstruction()
738 if (Lexer.isNot(AsmToken::EndOfStatement)) { in ParseInstruction()
739 if (expect(AsmToken::Comma, ",")) in ParseInstruction()
754 if (expect(AsmToken::LParen, "(")) in parseSignature()
758 if (expect(AsmToken::RParen, ")")) in parseSignature()
760 if (expect(AsmToken::MinusGreater, "->")) in parseSignature()
762 if (expect(AsmToken::LParen, "(")) in parseSignature()
766 if (expect(AsmToken::RParen, ")")) in parseSignature()
785 ParseStatus parseDirective(AsmToken DirectiveID) override { in parseDirective()
786 assert(DirectiveID.getKind() == AsmToken::Identifier); in parseDirective()
796 if (expect(AsmToken::Comma, ",")) in parseDirective()
809 if (isNext(AsmToken::Comma)) { in parseDirective()
826 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
834 if (expect(AsmToken::Comma, ",")) in parseDirective()
847 if (isNext(AsmToken::Comma) && parseLimits(&Limits)) in parseDirective()
857 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
899 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
906 if (expect(AsmToken::Comma, ",")) in parseDirective()
914 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
921 if (expect(AsmToken::Comma, ",")) in parseDirective()
929 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
936 if (expect(AsmToken::Comma, ",")) in parseDirective()
944 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
960 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
973 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
989 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()
999 return expect(AsmToken::EndOfStatement, "EOL"); in parseDirective()