Lines Matching refs:getTok

1166   const AsmToken &Tok = getTok();  in expandMacros()
1210 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
1214 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
1216 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
1217 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
1218 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
1362 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
1384 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
1391 printError(getTok().getLoc(), "unassigned file number: " + in Run()
1413 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
1441 return Error(getTok().getLoc(), in checkForValidSection()
1471 const char *Start = getTok().getLoc().getPointer(); in parseStringRefsTo()
1478 Refs.emplace_back(Start, getTok().getLoc().getPointer() - Start); in parseStringRefsTo()
1483 Start = getTok().getLoc().getPointer(); in parseStringRefsTo()
1488 Refs.emplace_back(Start, getTok().getLoc().getPointer() - Start); in parseStringRefsTo()
1502 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1507 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1521 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
1534 EndLoc = getTok().getEndLoc(); in parseBracketExpr()
1570 if (getTok().is(AsmToken::Dollar)) { in parsePrimaryExpr()
1721 SMLoc Loc = getTok().getLoc(); in parsePrimaryExpr()
1722 int64_t IntVal = getTok().getIntVal(); in parsePrimaryExpr()
1724 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1728 StringRef IDVal = getTok().getString(); in parsePrimaryExpr()
1745 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1753 SMLoc ValueLoc = getTok().getLoc(); in parsePrimaryExpr()
1766 APFloat RealVal(APFloat::IEEEdouble(), getTok().getString()); in parsePrimaryExpr()
1769 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1779 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1931 EndLoc = getTok().getEndLoc(); in parseParenExprOfDepth()
2047 TokKind = StringSwitch<AsmToken::TokenKind>(Lexer.getTok().getString()) in parseBinOpRHS()
2099 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
2100 getTok().getString().front() == '\n') in parseStatement()
2108 if (getTok().is(AsmToken::Percent)) { in parseStatement()
2109 SMLoc ExpansionLoc = getTok().getLoc(); in parseStatement()
2116 AsmToken ID = getTok(); in parseStatement()
2124 LocalLabelVal = getTok().getIntVal(); in parseStatement()
2132 IDVal = getTok().getString(); in parseStatement()
2161 IDVal = getTok().getString(); in parseStatement()
2283 if (getTok().is(AsmToken::Hash)) { in parseStatement()
2291 if (getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2340 getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2352 SMLoc StartTokLoc = getTok().getLoc(); in parseStatement()
2363 if (TPDirectiveReturn && StartTokLoc != getTok().getLoc()) in parseStatement()
2366 if (!TPDirectiveReturn || StartTokLoc != getTok().getLoc()) in parseStatement()
2560 const AsmToken nextTok = getTok(); in parseStatement()
2800 assert(getTok().is(AsmToken::Integer) && in parseCppHashLineFilenameComment()
2802 int64_t LineNumber = getTok().getIntVal(); in parseCppHashLineFilenameComment()
2804 assert(getTok().is(AsmToken::String) && in parseCppHashLineFilenameComment()
2806 StringRef Filename = getTok().getString(); in parseCppHashLineFilenameComment()
3101 MA.push_back(getTok()); in parseMacroArgument()
3127 MA.push_back(getTok()); in parseMacroArgument()
3285 if (expandMacro(OS, Body, M->Parameters, A, M->Locals, getTok().getLoc())) in handleMacroEntry()
3298 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in handleMacroEntry()
3348 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in handleMacroInvocation()
3409 StringRef(PrefixLoc.getPointer(), getTok().getIdentifier().size() + 1); in parseIdentifier()
3417 Res = getTok().getIdentifier(); in parseIdentifier()
3471 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3512 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3540 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3565 if (check(getTok().isNot(AsmToken::String), "expected string")) in parseEscapedString()
3569 char Quote = getTok().getString().front(); in parseEscapedString()
3570 StringRef Str = getTok().getStringContents(); in parseEscapedString()
3579 return Error(getTok().getLoc(), "missing quotation mark in string"); in parseEscapedString()
3590 SMLoc EndLoc, StartLoc = getTok().getLoc(); in parseAngleBracketString()
3606 switch (getTok().getKind()) { in parseTextItem()
3624 SMLoc StartLoc = getTok().getLoc(); in parseTextItem()
3716 if (Size == 1 && getTok().is(AsmToken::String)) { in parseScalarInitializer()
3731 if (getTok().is(AsmToken::Identifier) && in parseScalarInitializer()
3732 getTok().getString().equals_insensitive("dup")) { in parseScalarInitializer()
3762 while (getTok().isNot(EndToken) && in parseScalarInstList()
3764 getTok().isNot(AsmToken::GreaterGreater))) { in parseScalarInstList()
3849 if (Asm.getTok().isNot(AsmToken::Integer) && in parseHexOcta()
3850 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
3852 SMLoc ExprLoc = Asm.getTok().getLoc(); in parseHexOcta()
3853 APInt IntValue = Asm.getTok().getAPIntVal(); in parseHexOcta()
3889 StringRef IDVal = getTok().getString(); in parseRealValue()
3932 while (getTok().isNot(EndToken) || in parseRealInstList()
3934 getTok().isNot(AsmToken::GreaterGreater))) { in parseRealInstList()
4059 const AsmToken Tok = getTok(); in parseOptionalAngleBracketOpen()
4077 const AsmToken Tok = getTok(); in parseAngleBracketClose()
4090 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4142 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4181 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4233 const AsmToken FirstToken = getTok(); in parseStructInitializer()
4254 while (getTok().isNot(EndToken.getValue()) && in parseStructInitializer()
4269 SMLoc CommaLoc = getTok().getLoc(); in parseStructInitializer()
4298 while (getTok().isNot(EndToken) || in parseStructInstList()
4300 getTok().isNot(AsmToken::GreaterGreater))) { in parseStructInstList()
4575 AsmToken NextTok = getTok(); in parseDirectiveStruct()
4591 QualifierLoc = getTok().getLoc(); in parseDirectiveStruct()
4618 if (getTok().is(AsmToken::Identifier)) { in parseDirectiveNestedStruct()
4619 Name = getTok().getIdentifier(); in parseDirectiveNestedStruct()
4798 if (getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()
4840 FileNumber = getTok().getIntVal(); in parseDirectiveFile()
4851 if (check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
4879 if (check(getTok().isNot(AsmToken::Identifier), in parseDirectiveFile()
4893 check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
4978 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
4988 LineNumber = getTok().getIntVal(); in parseDirectiveLoc()
4996 ColumnPos = getTok().getIntVal(); in parseDirectiveLoc()
5009 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
5020 Loc = getTok().getLoc(); in parseDirectiveLoc()
5037 Loc = getTok().getLoc(); in parseDirectiveLoc()
5077 SMLoc FileNumberLoc = getTok().getLoc(); in parseDirectiveCVFile()
5086 check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
5091 if (check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
5140 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVFuncId()
5163 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVInlineSiteId()
5176 getTok().getIdentifier() != "within"), in parseDirectiveCVInlineSiteId()
5187 getTok().getIdentifier() != "inlined_at"), in parseDirectiveCVInlineSiteId()
5200 IACol = getTok().getIntVal(); in parseDirectiveCVInlineSiteId()
5223 SMLoc DirectiveLoc = getTok().getLoc(); in parseDirectiveCVLoc()
5231 LineNumber = getTok().getIntVal(); in parseDirectiveCVLoc()
5239 ColumnPos = getTok().getIntVal(); in parseDirectiveCVLoc()
5250 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLoc()
5256 Loc = getTok().getLoc(); in parseDirectiveCVLoc()
5287 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLinetable()
5311 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVInlineLinetable()
5887 if (getTok().is(AsmToken::Identifier) && in parseDirectiveMacro()
5888 getTok().getIdentifier().equals_insensitive("local")) { in parseDirectiveMacro()
5905 AsmToken EndToken, StartToken = getTok(); in parseDirectiveMacro()
5922 if (getTok().getIdentifier().equals_insensitive("endm")) { in parseDirectiveMacro()
5924 EndToken = getTok(); in parseDirectiveMacro()
5934 } else if (getTok().getIdentifier().equals_insensitive("exitm")) { in parseDirectiveMacro()
5969 SMLoc EndLoc = getTok().getLoc(); in parseDirectiveExitMacro()
5970 if (getTok().isNot(AsmToken::EndOfStatement) && parseTextItem(Value)) in parseDirectiveExitMacro()
6038 SMLoc Loc = getTok().getLoc(); in parseDirectiveSymbolAttribute()
6143 if (getTok().is(AsmToken::Eof)) in parseDirectiveComment()
6158 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude()
6163 check(getTok().isNot(AsmToken::EndOfStatement), in parseDirectiveInclude()
6548 return Error(getTok().getLoc(), "missing text item in '.errb' directive"); in parseDirectiveErrorIfb()
6837 bool IsMacroLike = StringSwitch<bool>(getTok().getIdentifier()) in isMacroLikeDirective()
6854 AsmToken EndToken, StartToken = getTok(); in parseMacroLikeBody()
6869 getTok().getIdentifier().equals_insensitive("endm")) { in parseMacroLikeBody()
6871 EndToken = getTok(); in parseMacroLikeBody()
6874 printError(getTok().getLoc(), "unexpected token in 'endm' directive"); in parseMacroLikeBody()
6897 SMLoc EndLoc = getTok().getLoc(); in expandStatement()
6954 instantiateMacroLikeBody(M, DirectiveLoc, /*ExitLoc=*/getTok().getLoc(), OS); in instantiateMacroLikeBody()
6983 SMLoc CountLoc = getTok().getLoc(); in parseDirectiveRepeat()
7007 if (expandMacro(OS, M->Body, None, None, M->Locals, getTok().getLoc())) in parseDirectiveRepeat()
7021 SMLoc CondLoc = getTok().getLoc(); in parseDirectiveWhile()
7040 if (expandMacro(OS, M->Body, None, None, M->Locals, getTok().getLoc())) in parseDirectiveWhile()
7123 if (expandMacro(OS, M->Body, Parameter, Arg, M->Locals, getTok().getLoc())) in parseDirectiveFor()
7150 if (getTok().is(AsmToken::EndOfStatement)) in parseDirectiveForc()
7151 Argument += getTok().getString(); in parseDirectiveForc()
7177 if (expandMacro(OS, M->Body, Parameter, Arg, M->Locals, getTok().getLoc())) in parseDirectiveForc()