Lines Matching refs:SMLoc
92 SMLoc InstantiationLoc;
98 SMLoc ExitLoc;
425 SMLoc Loc;
435 SmallVector<std::tuple<SMLoc, CppHashInfoTy, MCSymbol *>, 4> DirLabels;
497 void Note(SMLoc L, const Twine &Msg, SMRange Range = None) override;
498 bool Warning(SMLoc L, const Twine &Msg, SMRange Range = None) override;
499 bool printError(SMLoc L, const Twine &Msg, SMRange Range = None) override;
532 bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) override;
533 bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc,
535 bool parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) override;
537 SMLoc &EndLoc) override;
564 bool parseCppHashLineFilenameComment(SMLoc L);
569 const std::vector<std::string> &Locals, SMLoc L);
579 const MCAsmMacro *M, SMLoc NameLoc,
586 bool handleMacroInvocation(const MCAsmMacro *M, SMLoc NameLoc);
603 bool expandStatement(SMLoc Loc);
605 void printMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, in printMessage()
629 void jumpToLoc(SMLoc Loc, unsigned InBuffer = 0,
649 bool parseBinOpRHS(unsigned Precedence, const MCExpr *&Res, SMLoc &EndLoc);
650 bool parseParenExpr(const MCExpr *&Res, SMLoc &EndLoc);
651 bool parseBracketExpr(const MCExpr *&Res, SMLoc &EndLoc);
653 bool parseRegisterOrRegisterNumber(int64_t &Register, SMLoc DirectiveLoc);
831 const MCExpr *evaluateBuiltinValue(BuiltinSymbol Symbol, SMLoc StartLoc);
834 SMLoc StartLoc);
851 StringRef Name, SMLoc NameLoc);
864 SMLoc NameLoc);
911 StringRef Directive, SMLoc DirLoc);
913 StringRef Directive, SMLoc DirLoc,
918 DirectiveKind DirKind, SMLoc NameLoc);
927 bool parseDirectiveFile(SMLoc DirectiveLoc);
948 bool parseDirectiveCFIRegister(SMLoc DirectiveLoc);
954 bool parseDirectiveCFIDefCfa(SMLoc DirectiveLoc);
956 bool parseDirectiveCFIDefCfaRegister(SMLoc DirectiveLoc);
957 bool parseDirectiveCFIOffset(SMLoc DirectiveLoc);
958 bool parseDirectiveCFIRelOffset(SMLoc DirectiveLoc);
962 bool parseDirectiveCFISameValue(SMLoc DirectiveLoc);
963 bool parseDirectiveCFIRestore(SMLoc DirectiveLoc);
965 bool parseDirectiveCFIReturnColumn(SMLoc DirectiveLoc);
967 bool parseDirectiveCFIUndefined(SMLoc DirectiveLoc);
970 bool parseDirectivePurgeMacro(SMLoc DirectiveLoc);
971 bool parseDirectiveExitMacro(SMLoc DirectiveLoc, StringRef Directive,
974 bool parseDirectiveMacro(StringRef Name, SMLoc NameLoc);
977 StringRef Name, SMLoc NameLoc);
979 bool parseDirectiveEnds(StringRef Name, SMLoc NameLoc);
988 bool parseDirectiveComment(SMLoc DirectiveLoc); // "comment"
993 bool parseDirectiveIf(SMLoc DirectiveLoc, DirectiveKind DirKind);
995 bool parseDirectiveIfb(SMLoc DirectiveLoc, bool ExpectBlank);
998 bool parseDirectiveIfidn(SMLoc DirectiveLoc, bool ExpectEqual,
1001 bool parseDirectiveIfdef(SMLoc DirectiveLoc, bool expect_defined);
1003 bool parseDirectiveElseIf(SMLoc DirectiveLoc, DirectiveKind DirKind);
1005 bool parseDirectiveElseIfb(SMLoc DirectiveLoc, bool ExpectBlank);
1007 bool parseDirectiveElseIfdef(SMLoc DirectiveLoc, bool expect_defined);
1010 bool parseDirectiveElseIfidn(SMLoc DirectiveLoc, bool ExpectEqual,
1012 bool parseDirectiveElse(SMLoc DirectiveLoc); // "else"
1013 bool parseDirectiveEndIf(SMLoc DirectiveLoc); // "endif"
1018 MCAsmMacro *parseMacroLikeBody(SMLoc DirectiveLoc);
1019 void instantiateMacroLikeBody(MCAsmMacro *M, SMLoc DirectiveLoc,
1021 void instantiateMacroLikeBody(MCAsmMacro *M, SMLoc DirectiveLoc,
1022 SMLoc ExitLoc, raw_svector_ostream &OS);
1023 bool parseDirectiveRepeat(SMLoc DirectiveLoc, StringRef Directive);
1024 bool parseDirectiveFor(SMLoc DirectiveLoc, StringRef Directive);
1025 bool parseDirectiveForc(SMLoc DirectiveLoc, StringRef Directive);
1026 bool parseDirectiveWhile(SMLoc DirectiveLoc);
1029 bool parseDirectiveMSEmit(SMLoc DirectiveLoc, ParseStatementInfo &Info,
1033 bool parseDirectiveMSAlign(SMLoc DirectiveLoc, ParseStatementInfo &Info);
1036 bool parseDirectiveEnd(SMLoc DirectiveLoc);
1039 bool parseDirectiveError(SMLoc DirectiveLoc);
1041 bool parseDirectiveErrorIfb(SMLoc DirectiveLoc, bool ExpectBlank);
1043 bool parseDirectiveErrorIfdef(SMLoc DirectiveLoc, bool ExpectDefined);
1046 bool parseDirectiveErrorIfidn(SMLoc DirectiveLoc, bool ExpectEqual,
1049 bool parseDirectiveErrorIfe(SMLoc DirectiveLoc, bool ExpectZero);
1052 bool parseDirectiveRadix(SMLoc DirectiveLoc);
1055 bool parseDirectiveEcho(SMLoc DirectiveLoc);
1122 void MasmParser::Note(SMLoc L, const Twine &Msg, SMRange Range) { in Note()
1128 bool MasmParser::Warning(SMLoc L, const Twine &Msg, SMRange Range) { in Warning()
1138 bool MasmParser::printError(SMLoc L, const Twine &Msg, SMRange Range) { in printError()
1158 void MasmParser::jumpToLoc(SMLoc Loc, unsigned InBuffer, in jumpToLoc()
1172 const SMLoc MacroLoc = Tok.getLoc(); in expandMacros()
1259 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in Lex()
1260 if (ParentIncludeLoc != SMLoc()) { in Lex()
1281 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in peekTok()
1282 if (ParentIncludeLoc != SMLoc()) { in peekTok()
1351 SrcMgr.getParentIncludeLoc(CurBuffer) != SMLoc()) { in Run()
1420 for (std::tuple<SMLoc, CppHashInfoTy, MCSymbol *> &LocSym : DirLabels) { in Run()
1451 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in eatToEndOfStatement()
1452 if (ParentIncludeLoc == SMLoc()) { in eatToEndOfStatement()
1474 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in parseStringRefsTo()
1475 if (ParentIncludeLoc == SMLoc()) { in parseStringRefsTo()
1516 bool MasmParser::parseParenExpr(const MCExpr *&Res, SMLoc &EndLoc) { in parseParenExpr()
1531 bool MasmParser::parseBracketExpr(const MCExpr *&Res, SMLoc &EndLoc) { in parseBracketExpr()
1548 bool MasmParser::parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc, in parsePrimaryExpr()
1550 SMLoc FirstTokenLoc = getLexer().getLoc(); in parsePrimaryExpr()
1598 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr()
1619 EndLoc = SMLoc::getFromPointer(Identifier.end()); in parsePrimaryExpr()
1636 return Error(SMLoc::getFromPointer(Split.second.begin()), in parsePrimaryExpr()
1721 SMLoc Loc = getTok().getLoc(); in parsePrimaryExpr()
1753 SMLoc ValueLoc = getTok().getLoc(); in parsePrimaryExpr()
1850 SMLoc EndLoc; in parseExpression()
1860 static bool isAngleBracketString(SMLoc &StrLoc, SMLoc &EndLoc) { in isAngleBracketString()
1898 bool MasmParser::parseExpression(const MCExpr *&Res, SMLoc &EndLoc) { in parseExpression()
1914 bool MasmParser::parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) { in parseParenExpression()
1920 SMLoc &EndLoc) { in parseParenExprOfDepth()
1943 SMLoc StartLoc = Lexer.getLoc(); in parseAbsoluteExpression()
2042 SMLoc &EndLoc) { in parseBinOpRHS()
2043 SMLoc StartLoc = Lexer.getLoc(); in parseBinOpRHS()
2109 SMLoc ExpansionLoc = getTok().getLoc(); in parseStatement()
2117 SMLoc IDLoc = ID.getLoc(); in parseStatement()
2352 SMLoc StartTokLoc = getTok().getLoc(); in parseStatement()
2562 const SMLoc nextLoc = nextTok.getLoc(); in parseStatement()
2783 SMLoc StartLoc = Lexer.getLoc(); in parseCurlyBlockScope()
2796 bool MasmParser::parseCppHashLineFilenameComment(SMLoc L) { in parseCppHashLineFilenameComment()
2830 SMLoc DiagLoc = Diag.getLoc(); in DiagHandler()
2840 SMLoc ParentIncludeLoc = DiagSrcMgr.getParentIncludeLoc(DiagCurBuffer); in DiagHandler()
2886 const std::vector<std::string> &Locals, SMLoc L) { in expandMacro()
3064 SMLoc StrLoc = Lexer.getLoc(), EndLoc; in parseMacroArgument()
3151 SmallVector<SMLoc, 4> FALocs; in parseMacroArguments()
3161 SMLoc IDLoc = Lexer.getLoc(); in parseMacroArguments()
3197 SMLoc StrLoc = Lexer.getLoc(); in parseMacroArguments()
3198 SMLoc EndLoc; in parseMacroArguments()
3261 bool MasmParser::handleMacroEntry(const MCAsmMacro *M, SMLoc NameLoc, in handleMacroEntry()
3304 CurBuffer = SrcMgr.AddNewSourceBuffer(std::move(Instantiation), SMLoc()); in handleMacroEntry()
3324 bool MasmParser::handleMacroInvocation(const MCAsmMacro *M, SMLoc NameLoc) { in handleMacroInvocation()
3392 SMLoc PrefixLoc = getLexer().getLoc(); in parseIdentifier()
3440 DirectiveKind DirKind, SMLoc NameLoc) { in parseDirectiveEquate()
3450 SMLoc StartLoc = Lexer.getLoc(); in parseDirectiveEquate()
3494 SMLoc EndLoc; in parseDirectiveEquate()
3590 SMLoc EndLoc, StartLoc = getTok().getLoc(); in parseAngleBracketString()
3624 SMLoc StartLoc = getTok().getLoc(); in parseTextItem()
3826 StringRef Name, SMLoc NameLoc) { in parseDirectiveNamedValue()
3852 SMLoc ExprLoc = Asm.getTok().getLoc(); in parseHexOcta()
3871 SMLoc SignLoc; in parseRealValue()
4037 SMLoc NameLoc) { in parseDirectiveNamedRealValue()
4090 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4142 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4181 SMLoc Loc = getTok().getLoc(); in parseFieldInitializer()
4269 SMLoc CommaLoc = getTok().getLoc(); in parseStructInitializer()
4528 StringRef Directive, SMLoc DirLoc) { in parseDirectiveStructValue()
4543 SMLoc DirLoc, StringRef Name) { in parseDirectiveNamedStructValue()
4572 SMLoc NameLoc) { in parseDirectiveStruct()
4589 SMLoc QualifierLoc; in parseDirectiveStruct()
4633 bool MasmParser::parseDirectiveEnds(StringRef Name, SMLoc NameLoc) { in parseDirectiveEnds()
4731 SMLoc OffsetLoc = Lexer.getLoc(); in parseDirectiveOrg()
4794 SMLoc AlignmentLoc = getLexer().getLoc(); in parseDirectiveAlign()
4836 bool MasmParser::parseDirectiveFile(SMLoc DirectiveLoc) { in parseDirectiveFile()
4978 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
5009 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
5077 SMLoc FileNumberLoc = getTok().getLoc(); in parseDirectiveCVFile()
5116 SMLoc Loc; in parseCVFunctionId()
5125 SMLoc Loc; in parseCVFileId()
5140 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVFuncId()
5163 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVInlineSiteId()
5223 SMLoc DirectiveLoc = getTok().getLoc(); in parseDirectiveCVLoc()
5250 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLoc()
5287 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLinetable()
5311 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVInlineLinetable()
5352 SMLoc Loc; in parseDirectiveCVDefRange()
5501 SMLoc DirLoc = getLexer().getLoc(); in parseDirectiveCVFPOData()
5572 SMLoc DirectiveLoc) { in parseRegisterOrRegisterNumber()
5587 bool MasmParser::parseDirectiveCFIDefCfa(SMLoc DirectiveLoc) { in parseDirectiveCFIDefCfa()
5611 bool MasmParser::parseDirectiveCFIRegister(SMLoc DirectiveLoc) { in parseDirectiveCFIRegister()
5642 bool MasmParser::parseDirectiveCFIDefCfaRegister(SMLoc DirectiveLoc) { in parseDirectiveCFIDefCfaRegister()
5653 bool MasmParser::parseDirectiveCFIOffset(SMLoc DirectiveLoc) { in parseDirectiveCFIOffset()
5668 bool MasmParser::parseDirectiveCFIRelOffset(SMLoc DirectiveLoc) { in parseDirectiveCFIRelOffset()
5744 bool MasmParser::parseDirectiveCFISameValue(SMLoc DirectiveLoc) { in parseDirectiveCFISameValue()
5756 bool MasmParser::parseDirectiveCFIRestore(SMLoc DirectiveLoc) { in parseDirectiveCFIRestore()
5790 bool MasmParser::parseDirectiveCFIReturnColumn(SMLoc DirectiveLoc) { in parseDirectiveCFIReturnColumn()
5811 bool MasmParser::parseDirectiveCFIUndefined(SMLoc DirectiveLoc) { in parseDirectiveCFIUndefined()
5827 bool MasmParser::parseDirectiveMacro(StringRef Name, SMLoc NameLoc) { in parseDirectiveMacro()
5850 SMLoc ParamLoc; in parseDirectiveMacro()
5856 SMLoc QualLoc; in parseDirectiveMacro()
5966 bool MasmParser::parseDirectiveExitMacro(SMLoc DirectiveLoc, in parseDirectiveExitMacro()
5969 SMLoc EndLoc = getTok().getLoc(); in parseDirectiveExitMacro()
6010 bool MasmParser::parseDirectivePurgeMacro(SMLoc DirectiveLoc) { in parseDirectivePurgeMacro()
6013 SMLoc NameLoc; in parseDirectivePurgeMacro()
6038 SMLoc Loc = getTok().getLoc(); in parseDirectiveSymbolAttribute()
6063 SMLoc IDLoc = getLexer().getLoc(); in parseDirectiveComm()
6076 SMLoc SizeLoc = getLexer().getLoc(); in parseDirectiveComm()
6081 SMLoc Pow2AlignmentLoc; in parseDirectiveComm()
6136 bool MasmParser::parseDirectiveComment(SMLoc DirectiveLoc) { in parseDirectiveComment()
6158 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude()
6176 bool MasmParser::parseDirectiveIf(SMLoc DirectiveLoc, DirectiveKind DirKind) { in parseDirectiveIf()
6207 bool MasmParser::parseDirectiveIfb(SMLoc DirectiveLoc, bool ExpectBlank) { in parseDirectiveIfb()
6231 bool MasmParser::parseDirectiveIfidn(SMLoc DirectiveLoc, bool ExpectEqual, in parseDirectiveIfidn()
6270 bool MasmParser::parseDirectiveIfdef(SMLoc DirectiveLoc, bool expect_defined) { in parseDirectiveIfdef()
6279 SMLoc StartLoc, EndLoc; in parseDirectiveIfdef()
6307 bool MasmParser::parseDirectiveElseIf(SMLoc DirectiveLoc, in parseDirectiveElseIf()
6349 bool MasmParser::parseDirectiveElseIfb(SMLoc DirectiveLoc, bool ExpectBlank) { in parseDirectiveElseIfb()
6384 bool MasmParser::parseDirectiveElseIfdef(SMLoc DirectiveLoc, in parseDirectiveElseIfdef()
6401 SMLoc StartLoc, EndLoc; in parseDirectiveElseIfdef()
6431 bool MasmParser::parseDirectiveElseIfidn(SMLoc DirectiveLoc, bool ExpectEqual, in parseDirectiveElseIfidn()
6484 bool MasmParser::parseDirectiveElse(SMLoc DirectiveLoc) { in parseDirectiveElse()
6507 bool MasmParser::parseDirectiveEnd(SMLoc DirectiveLoc) { in parseDirectiveEnd()
6520 bool MasmParser::parseDirectiveError(SMLoc DirectiveLoc) { in parseDirectiveError()
6538 bool MasmParser::parseDirectiveErrorIfb(SMLoc DirectiveLoc, bool ExpectBlank) { in parseDirectiveErrorIfb()
6565 bool MasmParser::parseDirectiveErrorIfdef(SMLoc DirectiveLoc, in parseDirectiveErrorIfdef()
6576 SMLoc StartLoc, EndLoc; in parseDirectiveErrorIfdef()
6609 bool MasmParser::parseDirectiveErrorIfidn(SMLoc DirectiveLoc, bool ExpectEqual, in parseDirectiveErrorIfidn()
6669 bool MasmParser::parseDirectiveErrorIfe(SMLoc DirectiveLoc, bool ExpectZero) { in parseDirectiveErrorIfe()
6696 bool MasmParser::parseDirectiveEndIf(SMLoc DirectiveLoc) { in parseDirectiveEndIf()
6853 MCAsmMacro *MasmParser::parseMacroLikeBody(SMLoc DirectiveLoc) { in parseMacroLikeBody()
6895 bool MasmParser::expandStatement(SMLoc Loc) { in expandStatement()
6897 SMLoc EndLoc = getTok().getLoc(); in expandStatement()
6952 void MasmParser::instantiateMacroLikeBody(MCAsmMacro *M, SMLoc DirectiveLoc, in instantiateMacroLikeBody()
6956 void MasmParser::instantiateMacroLikeBody(MCAsmMacro *M, SMLoc DirectiveLoc, in instantiateMacroLikeBody()
6957 SMLoc ExitLoc, in instantiateMacroLikeBody()
6971 CurBuffer = SrcMgr.AddNewSourceBuffer(std::move(Instantiation), SMLoc()); in instantiateMacroLikeBody()
6981 bool MasmParser::parseDirectiveRepeat(SMLoc DirectiveLoc, StringRef Dir) { in parseDirectiveRepeat()
6983 SMLoc CountLoc = getTok().getLoc(); in parseDirectiveRepeat()
7019 bool MasmParser::parseDirectiveWhile(SMLoc DirectiveLoc) { in parseDirectiveWhile()
7021 SMLoc CondLoc = getTok().getLoc(); in parseDirectiveWhile()
7052 bool MasmParser::parseDirectiveFor(SMLoc DirectiveLoc, StringRef Dir) { in parseDirectiveFor()
7063 SMLoc ParamLoc; in parseDirectiveFor()
7069 SMLoc QualLoc; in parseDirectiveFor()
7136 bool MasmParser::parseDirectiveForc(SMLoc DirectiveLoc, StringRef Directive) { in parseDirectiveForc()
7186 bool MasmParser::parseDirectiveMSEmit(SMLoc IDLoc, ParseStatementInfo &Info, in parseDirectiveMSEmit()
7189 SMLoc ExprLoc = getLexer().getLoc(); in parseDirectiveMSEmit()
7203 bool MasmParser::parseDirectiveMSAlign(SMLoc IDLoc, ParseStatementInfo &Info) { in parseDirectiveMSAlign()
7205 SMLoc ExprLoc = getLexer().getLoc(); in parseDirectiveMSAlign()
7219 bool MasmParser::parseDirectiveRadix(SMLoc DirectiveLoc) { in parseDirectiveRadix()
7220 const SMLoc Loc = getLexer().getLoc(); in parseDirectiveRadix()
7238 bool MasmParser::parseDirectiveEcho(SMLoc DirectiveLoc) { in parseDirectiveEcho()
7274 return Error(SMLoc(), "invalid variable redefinition"); in defineMacro()
7276 Warning(SMLoc(), "redefining '" + Name + in defineMacro()
7466 SMLoc Start = SMLoc::getFromPointer(SymName.data()); in parseMSInlineAsm()
7568 SMLoc OffsetLoc = SMLoc::getFromPointer(AR.IntelExp.OffsetName.data()); in parseMSInlineAsm()
7685 SMLoc StartLoc) { in evaluateBuiltinValue()
7706 MasmParser::evaluateBuiltinTextMacro(BuiltinSymbol Symbol, SMLoc StartLoc) { in evaluateBuiltinTextMacro()