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()
1433 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
1461 return Error(getTok().getLoc(), in checkForValidSection()
1491 const char *Start = getTok().getLoc().getPointer(); in parseStringRefsTo()
1498 Refs.emplace_back(Start, getTok().getLoc().getPointer() - Start); in parseStringRefsTo()
1503 Start = getTok().getLoc().getPointer(); in parseStringRefsTo()
1508 Refs.emplace_back(Start, getTok().getLoc().getPointer() - Start); in parseStringRefsTo()
1522 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1527 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1539 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
1551 EndLoc = getTok().getEndLoc(); in parseBracketExpr()
1587 if (getTok().is(AsmToken::Dollar)) { in parsePrimaryExpr()
1736 int64_t IntVal = getTok().getIntVal(); in parsePrimaryExpr()
1738 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1744 SMLoc ValueLoc = getTok().getLoc(); in parsePrimaryExpr()
1757 APFloat RealVal(APFloat::IEEEdouble(), getTok().getString()); in parsePrimaryExpr()
1760 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1770 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1921 EndLoc = getTok().getEndLoc(); in parseParenExprOfDepth()
2036 TokKind = StringSwitch<AsmToken::TokenKind>(Lexer.getTok().getString()) in parseBinOpRHS()
2091 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
2092 getTok().getString().front() == '\n') in parseStatement()
2100 if (getTok().is(AsmToken::Percent)) { in parseStatement()
2101 SMLoc ExpansionLoc = getTok().getLoc(); in parseStatement()
2108 AsmToken ID = getTok(); in parseStatement()
2119 IDVal = getTok().getString(); in parseStatement()
2243 if (getTok().is(AsmToken::Hash)) { in parseStatement()
2251 if (getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2296 getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2509 const AsmToken nextTok = getTok(); in parseStatement()
2749 assert(getTok().is(AsmToken::Integer) && in parseCppHashLineFilenameComment()
2751 int64_t LineNumber = getTok().getIntVal(); in parseCppHashLineFilenameComment()
2753 assert(getTok().is(AsmToken::String) && in parseCppHashLineFilenameComment()
2755 StringRef Filename = getTok().getString(); in parseCppHashLineFilenameComment()
3050 MA.push_back(getTok()); in parseMacroArgument()
3076 MA.push_back(getTok()); in parseMacroArgument()
3234 if (expandMacro(OS, Body, M->Parameters, A, M->Locals, getTok().getLoc())) in handleMacroEntry()
3247 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in handleMacroEntry()
3297 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in handleMacroInvocation()
3357 StringRef(PrefixLoc.getPointer(), getTok().getIdentifier().size() + 1); in parseIdentifier()
3365 Res = getTok().getIdentifier(); in parseIdentifier()
3419 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3460 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3488 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3513 if (check(getTok().isNot(AsmToken::String), "expected string")) in parseEscapedString()
3517 char Quote = getTok().getString().front(); in parseEscapedString()
3518 StringRef Str = getTok().getStringContents(); in parseEscapedString()
3527 return Error(getTok().getLoc(), "missing quotation mark in string"); in parseEscapedString()
3538 SMLoc EndLoc, StartLoc = getTok().getLoc(); in parseAngleBracketString()
3554 switch (getTok().getKind()) { in parseTextItem()
3572 SMLoc StartLoc = getTok().getLoc(); in parseTextItem()
3664 if (Size == 1 && getTok().is(AsmToken::String)) { in parseScalarInitializer()
3679 if (getTok().is(AsmToken::Identifier) && in parseScalarInitializer()
3680 getTok().getString().equals_insensitive("dup")) { in parseScalarInitializer()
3709 while (getTok().isNot(EndToken) && in parseScalarInstList()
3711 getTok().isNot(AsmToken::GreaterGreater))) { in parseScalarInstList()
3796 if (Asm.getTok().isNot(AsmToken::Integer) && in parseHexOcta()
3797 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
3799 SMLoc ExprLoc = Asm.getTok().getLoc(); in parseHexOcta()
3800 APInt IntValue = Asm.getTok().getAPIntVal(); in parseHexOcta()
3836 StringRef IDVal = getTok().getString(); in parseRealValue()
3879 while (getTok().isNot(EndToken) || in parseRealInstList()
3881 getTok().isNot(AsmToken::GreaterGreater))) { in parseRealInstList()
4005 const AsmToken Tok = getTok(); in parseOptionalAngleBracketOpen()
4023 const AsmToken Tok = getTok(); in parseAngleBracketClose()
4036 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4088 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4127 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4179 const AsmToken FirstToken = getTok(); in parseStructInitializer()
4200 while (getTok().isNot(*EndToken) && FieldIndex < Structure.Fields.size()) { in parseStructInitializer()
4214 SMLoc CommaLoc = getTok().getLoc(); in parseStructInitializer()
4240 while (getTok().isNot(EndToken) || in parseStructInstList()
4242 getTok().isNot(AsmToken::GreaterGreater))) { in parseStructInstList()
4510 AsmToken NextTok = getTok(); in parseDirectiveStruct()
4526 QualifierLoc = getTok().getLoc(); in parseDirectiveStruct()
4553 if (getTok().is(AsmToken::Identifier)) { in parseDirectiveNestedStruct()
4554 Name = getTok().getIdentifier(); in parseDirectiveNestedStruct()
4733 if (getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()
4774 FileNumber = getTok().getIntVal(); in parseDirectiveFile()
4785 if (check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
4813 if (check(getTok().isNot(AsmToken::Identifier), in parseDirectiveFile()
4827 check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
4911 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
4921 LineNumber = getTok().getIntVal(); in parseDirectiveLoc()
4929 ColumnPos = getTok().getIntVal(); in parseDirectiveLoc()
4942 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
4953 Loc = getTok().getLoc(); in parseDirectiveLoc()
4970 Loc = getTok().getLoc(); in parseDirectiveLoc()
5010 SMLoc FileNumberLoc = getTok().getLoc(); in parseDirectiveCVFile()
5019 check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
5024 if (check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
5072 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVFuncId()
5093 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVInlineSiteId()
5106 getTok().getIdentifier() != "within"), in parseDirectiveCVInlineSiteId()
5117 getTok().getIdentifier() != "inlined_at"), in parseDirectiveCVInlineSiteId()
5130 IACol = getTok().getIntVal(); in parseDirectiveCVInlineSiteId()
5152 SMLoc DirectiveLoc = getTok().getLoc(); in parseDirectiveCVLoc()
5160 LineNumber = getTok().getIntVal(); in parseDirectiveCVLoc()
5168 ColumnPos = getTok().getIntVal(); in parseDirectiveCVLoc()
5179 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLoc()
5185 Loc = getTok().getLoc(); in parseDirectiveCVLoc()
5216 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLinetable()
5240 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVInlineLinetable()
5815 if (getTok().is(AsmToken::Identifier) && in parseDirectiveMacro()
5816 getTok().getIdentifier().equals_insensitive("local")) { in parseDirectiveMacro()
5833 AsmToken EndToken, StartToken = getTok(); in parseDirectiveMacro()
5850 if (getTok().getIdentifier().equals_insensitive("endm")) { in parseDirectiveMacro()
5852 EndToken = getTok(); in parseDirectiveMacro()
5862 } else if (getTok().getIdentifier().equals_insensitive("exitm")) { in parseDirectiveMacro()
5897 SMLoc EndLoc = getTok().getLoc(); in parseDirectiveExitMacro()
5898 if (getTok().isNot(AsmToken::EndOfStatement) && parseTextItem(Value)) in parseDirectiveExitMacro()
5965 SMLoc NameLoc = getTok().getLoc(); in parseDirectiveExtern()
5972 SMLoc TypeLoc = getTok().getLoc(); in parseDirectiveExtern()
5999 SMLoc Loc = getTok().getLoc(); in parseDirectiveSymbolAttribute()
6105 if (getTok().is(AsmToken::Eof)) in parseDirectiveComment()
6119 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude()
6124 check(getTok().isNot(AsmToken::EndOfStatement), in parseDirectiveInclude()
6501 return Error(getTok().getLoc(), "missing text item in '.errb' directive"); in parseDirectiveErrorIfb()
6790 bool IsMacroLike = StringSwitch<bool>(getTok().getIdentifier()) in isMacroLikeDirective()
6807 AsmToken EndToken, StartToken = getTok(); in parseMacroLikeBody()
6822 getTok().getIdentifier().equals_insensitive("endm")) { in parseMacroLikeBody()
6824 EndToken = getTok(); in parseMacroLikeBody()
6827 printError(getTok().getLoc(), "unexpected token in 'endm' directive"); in parseMacroLikeBody()
6850 SMLoc EndLoc = getTok().getLoc(); in expandStatement()
6907 instantiateMacroLikeBody(M, DirectiveLoc, /*ExitLoc=*/getTok().getLoc(), OS); in instantiateMacroLikeBody()
6936 SMLoc CountLoc = getTok().getLoc(); in parseDirectiveRepeat()
6959 getTok().getLoc())) in parseDirectiveRepeat()
6973 SMLoc CondLoc = getTok().getLoc(); in parseDirectiveWhile()
6993 getTok().getLoc())) in parseDirectiveWhile()
7076 if (expandMacro(OS, M->Body, Parameter, Arg, M->Locals, getTok().getLoc())) in parseDirectiveFor()
7103 if (getTok().is(AsmToken::EndOfStatement)) in parseDirectiveForc()
7104 Argument += getTok().getString(); in parseDirectiveForc()
7130 if (expandMacro(OS, M->Body, Parameter, Arg, M->Locals, getTok().getLoc())) in parseDirectiveForc()