Home
last modified time | relevance | path

Searched refs:SMLoc (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DDarwinAsmParser.cpp54 SMLoc LastVersionDirective;
198 LastVersionDirective = SMLoc(); in Initialize()
666 SMLoc Loc = getLexer().getLoc(); in parseDirectiveSection()
711 SMLoc BLoc = SMLoc::getFromPointer(SectionVal.data() + B); in parseDirectiveSection()
712 SMLoc ELoc = SMLoc::getFromPointer(SectionVal.data() + E); in parseDirectiveSection()
829 SMLoc IDLoc = getLexer().getLoc(); in parseDirectiveTBSS()
842 SMLoc SizeLoc = getLexer().getLoc(); in parseDirectiveTBSS()
847 SMLoc Pow2AlignmentLoc; in parseDirectiveTBSS()
914 SMLoc IDLoc = getLexer().getLoc(); in parseDirectiveZerofill()
927 SMLoc SizeLoc = getLexer().getLoc(); in parseDirectiveZerofill()
[all …]
H A DCOFFAsmParser.cpp116 bool ParseDirectiveSection(StringRef, SMLoc);
117 bool ParseDirectiveDef(StringRef, SMLoc);
118 bool ParseDirectiveScl(StringRef, SMLoc);
119 bool ParseDirectiveType(StringRef, SMLoc);
120 bool ParseDirectiveEndef(StringRef, SMLoc);
122 bool ParseDirectiveSecIdx(StringRef, SMLoc);
124 bool ParseDirectiveSymIdx(StringRef, SMLoc);
127 bool ParseDirectiveRVA(StringRef, SMLoc);
463 SMLoc OffsetLoc; in ParseDirectiveSecRel32()
493 SMLoc OffsetLoc; in ParseDirectiveRVA()
[all …]
H A DCOFFMasmParser.cpp43 bool ParseDirectiveProc(StringRef, SMLoc);
44 bool ParseDirectiveEndProc(StringRef, SMLoc);
45 bool ParseDirectiveSegment(StringRef, SMLoc);
46 bool ParseDirectiveSegmentEnd(StringRef, SMLoc);
47 bool ParseDirectiveIncludelib(StringRef, SMLoc);
49 bool ParseDirectiveAlias(StringRef, SMLoc);
52 bool ParseSEHDirectiveEndProlog(StringRef, SMLoc);
54 bool IgnoreDirective(StringRef, SMLoc) { in IgnoreDirective() argument
317 SMLoc nextLoc = getTok().getLoc(); in ParseDirectiveProc()
349 SMLoc LabelLoc = getTok().getLoc(); in ParseDirectiveEndProc()
[all …]
H A DELFAsmParser.cpp140 bool ParseDirectiveSection(StringRef, SMLoc);
141 bool ParseDirectiveSize(StringRef, SMLoc);
143 bool ParseDirectiveType(StringRef, SMLoc);
144 bool ParseDirectiveIdent(StringRef, SMLoc);
145 bool ParseDirectiveSymver(StringRef, SMLoc);
146 bool ParseDirectiveVersion(StringRef, SMLoc);
147 bool ParseDirectiveWeakref(StringRef, SMLoc);
246 SMLoc FirstLoc = getLexer().getLoc(); in ParseSectionName()
256 SMLoc PrevLoc = getLexer().getLoc(); in ParseSectionName()
466 SMLoc StartLoc = L.getLoc(); in parseLinkedToSym()
[all …]
H A DAsmParser.cpp95 SMLoc ExitLoc;
129 SMLoc StartTokLoc;
159 SMLoc Loc;
1392 SMLoc EndLoc; in parseExpression()
1461 static bool isAngleBracketString(SMLoc &StrLoc, SMLoc &EndLoc) { in isAngleBracketString()
2795 SMLoc EndLoc; in parseMacroArguments()
3776 SMLoc Loc; in parseCVFunctionId()
3785 SMLoc Loc; in parseCVFileId()
4007 SMLoc Loc; in parseDirectiveCVDefRange()
4782 SMLoc Loc; in parseDirectivePurgeMacro()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp48 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
114 SMLoc Start, End;
119 MSP430Operand(KindTy Kind, unsigned Reg, SMLoc const &S, SMLoc const &E) in MSP430Operand()
121 MSP430Operand(MCExpr const *Imm, SMLoc const &S, SMLoc const &E) in MSP430Operand()
124 SMLoc const &E) in MSP430Operand()
212 SMLoc S, SMLoc E) { in CreateMem()
272 SMLoc ErrorLoc = Loc; in MatchAndEmitInstruction()
278 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
361 Operands.push_back(MSP430Operand::CreateImm(CCode, SMLoc(), SMLoc())); in parseJccInstruction()
459 SMLoc StartLoc, EndLoc; in ParseOperand()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/MCTargetDesc/
H A DX86WinCOFFTargetStreamer.cpp35 SMLoc L) override;
36 bool emitFPOEndPrologue(SMLoc L) override;
37 bool emitFPOEndProc(SMLoc L) override;
39 bool emitFPOPushReg(unsigned Reg, SMLoc L) override;
42 bool emitFPOSetFrame(unsigned Reg, SMLoc L) override;
79 bool checkInFPOPrologue(SMLoc L);
89 SMLoc L) override;
90 bool emitFPOEndPrologue(SMLoc L) override;
91 bool emitFPOEndProc(SMLoc L) override;
93 bool emitFPOPushReg(unsigned Reg, SMLoc L) override;
[all …]
H A DX86TargetStreamer.h22 SMLoc L = {}) = 0;
23 virtual bool emitFPOEndPrologue(SMLoc L = {}) = 0;
24 virtual bool emitFPOEndProc(SMLoc L = {}) = 0;
25 virtual bool emitFPOData(const MCSymbol *ProcSym, SMLoc L = {}) = 0;
26 virtual bool emitFPOPushReg(unsigned Reg, SMLoc L = {}) = 0;
27 virtual bool emitFPOStackAlloc(unsigned StackAlloc, SMLoc L = {}) = 0;
28 virtual bool emitFPOStackAlign(unsigned Align, SMLoc L = {}) = 0;
29 virtual bool emitFPOSetFrame(unsigned Reg, SMLoc L = {}) = 0;
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCStreamer.h683 SMLoc Loc = SMLoc()) = 0;
720 SMLoc Loc = SMLoc());
819 SMLoc Loc = SMLoc());
830 SMLoc Loc = SMLoc());
1046 virtual void emitWinCFIEndProc(SMLoc Loc = SMLoc());
1056 SMLoc Loc = SMLoc());
1059 SMLoc Loc = SMLoc());
1061 SMLoc Loc = SMLoc());
1063 virtual void emitWinCFIEndProlog(SMLoc Loc = SMLoc());
1065 SMLoc Loc = SMLoc());
[all …]
H A DMCExpr.h54 SMLoc Loc;
82 SMLoc getLoc() const { return Loc; } in getLoc()
380 const MCAsmInfo *MAI, SMLoc Loc = SMLoc());
391 MCContext &Ctx, SMLoc Loc = SMLoc());
445 MCContext &Ctx, SMLoc Loc = SMLoc());
447 static const MCUnaryExpr *createLNot(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) {
451 static const MCUnaryExpr *createMinus(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) {
455 static const MCUnaryExpr *createNot(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) {
459 static const MCUnaryExpr *createPlus(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) {
514 SMLoc Loc = SMLoc())
[all …]
/llvm-project-15.0.7/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp42 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
98 SMLoc StartLoc, EndLoc;
291 SMLoc ErrorLoc; in MatchAndEmitInstruction()
316 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
352 SMLoc S = getLoc(); in parseOperandAsOperator()
417 SMLoc S = getLoc(); in parseRegister()
418 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseRegister()
450 SMLoc S = getLoc(); in parseImmediate()
455 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseImmediate()
469 SMLoc E = SMLoc::getFromPointer(NameLoc.getPointer() - 1); in ParseInstruction()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp58 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
115 AVROperand(unsigned Reg, SMLoc const &S, SMLoc const &E) in AVROperand()
117 AVROperand(MCExpr const *Imm, SMLoc const &S, SMLoc const &E) in AVROperand()
119 AVROperand(unsigned Reg, MCExpr const *Imm, SMLoc const &S, SMLoc const &E) in AVROperand()
131 SMLoc Start, End;
223 CreateMemri(unsigned RegNum, const MCExpr *Val, SMLoc S, SMLoc E) { in CreateMemri()
287 SMLoc ErrorLoc = Loc; in invalidOperand()
421 SMLoc S = Parser.getTok().getLoc(); in tryParseExpression()
439 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in tryParseExpression()
521 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in tryParseRelocExpression()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DSMLoc.h23 class SMLoc {
27 SMLoc() = default;
31 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; }
32 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; }
36 static SMLoc getFromPointer(const char *Ptr) { in getFromPointer()
37 SMLoc L; in getFromPointer()
50 SMLoc Start, End;
54 SMRange(SMLoc St, SMLoc En) : Start(St), End(En) { in SMRange()
H A DSourceMgr.h75 SMLoc IncludeLoc;
137 SMLoc getParentIncludeLoc(unsigned i) const { in getParentIncludeLoc()
145 SMLoc IncludeLoc) { in AddNewSourceBuffer()
158 SMLoc MainBufferIncludeLoc = SMLoc()) {
192 unsigned FindBufferContainingLoc(SMLoc Loc) const;
202 std::pair<unsigned, unsigned> getLineAndColumn(SMLoc Loc,
207 std::string getFormattedLocationNoOffset(SMLoc Loc,
225 void PrintMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
264 SMFixIt(SMLoc Loc, const Twine &Replacement) in SMFixIt()
283 SMLoc Loc;
[all …]
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.h40 bool typeError(SMLoc ErrorLoc, const Twine &Msg);
41 bool popType(SMLoc ErrorLoc, Optional<wasm::ValType> EVT);
42 bool popRefType(SMLoc ErrorLoc);
43 bool getLocal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
44 bool checkEnd(SMLoc ErrorLoc, bool PopVals = false);
45 bool checkSig(SMLoc ErrorLoc, const wasm::WasmSignature &Sig);
46 bool getSymRef(SMLoc ErrorLoc, const MCInst &Inst,
48 bool getGlobal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
49 bool getTable(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
57 bool endOfFunction(SMLoc ErrorLoc);
[all …]
/llvm-project-15.0.7/llvm/lib/Target/LoongArch/AsmParser/
H A DLoongArchAsmParser.cpp32 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
107 SMLoc StartLoc, EndLoc;
308 SMLoc S = getLoc(); in parseRegister()
309 SMLoc E = SMLoc::getFromPointer(S.getPointer() + Name.size()); in parseRegister()
318 SMLoc S = getLoc(); in parseImmediate()
319 SMLoc E; in parseImmediate()
365 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
471 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction()
477 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
488 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction()
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Darm-cc.cpp3 class SMLoc { class
6 SMLoc();
7 SMLoc(const SMLoc &RHS);
9 SMLoc foo(void *p);
13 void zed(SMLoc x);
15 SMLoc a; in baz()
/llvm-project-15.0.7/llvm/lib/Target/M68k/AsmParser/
H A DM68kAsmParser.cpp70 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
133 SMLoc Start, End;
144 M68kOperand(KindTy Kind, SMLoc Start, SMLoc End) in M68kOperand()
317 SMLoc Start, SMLoc End) { in createMemOp()
331 SMLoc Start, SMLoc End) { in createToken()
347 SMLoc Start, SMLoc End) { in createImm()
695 SMLoc Start = getLexer().getLoc(); in parseImm()
698 SMLoc End; in parseImm()
710 SMLoc Start = getLexer().getLoc(); in parseMemOp()
809 SMLoc End = getLexer().getLoc(); in parseMemOp()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-mca/
H A DCodeRegion.h58 llvm::SMLoc RangeStart;
59 llvm::SMLoc RangeEnd;
65 CodeRegion(llvm::StringRef Desc, llvm::SMLoc Start) in CodeRegion()
72 llvm::SMLoc startLoc() const { return RangeStart; } in startLoc()
73 llvm::SMLoc endLoc() const { return RangeEnd; } in endLoc()
75 void setEndLocation(llvm::SMLoc End) { RangeEnd = End; } in setEndLocation()
77 bool isLocInRange(llvm::SMLoc Loc) const;
109 void beginRegion(llvm::StringRef Description, llvm::SMLoc Loc);
110 void endRegion(llvm::StringRef Description, llvm::SMLoc Loc);
/llvm-project-15.0.7/llvm/unittests/TableGen/
H A DCodeExpanderTest.cpp22 SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc()); in bufferize()
75 CodeExpander("No expansions", Expansions, SMLoc(), false).emit(OS); in TEST()
100 CodeExpander("\\\\\\a\\$", Expansions, SMLoc(), false).emit(OS); in TEST()
112 CodeExpander(" $foo", Expansions, SMLoc::getFromPointer(In.data()), false) in TEST()
116 SrcMgr, SMLoc::getFromPointer(In.data()), "TestBuffer", 1, 0, in TEST()
127 CodeExpander("\\$foo", Expansions, SMLoc(), false).emit(OS); in TEST()
138 CodeExpander("\\${foo", Expansions, SMLoc(), false).emit(OS); in TEST()
149 CodeExpander("\\${foo}", Expansions, SMLoc(), false).emit(OS); in TEST()
161 CodeExpander("${foo}${bar}", Expansions, SMLoc(), false).emit(OS); in TEST()
177 CodeExpander(In, Expansions, SMLoc::getFromPointer(In.data()), false) in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsTargetStreamer.h122 void emitR(unsigned Opcode, unsigned Reg0, SMLoc IDLoc,
124 void emitII(unsigned Opcode, int16_t Imm1, int16_t Imm2, SMLoc IDLoc,
128 void emitRI(unsigned Opcode, unsigned Reg0, int32_t Imm, SMLoc IDLoc,
133 SMLoc IDLoc, const MCSubtargetInfo *STI);
135 SMLoc IDLoc, const MCSubtargetInfo *STI);
137 MCOperand Op3, SMLoc IDLoc, const MCSubtargetInfo *STI);
139 SMLoc IDLoc, const MCSubtargetInfo *STI);
141 int16_t Imm1, int16_t Imm2, SMLoc IDLoc,
146 SMLoc IDLoc, const MCSubtargetInfo *STI);
147 void emitEmptyDelaySlot(bool hasShortDelaySlot, SMLoc IDLoc,
[all …]
/llvm-project-15.0.7/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp73 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
1027 SMLoc S = getLoc(); in parseRegister()
1028 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseRegister()
1119 SMLoc S = getLoc(); in parseImmediate()
1125 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseImmediate()
1171 SMLoc S = getLoc(); in parseCSKYSymbol()
1172 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseCSKYSymbol()
1252 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseDataSymbol()
1354 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseConstpoolSymbol()
1446 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parsePSRFlag()
[all …]
/llvm-project-15.0.7/llvm/lib/TableGen/
H A DError.cpp27 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, in PrintMessage()
34 SMLoc NullLoc; in PrintMessage()
49 void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg) { in PrintNote()
62 void PrintFatalNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg) { in PrintFatalNote()
91 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { in PrintWarning()
96 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning()
103 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError()
108 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); in PrintError()
132 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError()
159 void CheckAssert(SMLoc Loc, Init *Condition, Init *Message) { in CheckAssert()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp92 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
1370 SMLoc E = SMLoc::getFromPointer(S.getPointer() + Name.size()); in parseRegister()
1386 SMLoc E; in parseInsnDirectiveOpcode()
1521 SMLoc E; in parseImmediate()
1550 SMLoc E; in parseOperandWithModifier()
1600 SMLoc E = SMLoc::getFromPointer(S.getPointer() + Identifier.size()); in parseBareSymbol()
1657 SMLoc E = SMLoc::getFromPointer(S.getPointer() + Identifier.size()); in parseCallSymbol()
1673 SMLoc E; in parsePseudoJumpSymbol()
1804 SMLoc E = SMLoc::getFromPointer(S.getPointer() + Name.size()); in parseMaskReg()
1824 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseGPRAsFPR()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/MC/MCParser/
H A DMCAsmParser.h117 SMLoc Location, bool Create) = 0;
126 using DirectiveHandler = bool (*)(MCAsmParserExtension*, StringRef, SMLoc);
131 SMLoc Loc;
213 virtual void Note(SMLoc L, const Twine &Msg, SMRange Range = None) = 0;
225 bool Error(SMLoc L, const Twine &Msg, SMRange Range = None);
258 bool parseTokenLoc(SMLoc &Loc);
274 bool check(bool P, SMLoc Loc, const Twine &Msg);
301 virtual bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0;
309 virtual bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc,
341 SMLoc &EndLoc) = 0;
[all …]

12345678910>>...12