Lines Matching refs:getTok

1165   const AsmToken &Tok = getTok();  in expandMacros()
1209 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
1213 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
1215 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
1216 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
1217 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
1361 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
1383 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
1390 printError(getTok().getLoc(), "unassigned file number: " + in Run()
1412 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
1440 return Error(getTok().getLoc(), in checkForValidSection()
1470 const char *Start = getTok().getLoc().getPointer(); in parseStringRefsTo()
1477 Refs.emplace_back(Start, getTok().getLoc().getPointer() - Start); in parseStringRefsTo()
1482 Start = getTok().getLoc().getPointer(); in parseStringRefsTo()
1487 Refs.emplace_back(Start, getTok().getLoc().getPointer() - Start); in parseStringRefsTo()
1501 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1506 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1518 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
1530 EndLoc = getTok().getEndLoc(); in parseBracketExpr()
1566 if (getTok().is(AsmToken::Dollar)) { in parsePrimaryExpr()
1727 int64_t IntVal = getTok().getIntVal(); in parsePrimaryExpr()
1729 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1735 SMLoc ValueLoc = getTok().getLoc(); in parsePrimaryExpr()
1748 APFloat RealVal(APFloat::IEEEdouble(), getTok().getString()); in parsePrimaryExpr()
1751 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1761 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1912 EndLoc = getTok().getEndLoc(); in parseParenExprOfDepth()
2027 TokKind = StringSwitch<AsmToken::TokenKind>(Lexer.getTok().getString()) in parseBinOpRHS()
2082 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
2083 getTok().getString().front() == '\n') in parseStatement()
2091 if (getTok().is(AsmToken::Percent)) { in parseStatement()
2092 SMLoc ExpansionLoc = getTok().getLoc(); in parseStatement()
2099 AsmToken ID = getTok(); in parseStatement()
2124 IDVal = getTok().getString(); in parseStatement()
2249 if (getTok().is(AsmToken::Hash)) { in parseStatement()
2257 if (getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2306 getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2318 SMLoc StartTokLoc = getTok().getLoc(); in parseStatement()
2329 if (TPDirectiveReturn && StartTokLoc != getTok().getLoc()) in parseStatement()
2332 if (!TPDirectiveReturn || StartTokLoc != getTok().getLoc()) in parseStatement()
2525 const AsmToken nextTok = getTok(); in parseStatement()
2765 assert(getTok().is(AsmToken::Integer) && in parseCppHashLineFilenameComment()
2767 int64_t LineNumber = getTok().getIntVal(); in parseCppHashLineFilenameComment()
2769 assert(getTok().is(AsmToken::String) && in parseCppHashLineFilenameComment()
2771 StringRef Filename = getTok().getString(); in parseCppHashLineFilenameComment()
3066 MA.push_back(getTok()); in parseMacroArgument()
3092 MA.push_back(getTok()); in parseMacroArgument()
3250 if (expandMacro(OS, Body, M->Parameters, A, M->Locals, getTok().getLoc())) in handleMacroEntry()
3263 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in handleMacroEntry()
3313 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in handleMacroInvocation()
3373 StringRef(PrefixLoc.getPointer(), getTok().getIdentifier().size() + 1); in parseIdentifier()
3381 Res = getTok().getIdentifier(); in parseIdentifier()
3435 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3476 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3504 return Error(getTok().getLoc(), "invalid variable redefinition"); in parseDirectiveEquate()
3529 if (check(getTok().isNot(AsmToken::String), "expected string")) in parseEscapedString()
3533 char Quote = getTok().getString().front(); in parseEscapedString()
3534 StringRef Str = getTok().getStringContents(); in parseEscapedString()
3543 return Error(getTok().getLoc(), "missing quotation mark in string"); in parseEscapedString()
3554 SMLoc EndLoc, StartLoc = getTok().getLoc(); in parseAngleBracketString()
3570 switch (getTok().getKind()) { in parseTextItem()
3588 SMLoc StartLoc = getTok().getLoc(); in parseTextItem()
3680 if (Size == 1 && getTok().is(AsmToken::String)) { in parseScalarInitializer()
3695 if (getTok().is(AsmToken::Identifier) && in parseScalarInitializer()
3696 getTok().getString().equals_insensitive("dup")) { in parseScalarInitializer()
3725 while (getTok().isNot(EndToken) && in parseScalarInstList()
3727 getTok().isNot(AsmToken::GreaterGreater))) { in parseScalarInstList()
3812 if (Asm.getTok().isNot(AsmToken::Integer) && in parseHexOcta()
3813 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
3815 SMLoc ExprLoc = Asm.getTok().getLoc(); in parseHexOcta()
3816 APInt IntValue = Asm.getTok().getAPIntVal(); in parseHexOcta()
3852 StringRef IDVal = getTok().getString(); in parseRealValue()
3895 while (getTok().isNot(EndToken) || in parseRealInstList()
3897 getTok().isNot(AsmToken::GreaterGreater))) { in parseRealInstList()
4021 const AsmToken Tok = getTok(); in parseOptionalAngleBracketOpen()
4039 const AsmToken Tok = getTok(); in parseAngleBracketClose()
4052 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4104 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4143 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4195 const AsmToken FirstToken = getTok(); in parseStructInitializer()
4216 while (getTok().isNot(EndToken.value()) && in parseStructInitializer()
4231 SMLoc CommaLoc = getTok().getLoc(); in parseStructInitializer()
4257 while (getTok().isNot(EndToken) || in parseStructInstList()
4259 getTok().isNot(AsmToken::GreaterGreater))) { in parseStructInstList()
4527 AsmToken NextTok = getTok(); in parseDirectiveStruct()
4543 QualifierLoc = getTok().getLoc(); in parseDirectiveStruct()
4570 if (getTok().is(AsmToken::Identifier)) { in parseDirectiveNestedStruct()
4571 Name = getTok().getIdentifier(); in parseDirectiveNestedStruct()
4749 if (getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()
4791 FileNumber = getTok().getIntVal(); in parseDirectiveFile()
4802 if (check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
4830 if (check(getTok().isNot(AsmToken::Identifier), in parseDirectiveFile()
4844 check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
4928 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
4938 LineNumber = getTok().getIntVal(); in parseDirectiveLoc()
4946 ColumnPos = getTok().getIntVal(); in parseDirectiveLoc()
4959 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
4970 Loc = getTok().getLoc(); in parseDirectiveLoc()
4987 Loc = getTok().getLoc(); in parseDirectiveLoc()
5027 SMLoc FileNumberLoc = getTok().getLoc(); in parseDirectiveCVFile()
5036 check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
5041 if (check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
5089 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVFuncId()
5110 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVInlineSiteId()
5123 getTok().getIdentifier() != "within"), in parseDirectiveCVInlineSiteId()
5134 getTok().getIdentifier() != "inlined_at"), in parseDirectiveCVInlineSiteId()
5147 IACol = getTok().getIntVal(); in parseDirectiveCVInlineSiteId()
5169 SMLoc DirectiveLoc = getTok().getLoc(); in parseDirectiveCVLoc()
5177 LineNumber = getTok().getIntVal(); in parseDirectiveCVLoc()
5185 ColumnPos = getTok().getIntVal(); in parseDirectiveCVLoc()
5196 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLoc()
5202 Loc = getTok().getLoc(); in parseDirectiveCVLoc()
5233 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLinetable()
5257 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVInlineLinetable()
5832 if (getTok().is(AsmToken::Identifier) && in parseDirectiveMacro()
5833 getTok().getIdentifier().equals_insensitive("local")) { in parseDirectiveMacro()
5850 AsmToken EndToken, StartToken = getTok(); in parseDirectiveMacro()
5867 if (getTok().getIdentifier().equals_insensitive("endm")) { in parseDirectiveMacro()
5869 EndToken = getTok(); in parseDirectiveMacro()
5879 } else if (getTok().getIdentifier().equals_insensitive("exitm")) { in parseDirectiveMacro()
5914 SMLoc EndLoc = getTok().getLoc(); in parseDirectiveExitMacro()
5915 if (getTok().isNot(AsmToken::EndOfStatement) && parseTextItem(Value)) in parseDirectiveExitMacro()
5982 SMLoc NameLoc = getTok().getLoc(); in parseDirectiveExtern()
5989 SMLoc TypeLoc = getTok().getLoc(); in parseDirectiveExtern()
6016 SMLoc Loc = getTok().getLoc(); in parseDirectiveSymbolAttribute()
6120 if (getTok().is(AsmToken::Eof)) in parseDirectiveComment()
6134 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude()
6139 check(getTok().isNot(AsmToken::EndOfStatement), in parseDirectiveInclude()
6516 return Error(getTok().getLoc(), "missing text item in '.errb' directive"); in parseDirectiveErrorIfb()
6804 bool IsMacroLike = StringSwitch<bool>(getTok().getIdentifier()) in isMacroLikeDirective()
6821 AsmToken EndToken, StartToken = getTok(); in parseMacroLikeBody()
6836 getTok().getIdentifier().equals_insensitive("endm")) { in parseMacroLikeBody()
6838 EndToken = getTok(); in parseMacroLikeBody()
6841 printError(getTok().getLoc(), "unexpected token in 'endm' directive"); in parseMacroLikeBody()
6864 SMLoc EndLoc = getTok().getLoc(); in expandStatement()
6921 instantiateMacroLikeBody(M, DirectiveLoc, /*ExitLoc=*/getTok().getLoc(), OS); in instantiateMacroLikeBody()
6950 SMLoc CountLoc = getTok().getLoc(); in parseDirectiveRepeat()
6972 if (expandMacro(OS, M->Body, None, None, M->Locals, getTok().getLoc())) in parseDirectiveRepeat()
6986 SMLoc CondLoc = getTok().getLoc(); in parseDirectiveWhile()
7005 if (expandMacro(OS, M->Body, None, None, M->Locals, getTok().getLoc())) in parseDirectiveWhile()
7088 if (expandMacro(OS, M->Body, Parameter, Arg, M->Locals, getTok().getLoc())) in parseDirectiveFor()
7115 if (getTok().is(AsmToken::EndOfStatement)) in parseDirectiveForc()
7116 Argument += getTok().getString(); in parseDirectiveForc()
7142 if (expandMacro(OS, M->Body, Parameter, Arg, M->Locals, getTok().getLoc())) in parseDirectiveForc()