Lines Matching refs:getTok
1186 const AsmToken &Tok = getTok(); in expandMacros()
1230 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
1234 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
1236 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
1237 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
1238 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
1381 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
1403 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
1410 printError(getTok().getLoc(), "unassigned file number: " + in Run()
1432 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
1460 return Error(getTok().getLoc(), in checkForValidSection()
1490 const char *Start = getTok().getLoc().getPointer(); in parseStringRefsTo()
1497 Refs.emplace_back(Start, getTok().getLoc().getPointer() - Start); in parseStringRefsTo()
1502 Start = getTok().getLoc().getPointer(); in parseStringRefsTo()
1507 Refs.emplace_back(Start, getTok().getLoc().getPointer() - Start); in parseStringRefsTo()
1521 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1526 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1538 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
1550 EndLoc = getTok().getEndLoc(); in parseBracketExpr()
1586 if (getTok().is(AsmToken::Dollar)) { in parsePrimaryExpr()
1735 int64_t IntVal = getTok().getIntVal(); in parsePrimaryExpr()
1737 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1743 SMLoc ValueLoc = getTok().getLoc(); in parsePrimaryExpr()
1756 APFloat RealVal(APFloat::IEEEdouble(), getTok().getString()); in parsePrimaryExpr()
1759 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1769 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1920 EndLoc = getTok().getEndLoc(); in parseParenExprOfDepth()
2035 TokKind = StringSwitch<AsmToken::TokenKind>(Lexer.getTok().getString()) in parseBinOpRHS()
2090 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
2091 getTok().getString().front() == '\n') in parseStatement()
2099 if (getTok().is(AsmToken::Percent)) { in parseStatement()
2100 SMLoc ExpansionLoc = getTok().getLoc(); in parseStatement()
2107 AsmToken ID = getTok(); in parseStatement()
2118 IDVal = getTok().getString(); in parseStatement()
2242 if (getTok().is(AsmToken::Hash)) { in parseStatement()
2250 if (getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2295 getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2508 const AsmToken nextTok = getTok(); in parseStatement()
2748 assert(getTok().is(AsmToken::Integer) && in parseCppHashLineFilenameComment()
2750 int64_t LineNumber = getTok().getIntVal(); in parseCppHashLineFilenameComment()
2752 assert(getTok().is(AsmToken::String) && in parseCppHashLineFilenameComment()
2754 StringRef Filename = getTok().getString(); in parseCppHashLineFilenameComment()
3049 MA.push_back(getTok()); in parseMacroArgument()
3075 MA.push_back(getTok()); in parseMacroArgument()
3233 if (expandMacro(OS, Body, M->Parameters, A, M->Locals, getTok().getLoc())) in handleMacroEntry()
3246 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in handleMacroEntry()
3296 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in handleMacroInvocation()
3356 StringRef(PrefixLoc.getPointer(), getTok().getIdentifier().size() + 1); in parseIdentifier()
3364 Res = getTok().getIdentifier(); in parseIdentifier()
3418 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3459 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3487 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3512 if (check(getTok().isNot(AsmToken::String), "expected string")) in parseEscapedString()
3516 char Quote = getTok().getString().front(); in parseEscapedString()
3517 StringRef Str = getTok().getStringContents(); in parseEscapedString()
3526 return Error(getTok().getLoc(), "missing quotation mark in string"); in parseEscapedString()
3537 SMLoc EndLoc, StartLoc = getTok().getLoc(); in parseAngleBracketString()
3553 switch (getTok().getKind()) { in parseTextItem()
3571 SMLoc StartLoc = getTok().getLoc(); in parseTextItem()
3663 if (Size == 1 && getTok().is(AsmToken::String)) { in parseScalarInitializer()
3678 if (getTok().is(AsmToken::Identifier) && in parseScalarInitializer()
3679 getTok().getString().equals_insensitive("dup")) { in parseScalarInitializer()
3708 while (getTok().isNot(EndToken) && in parseScalarInstList()
3710 getTok().isNot(AsmToken::GreaterGreater))) { in parseScalarInstList()
3795 if (Asm.getTok().isNot(AsmToken::Integer) && in parseHexOcta()
3796 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
3798 SMLoc ExprLoc = Asm.getTok().getLoc(); in parseHexOcta()
3799 APInt IntValue = Asm.getTok().getAPIntVal(); in parseHexOcta()
3835 StringRef IDVal = getTok().getString(); in parseRealValue()
3878 while (getTok().isNot(EndToken) || in parseRealInstList()
3880 getTok().isNot(AsmToken::GreaterGreater))) { in parseRealInstList()
4004 const AsmToken Tok = getTok(); in parseOptionalAngleBracketOpen()
4022 const AsmToken Tok = getTok(); in parseAngleBracketClose()
4035 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4087 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4126 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4178 const AsmToken FirstToken = getTok(); in parseStructInitializer()
4199 while (getTok().isNot(*EndToken) && FieldIndex < Structure.Fields.size()) { in parseStructInitializer()
4213 SMLoc CommaLoc = getTok().getLoc(); in parseStructInitializer()
4239 while (getTok().isNot(EndToken) || in parseStructInstList()
4241 getTok().isNot(AsmToken::GreaterGreater))) { in parseStructInstList()
4509 AsmToken NextTok = getTok(); in parseDirectiveStruct()
4525 QualifierLoc = getTok().getLoc(); in parseDirectiveStruct()
4552 if (getTok().is(AsmToken::Identifier)) { in parseDirectiveNestedStruct()
4553 Name = getTok().getIdentifier(); in parseDirectiveNestedStruct()
4732 if (getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()
4773 FileNumber = getTok().getIntVal(); in parseDirectiveFile()
4784 if (check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
4812 if (check(getTok().isNot(AsmToken::Identifier), in parseDirectiveFile()
4826 check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
4910 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
4920 LineNumber = getTok().getIntVal(); in parseDirectiveLoc()
4928 ColumnPos = getTok().getIntVal(); in parseDirectiveLoc()
4941 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
4952 Loc = getTok().getLoc(); in parseDirectiveLoc()
4969 Loc = getTok().getLoc(); in parseDirectiveLoc()
5009 SMLoc FileNumberLoc = getTok().getLoc(); in parseDirectiveCVFile()
5018 check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
5023 if (check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
5071 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVFuncId()
5092 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVInlineSiteId()
5105 getTok().getIdentifier() != "within"), in parseDirectiveCVInlineSiteId()
5116 getTok().getIdentifier() != "inlined_at"), in parseDirectiveCVInlineSiteId()
5129 IACol = getTok().getIntVal(); in parseDirectiveCVInlineSiteId()
5151 SMLoc DirectiveLoc = getTok().getLoc(); in parseDirectiveCVLoc()
5159 LineNumber = getTok().getIntVal(); in parseDirectiveCVLoc()
5167 ColumnPos = getTok().getIntVal(); in parseDirectiveCVLoc()
5178 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLoc()
5184 Loc = getTok().getLoc(); in parseDirectiveCVLoc()
5215 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLinetable()
5239 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVInlineLinetable()
5814 if (getTok().is(AsmToken::Identifier) && in parseDirectiveMacro()
5815 getTok().getIdentifier().equals_insensitive("local")) { in parseDirectiveMacro()
5832 AsmToken EndToken, StartToken = getTok(); in parseDirectiveMacro()
5849 if (getTok().getIdentifier().equals_insensitive("endm")) { in parseDirectiveMacro()
5851 EndToken = getTok(); in parseDirectiveMacro()
5861 } else if (getTok().getIdentifier().equals_insensitive("exitm")) { in parseDirectiveMacro()
5896 SMLoc EndLoc = getTok().getLoc(); in parseDirectiveExitMacro()
5897 if (getTok().isNot(AsmToken::EndOfStatement) && parseTextItem(Value)) in parseDirectiveExitMacro()
5964 SMLoc NameLoc = getTok().getLoc(); in parseDirectiveExtern()
5971 SMLoc TypeLoc = getTok().getLoc(); in parseDirectiveExtern()
5998 SMLoc Loc = getTok().getLoc(); in parseDirectiveSymbolAttribute()
6104 if (getTok().is(AsmToken::Eof)) in parseDirectiveComment()
6118 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude()
6123 check(getTok().isNot(AsmToken::EndOfStatement), in parseDirectiveInclude()
6500 return Error(getTok().getLoc(), "missing text item in '.errb' directive"); in parseDirectiveErrorIfb()
6789 bool IsMacroLike = StringSwitch<bool>(getTok().getIdentifier()) in isMacroLikeDirective()
6806 AsmToken EndToken, StartToken = getTok(); in parseMacroLikeBody()
6821 getTok().getIdentifier().equals_insensitive("endm")) { in parseMacroLikeBody()
6823 EndToken = getTok(); in parseMacroLikeBody()
6826 printError(getTok().getLoc(), "unexpected token in 'endm' directive"); in parseMacroLikeBody()
6849 SMLoc EndLoc = getTok().getLoc(); in expandStatement()
6906 instantiateMacroLikeBody(M, DirectiveLoc, /*ExitLoc=*/getTok().getLoc(), OS); in instantiateMacroLikeBody()
6935 SMLoc CountLoc = getTok().getLoc(); in parseDirectiveRepeat()
6958 getTok().getLoc())) in parseDirectiveRepeat()
6972 SMLoc CondLoc = getTok().getLoc(); in parseDirectiveWhile()
6992 getTok().getLoc())) in parseDirectiveWhile()
7075 if (expandMacro(OS, M->Body, Parameter, Arg, M->Locals, getTok().getLoc())) in parseDirectiveFor()
7102 if (getTok().is(AsmToken::EndOfStatement)) in parseDirectiveForc()
7103 Argument += getTok().getString(); in parseDirectiveForc()
7129 if (expandMacro(OS, M->Body, Parameter, Arg, M->Locals, getTok().getLoc())) in parseDirectiveForc()