Lines Matching refs:getTok

912   if (Lexer.getTok().is(AsmToken::Error))  in Lex()
916 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
918 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
919 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
920 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
1008 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
1030 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
1037 printError(getTok().getLoc(), "unassigned file number: " + in Run()
1059 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
1090 return Error(getTok().getLoc(), in checkForValidSection()
1107 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1112 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1117 const char *Start = getTok().getLoc().getPointer(); in parseStringToComma()
1123 const char *End = getTok().getLoc().getPointer(); in parseStringToComma()
1135 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
1147 EndLoc = getTok().getEndLoc(); in parseBracketExpr()
1184 if (getTok().is(AsmToken::Dollar) || getTok().is(AsmToken::Star)) { in parsePrimaryExpr()
1186 if ((getTok().is(AsmToken::Dollar) && MAI.getDollarIsPC()) || in parsePrimaryExpr()
1187 (getTok().is(AsmToken::Star) && MAI.getStarIsPC())) in parsePrimaryExpr()
1279 SMLoc Loc = getTok().getLoc(); in parsePrimaryExpr()
1280 int64_t IntVal = getTok().getIntVal(); in parsePrimaryExpr()
1282 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1286 StringRef IDVal = getTok().getString(); in parsePrimaryExpr()
1303 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1310 APFloat RealVal(APFloat::IEEEdouble(), getTok().getString()); in parsePrimaryExpr()
1313 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1326 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1418 TokError("invalid variant on expression '" + getTok().getIdentifier() + in applyModifierToExpr()
1520 MCSymbolRefExpr::getVariantKindForName(getTok().getIdentifier()); in parseExpression()
1522 return TokError("invalid variant '" + getTok().getIdentifier() + "'"); in parseExpression()
1526 return TokError("invalid modifier '" + getTok().getIdentifier() + in parseExpression()
1560 EndLoc = getTok().getEndLoc(); in parseParenExprOfDepth()
1792 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
1793 getTok().getString().front() == '\n') in parseStatement()
1799 AsmToken ID = getTok(); in parseStatement()
1810 LocalLabelVal = getTok().getIntVal(); in parseStatement()
1818 IDVal = getTok().getString(); in parseStatement()
1942 if (getTok().is(AsmToken::Hash)) { in parseStatement()
1950 if (getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2416 assert(getTok().is(AsmToken::Integer) && in parseCppHashLineFilenameComment()
2418 int64_t LineNumber = getTok().getIntVal(); in parseCppHashLineFilenameComment()
2420 assert(getTok().is(AsmToken::String) && in parseCppHashLineFilenameComment()
2422 StringRef Filename = getTok().getString(); in parseCppHashLineFilenameComment()
2721 MA.push_back(getTok()); in parseMacroArgument()
2747 MA.push_back(getTok()); in parseMacroArgument()
2898 if (expandMacro(OS, Body, M->Parameters, A, true, getTok().getLoc())) in handleMacroEntry()
2911 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in handleMacroEntry()
2937 SMLoc ExprLoc = getTok().getLoc(); in parseAssignment()
3003 Res = StringRef(PrefixLoc.getPointer(), getTok().getString().size() + 1); in parseIdentifier()
3011 Res = getTok().getIdentifier(); in parseIdentifier()
3032 if (check(getTok().isNot(AsmToken::String), "expected string")) in parseEscapedString()
3036 StringRef Str = getTok().getStringContents(); in parseEscapedString()
3108 SMLoc EndLoc, StartLoc = getTok().getLoc(); in parseAngleBracketString()
3136 } while (!ZeroTerminated && getTok().is(AsmToken::String)); in parseDirectiveAscii()
3150 SMLoc OffsetLoc = Lexer.getTok().getLoc(); in parseDirectiveReloc()
3155 check(getTok().isNot(AsmToken::Identifier), "expected relocation name")) in parseDirectiveReloc()
3158 SMLoc NameLoc = Lexer.getTok().getLoc(); in parseDirectiveReloc()
3159 StringRef Name = Lexer.getTok().getIdentifier(); in parseDirectiveReloc()
3210 if (Asm.getTok().isNot(AsmToken::Integer) && in parseHexOcta()
3211 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
3213 SMLoc ExprLoc = Asm.getTok().getLoc(); in parseHexOcta()
3214 APInt IntValue = Asm.getTok().getAPIntVal(); in parseHexOcta()
3269 StringRef IDVal = getTok().getString(); in parseRealValue()
3345 SizeLoc = getTok().getLoc(); in parseDirectiveFill()
3349 ExprLoc = getTok().getLoc(); in parseDirectiveFill()
3412 if (getTok().isNot(AsmToken::Comma)) { in parseDirectiveAlign()
3428 if (IsPow2 && (ValueSize == 1) && getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()
3515 FileNumber = getTok().getIntVal(); in parseDirectiveFile()
3552 if (check(getTok().isNot(AsmToken::Identifier), in parseDirectiveFile()
3566 check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
3648 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
3658 LineNumber = getTok().getIntVal(); in parseDirectiveLoc()
3666 ColumnPos = getTok().getIntVal(); in parseDirectiveLoc()
3679 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
3690 Loc = getTok().getLoc(); in parseDirectiveLoc()
3707 Loc = getTok().getLoc(); in parseDirectiveLoc()
3747 SMLoc FileNumberLoc = getTok().getLoc(); in parseDirectiveCVFile()
3756 check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
3761 if (check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
3809 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVFuncId()
3830 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVInlineSiteId()
3843 getTok().getIdentifier() != "within"), in parseDirectiveCVInlineSiteId()
3854 getTok().getIdentifier() != "inlined_at"), in parseDirectiveCVInlineSiteId()
3867 IACol = getTok().getIntVal(); in parseDirectiveCVInlineSiteId()
3889 SMLoc DirectiveLoc = getTok().getLoc(); in parseDirectiveCVLoc()
3897 LineNumber = getTok().getIntVal(); in parseDirectiveCVLoc()
3905 ColumnPos = getTok().getIntVal(); in parseDirectiveCVLoc()
3916 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLoc()
3922 Loc = getTok().getLoc(); in parseDirectiveCVLoc()
3953 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLinetable()
3975 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVInlineLinetable()
4594 AsmToken EndToken, StartToken = getTok(); in parseDirectiveMacro()
4610 if (getTok().getIdentifier() == ".endm" || in parseDirectiveMacro()
4611 getTok().getIdentifier() == ".endmacro") { in parseDirectiveMacro()
4613 EndToken = getTok(); in parseDirectiveMacro()
4623 } else if (getTok().getIdentifier() == ".macro") { in parseDirectiveMacro()
4838 SMLoc Loc = getTok().getLoc(); in parseDirectiveBundleLock()
4993 SMLoc Loc = getTok().getLoc(); in parseDirectiveSymbolAttribute()
5105 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude()
5107 if (check(getTok().isNot(AsmToken::String), in parseDirectiveInclude()
5110 check(getTok().isNot(AsmToken::EndOfStatement), in parseDirectiveInclude()
5126 SMLoc IncbinLoc = getTok().getLoc(); in parseDirectiveIncbin()
5127 if (check(getTok().isNot(AsmToken::String), in parseDirectiveIncbin()
5138 if (getTok().isNot(AsmToken::Comma)) { in parseDirectiveIncbin()
5143 CountLoc = getTok().getLoc(); in parseDirectiveIncbin()
5260 StringRef String1 = getTok().getStringContents(); in parseDirectiveIfeqs()
5278 StringRef String2 = getTok().getStringContents(); in parseDirectiveIfeqs()
5398 Message = getTok().getStringContents(); in parseDirectiveError()
5421 Message = getTok().getStringContents(); in parseDirectiveWarning()
5622 AsmToken EndToken, StartToken = getTok(); in parseMacroLikeBody()
5633 (getTok().getIdentifier() == ".rep" || in parseMacroLikeBody()
5634 getTok().getIdentifier() == ".rept" || in parseMacroLikeBody()
5635 getTok().getIdentifier() == ".irp" || in parseMacroLikeBody()
5636 getTok().getIdentifier() == ".irpc")) { in parseMacroLikeBody()
5641 if (Lexer.is(AsmToken::Identifier) && getTok().getIdentifier() == ".endr") { in parseMacroLikeBody()
5643 EndToken = getTok(); in parseMacroLikeBody()
5646 printError(getTok().getLoc(), in parseMacroLikeBody()
5678 DirectiveLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in instantiateMacroLikeBody()
5691 SMLoc CountLoc = getTok().getLoc(); in parseDirectiveRept()
5715 getTok().getLoc())) in parseDirectiveRept()
5746 if (expandMacro(OS, M->Body, Parameter, Arg, true, getTok().getLoc())) in parseDirectiveIrp()
5788 if (expandMacro(OS, M->Body, Parameter, Arg, true, getTok().getLoc())) in parseDirectiveIrpc()
5843 const AsmToken StrTok = getTok(); in parseDirectivePrint()
5945 SMLoc Loc = getTok().getLoc(); in parseDirectiveLTODiscard()
6253 AsmToken LabelTok = getTok(); in parseAsHLASMLabel()
6271 if (getTok().is(AsmToken::EndOfStatement)) in parseAsHLASMLabel()
6298 AsmToken OperationEntryTok = Lexer.getTok(); in parseAsMachineInstruction()
6327 if (getTok().isNot(AsmToken::Space)) in parseStatement()
6334 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
6335 getTok().getString().front() == '\n') in parseStatement()
6350 if (getTok().getString().front() == '\n' || in parseStatement()
6351 getTok().getString().front() == '\r') { in parseStatement()
6409 SMLoc EqualLoc = Parser.getTok().getLoc(); in parseAssignmentExpression()