Lines Matching refs:Lexer

117   AsmLexer Lexer;  member in __anon13c8422b0111::AsmParser
192 MCAsmLexer &getLexer() override { return Lexer; } in getLexer()
491 : Lexer(MAI), Ctx(Ctx), Out(Out), MAI(MAI), SrcMgr(SM), in AsmParser()
500 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); in AsmParser()
558 SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in enterIncludeFile()
563 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); in enterIncludeFile()
573 SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in processIncbinFile()
584 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(), in jumpToLoc()
589 const AsmToken *tok = &Lexer.Lex(); in Lex()
597 tok = &Lexer.Lex(); in Lex()
602 Error(Lexer.getErrLoc(), Lexer.getErr()); in Lex()
632 while (Lexer.isNot(AsmToken::Eof)) { in Run()
699 while (Lexer.isNot(AsmToken::EndOfStatement) && Lexer.isNot(AsmToken::Eof)) in eatToEndOfStatement()
703 if (Lexer.is(AsmToken::EndOfStatement)) in eatToEndOfStatement()
710 while (Lexer.isNot(AsmToken::EndOfStatement) && Lexer.isNot(AsmToken::Eof)) in parseStringToEndOfStatement()
720 while (Lexer.isNot(AsmToken::EndOfStatement) && in parseStringToComma()
721 Lexer.isNot(AsmToken::Comma) && Lexer.isNot(AsmToken::Eof)) in parseStringToComma()
736 if (Lexer.isNot(AsmToken::RParen)) in parseParenExpr()
738 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
751 if (Lexer.isNot(AsmToken::RBrac)) in parseBracketExpr()
753 EndLoc = Lexer.getTok().getEndLoc(); in parseBracketExpr()
766 AsmToken::TokenKind FirstTokenKind = Lexer.getKind(); in parsePrimaryExpr()
786 if (Lexer.getMAI().getDollarIsPC()) { in parsePrimaryExpr()
803 if (Lexer.is(AsmToken::At)) { in parsePrimaryExpr()
804 Lexer.Lex(); // eat @ in parsePrimaryExpr()
815 } else if (Lexer.is(AsmToken::LParen)) { in parsePrimaryExpr()
816 Lexer.Lex(); // eat ( in parsePrimaryExpr()
819 if (Lexer.isNot(AsmToken::RParen)) { in parsePrimaryExpr()
820 return Error(Lexer.getTok().getLoc(), in parsePrimaryExpr()
823 Lexer.Lex(); // eat ) in parsePrimaryExpr()
868 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
871 if (Lexer.getKind() == AsmToken::Identifier) { in parsePrimaryExpr()
888 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
898 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
908 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1019 if (Lexer.getKind() == AsmToken::At) { in parseExpression()
1022 if (Lexer.isNot(AsmToken::Identifier)) in parseExpression()
1056 SMLoc StartLoc = Lexer.getLoc(); in parseAbsoluteExpression()
1149 unsigned TokPrec = getBinOpPrecedence(Lexer.getKind(), Kind); in parseBinOpRHS()
1166 unsigned NextTokPrec = getBinOpPrecedence(Lexer.getKind(), Dummy); in parseBinOpRHS()
1181 if (Lexer.is(AsmToken::EndOfStatement)) { in parseStatement()
1193 if (Lexer.is(AsmToken::Hash)) in parseStatement()
1197 if (Lexer.is(AsmToken::Integer)) { in parseStatement()
1206 if (Lexer.getKind() != AsmToken::Colon) { in parseStatement()
1211 } else if (Lexer.is(AsmToken::Dot)) { in parseStatement()
1275 switch (Lexer.getKind()) { in parseStatement()
1323 if (Lexer.is(AsmToken::EndOfStatement)) { in parseStatement()
1325 if (Lexer.is(AsmToken::Eof)) in parseStatement()
1656 if (!Lexer.is(AsmToken::EndOfStatement)) in eatToEndOfLine()
1657 Lexer.LexUntilEndOfLine(); in eatToEndOfLine()
1907 AsmLexerSkipSpaceRAII(AsmLexer &Lexer, bool SkipSpace) : Lexer(Lexer) { in AsmLexerSkipSpaceRAII() argument
1908 Lexer.setSkipSpace(SkipSpace); in AsmLexerSkipSpaceRAII()
1912 Lexer.setSkipSpace(true); in ~AsmLexerSkipSpaceRAII()
1916 AsmLexer &Lexer; member in __anon13c8422b0311::AsmLexerSkipSpaceRAII
1923 if (Lexer.isNot(AsmToken::EndOfStatement)) { in parseMacroArgument()
1934 AsmLexerSkipSpaceRAII ScopedSkipSpace(Lexer, IsDarwin); in parseMacroArgument()
1937 if (Lexer.is(AsmToken::Eof) || Lexer.is(AsmToken::Equal)) in parseMacroArgument()
1940 if (ParenLevel == 0 && Lexer.is(AsmToken::Comma)) in parseMacroArgument()
1943 if (Lexer.is(AsmToken::Space)) { in parseMacroArgument()
1950 if (isOperator(Lexer.getKind())) { in parseMacroArgument()
1966 if (Lexer.is(AsmToken::EndOfStatement)) in parseMacroArgument()
1970 if (Lexer.is(AsmToken::LParen)) in parseMacroArgument()
1972 else if (Lexer.is(AsmToken::RParen) && ParenLevel) in parseMacroArgument()
2003 SMLoc IDLoc = Lexer.getLoc(); in parseMacroArguments()
2006 if (Lexer.is(AsmToken::Identifier) && Lexer.peekTok().is(AsmToken::Equal)) { in parseMacroArguments()
2013 if (!Lexer.is(AsmToken::Equal)) { in parseMacroArguments()
2058 FALocs[PI] = Lexer.getLoc(); in parseMacroArguments()
2064 if (Lexer.is(AsmToken::EndOfStatement)) { in parseMacroArguments()
2069 Error(FALocs[FAI].isValid() ? FALocs[FAI] : Lexer.getLoc(), in parseMacroArguments()
2082 if (Lexer.is(AsmToken::Comma)) in parseMacroArguments()
2134 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); in handleMacroEntry()
2176 SMLoc EqualLoc = Lexer.getLoc(); in parseAssignment()
2186 if (Lexer.isNot(AsmToken::EndOfStatement)) in parseAssignment()
2244 if (Lexer.is(AsmToken::Dollar) || Lexer.is(AsmToken::At)) { in parseIdentifier()
2249 if (Lexer.isNot(AsmToken::Identifier)) in parseIdentifier()
2263 if (Lexer.isNot(AsmToken::Identifier) && Lexer.isNot(AsmToken::String)) in parseIdentifier()
2424 if (Lexer.getKind() == AsmToken::Error) in parseDirectiveOctaValue()
2426 if (Lexer.getKind() != AsmToken::Integer && in parseDirectiveOctaValue()
2427 Lexer.getKind() != AsmToken::BigNum) in parseDirectiveOctaValue()
2738 if ((!HasFillExpr || Lexer.getMAI().getTextAlignFillValue() == FillExpr) && in parseDirectiveAlign()
3281 return Error(Lexer.getLoc(), in parseDirectiveMacro()
3289 if (Lexer.is(AsmToken::Colon)) { in parseDirectiveMacro()
3295 QualLoc = Lexer.getLoc(); in parseDirectiveMacro()
3314 ParamLoc = Lexer.getLoc(); in parseDirectiveMacro()
3729 LCOMM::LCOMMType LCOMM = Lexer.getMAI().getLCOMMDirectiveAlignmentType(); in parseDirectiveComm()
3734 if ((!IsLocal && Lexer.getMAI().getCOMMDirectiveAlignmentIsInBytes()) || in parseDirectiveComm()
3949 if (Lexer.isNot(AsmToken::String)) { in parseDirectiveIfeqs()
3961 if (Lexer.isNot(AsmToken::Comma)) { in parseDirectiveIfeqs()
3972 if (Lexer.isNot(AsmToken::String)) { in parseDirectiveIfeqs()
4082 while (Lexer.isNot(AsmToken::Eof)) in parseDirectiveEnd()
4103 if (Lexer.isNot(AsmToken::EndOfStatement)) { in parseDirectiveError()
4104 if (Lexer.isNot(AsmToken::String)) { in parseDirectiveError()
4129 if (Lexer.isNot(AsmToken::EndOfStatement)) { in parseDirectiveWarning()
4130 if (Lexer.isNot(AsmToken::String)) { in parseDirectiveWarning()
4292 if (Lexer.is(AsmToken::Identifier) && in parseMacroLikeBody()
4298 if (Lexer.is(AsmToken::Identifier) && getTok().getIdentifier() == ".endr") { in parseMacroLikeBody()
4302 if (Lexer.isNot(AsmToken::EndOfStatement)) { in parseMacroLikeBody()
4340 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); in instantiateMacroLikeBody()
4361 if (Lexer.isNot(AsmToken::EndOfStatement)) in parseDirectiveRept()
4393 if (Lexer.isNot(AsmToken::Comma)) in parseDirectiveIrp()
4433 if (Lexer.isNot(AsmToken::Comma)) in parseDirectiveIrpc()