Home
last modified time | relevance | path

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

123456789

/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DDarwinAsmParser.cpp43 template<bool (DarwinAsmParser::*HandlerMethod)(StringRef, SMLoc)>
54 SMLoc LastVersionDirective;
198 LastVersionDirective = SMLoc(); in Initialize()
201 bool parseDirectiveAltEntry(StringRef, SMLoc);
202 bool parseDirectiveDesc(StringRef, SMLoc);
203 bool parseDirectiveIndirectSymbol(StringRef, SMLoc);
204 bool parseDirectiveDumpOrLoad(StringRef, SMLoc);
205 bool parseDirectiveLsym(StringRef, SMLoc);
206 bool parseDirectiveLinkerOption(StringRef, SMLoc);
207 bool parseDirectiveSection(StringRef, SMLoc);
[all …]
H A DCOFFAsmParser.cpp31 template<bool (COFFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
105 bool parseSectionDirectiveText(StringRef, SMLoc) { in parseSectionDirectiveText() argument
111 bool parseSectionDirectiveData(StringRef, SMLoc) { in parseSectionDirectiveData() argument
117 bool parseSectionDirectiveBSS(StringRef, SMLoc) { in parseSectionDirectiveBSS() argument
123 bool parseDirectiveSection(StringRef, SMLoc);
124 bool parseSectionArguments(StringRef, SMLoc);
125 bool parseDirectivePushSection(StringRef, SMLoc);
126 bool parseDirectivePopSection(StringRef, SMLoc);
127 bool parseDirectiveDef(StringRef, SMLoc);
128 bool parseDirectiveScl(StringRef, SMLoc);
[all …]
H A DCOFFMasmParser.cpp31 template <bool (COFFMasmParser::*HandlerMethod)(StringRef, SMLoc)>
44 bool parseDirectiveProc(StringRef, SMLoc);
45 bool parseDirectiveEndProc(StringRef, SMLoc);
46 bool parseDirectiveSegment(StringRef, SMLoc);
47 bool parseDirectiveSegmentEnd(StringRef, SMLoc);
48 bool parseDirectiveIncludelib(StringRef, SMLoc);
49 bool parseDirectiveOption(StringRef, SMLoc);
51 bool parseDirectiveAlias(StringRef, SMLoc);
53 bool parseSEHDirectiveAllocStack(StringRef, SMLoc);
54 bool parseSEHDirectiveEndProlog(StringRef, SMLoc);
[all …]
H A DELFAsmParser.cpp36 template<bool (ELFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
85 bool parseSectionDirectiveData(StringRef, SMLoc) { in parseSectionDirectiveData() argument
90 bool parseSectionDirectiveText(StringRef, SMLoc) { in parseSectionDirectiveText() argument
95 bool parseSectionDirectiveBSS(StringRef, SMLoc) { in parseSectionDirectiveBSS() argument
100 bool parseSectionDirectiveRoData(StringRef, SMLoc) { in parseSectionDirectiveRoData() argument
105 bool parseSectionDirectiveTData(StringRef, SMLoc) { in parseSectionDirectiveTData() argument
111 bool parseSectionDirectiveTBSS(StringRef, SMLoc) { in parseSectionDirectiveTBSS() argument
117 bool parseDirectivePushSection(StringRef, SMLoc);
118 bool parseDirectivePopSection(StringRef, SMLoc);
119 bool parseDirectiveSection(StringRef, SMLoc);
[all …]
H A DAsmParser.cpp87 SMLoc InstantiationLoc;
93 SMLoc ExitLoc;
122 SMLoc StartTokLoc;
123 std::optional<SMLoc> CFIStartProcLoc;
153 SMLoc Loc;
163 SmallVector<std::tuple<SMLoc, CppHashInfoTy, MCSymbol *>, 4> DirLabels;
191 SMLoc IDLoc);
231 void Note(SMLoc L, const Twine &Msg, SMRange Range = std::nullopt) override;
232 bool Warning(SMLoc L, const Twine &Msg,
234 bool printError(SMLoc L, const Twine &Msg,
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCStreamer.h200 const MCExpr *addConstantPoolEntry(const MCExpr *, SMLoc Loc);
244 const SMLoc *StartTokLocPtr = nullptr;
287 bool checkCVLocSection(unsigned FuncId, unsigned FileNo, SMLoc Loc);
301 void setStartTokLocPtr(const SMLoc *Loc) { StartTokLocPtr = Loc; } in setStartTokLocPtr()
302 SMLoc getStartTokLoc() const { in getStartTokLoc()
303 return StartTokLocPtr ? *StartTokLocPtr : SMLoc(); in getStartTokLoc()
334 WinEH::FrameInfo *EnsureValidWinFrameInfo(SMLoc Loc);
474 virtual void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc());
687 SMLoc Loc = SMLoc());
723 SMLoc Loc = SMLoc());
[all …]
H A DMCExpr.h58 SMLoc Loc;
67 explicit MCExpr(ExprKind Kind, SMLoc Loc, unsigned SubclassData = 0)
86 SMLoc getLoc() const { return Loc; } in getLoc()
156 : MCExpr(MCExpr::Constant, SMLoc(), in MCConstantExpr()
208 const MCAsmInfo *MAI, SMLoc Loc = SMLoc());
215 SMLoc Loc = SMLoc()) {
221 SMLoc Loc = SMLoc());
255 MCUnaryExpr(Opcode Op, const MCExpr *Expr, SMLoc Loc) in MCUnaryExpr()
263 create(Opcode Op, const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc());
265 static const MCUnaryExpr *createLNot(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) {
[all …]
H A DMCObjectStreamer.h111 void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc()) override;
112 virtual void emitLabelAtPos(MCSymbol *Symbol, SMLoc Loc, MCDataFragment &F,
118 SMLoc Loc = SMLoc()) override;
140 SMLoc Loc) override;
151 const MCSymbol *Label, SMLoc Loc);
154 StringRef FileName, SMLoc Loc) override;
170 SMLoc Loc, const MCSubtargetInfo &STI) override;
173 SMLoc Loc = SMLoc()) override;
175 SMLoc Loc = SMLoc()) override;
176 void emitNops(int64_t NumBytes, int64_t ControlledNopLength, SMLoc Loc,
H A DMCDwarf.h200 SMLoc streamLabelDefLoc = {})
213 SMLoc StreamLabelDefLoc;
387 SMLoc DefLoc,
506 SourceMgr &SrcMgr, SMLoc &Loc);
553 SMLoc Loc;
557 MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R, int64_t O, SMLoc Loc,
564 MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R1, unsigned R2, SMLoc Loc) in MCCFIInstruction()
570 SMLoc Loc) in MCCFIInstruction()
576 MCCFIInstruction(OpType Op, MCSymbol *L, MCSymbol *CfiLabel, SMLoc Loc) in MCCFIInstruction()
586 int64_t Offset, SMLoc Loc = {}) {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp43 bool matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
48 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
49 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
50 SMLoc &EndLoc) override;
53 SMLoc NameLoc, OperandVector &Operands) override;
62 SMLoc NameLoc, OperandVector &Operands);
66 bool ParseLiteralValues(unsigned Size, SMLoc L);
114 SMLoc Start, End;
117 MSP430Operand(StringRef Tok, SMLoc const &S) in MSP430Operand()
119 MSP430Operand(KindTy Kind, MCRegister Reg, SMLoc const &S, SMLoc const &E) in MSP430Operand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.h54 bool checkTypes(SMLoc ErrorLoc, ArrayRef<wasm::ValType> Types,
56 bool checkTypes(SMLoc ErrorLoc, ArrayRef<StackType> Types,
58 bool popTypes(SMLoc ErrorLoc, ArrayRef<wasm::ValType> Types,
60 bool popTypes(SMLoc ErrorLoc, ArrayRef<StackType> Types,
62 bool popType(SMLoc ErrorLoc, StackType Type);
63 bool popRefType(SMLoc ErrorLoc);
64 bool popAnyType(SMLoc ErrorLoc);
75 bool typeError(SMLoc ErrorLoc, const Twine &Msg);
76 bool getLocal(SMLoc ErrorLoc, const MCOperand &LocalOp, wasm::ValType &Type);
77 bool checkSig(SMLoc ErrorLoc, const wasm::WasmSignature &Sig);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86WinCOFFTargetStreamer.cpp39 SMLoc L) override;
40 bool emitFPOEndPrologue(SMLoc L) override;
41 bool emitFPOEndProc(SMLoc L) override;
42 bool emitFPOData(const MCSymbol *ProcSym, SMLoc L) override;
43 bool emitFPOPushReg(MCRegister Reg, SMLoc L) override;
44 bool emitFPOStackAlloc(unsigned StackAlloc, SMLoc L) override;
45 bool emitFPOStackAlign(unsigned Align, SMLoc L) override;
46 bool emitFPOSetFrame(MCRegister Reg, SMLoc L) override;
83 bool checkInFPOPrologue(SMLoc L);
91 SMLoc L) override;
[all …]
H A DX86TargetStreamer.h26 SMLoc L = {}) {
29 virtual bool emitFPOEndPrologue(SMLoc L = {}) { return false; }
30 virtual bool emitFPOEndProc(SMLoc L = {}) { return false; };
31 virtual bool emitFPOData(const MCSymbol *ProcSym, SMLoc L = {}) {
34 virtual bool emitFPOPushReg(MCRegister Reg, SMLoc L = {}) { return false; }
35 virtual bool emitFPOStackAlloc(unsigned StackAlloc, SMLoc L = {}) {
38 virtual bool emitFPOStackAlign(unsigned Align, SMLoc L = {}) { return false; }
39 virtual bool emitFPOSetFrame(MCRegister Reg, SMLoc L = {}) { return false; }
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/
H A DCodeRegion.h85 llvm::SMLoc RangeStart;
86 llvm::SMLoc RangeEnd;
92 CodeRegion(llvm::StringRef Desc, llvm::SMLoc Start) in CodeRegion()
113 llvm::SMLoc startLoc() const { return RangeStart; } in startLoc()
114 llvm::SMLoc endLoc() const { return RangeEnd; } in endLoc()
116 void setEndLocation(llvm::SMLoc End) { RangeEnd = End; } in setEndLocation()
118 bool isLocInRange(llvm::SMLoc Loc) const;
136 InstrumentRegion(llvm::StringRef Desc, llvm::SMLoc Start, UniqueInstrument I) in InstrumentRegion()
189 virtual void beginRegion(llvm::StringRef Description, llvm::SMLoc Loc) = 0;
190 virtual void beginRegion(llvm::StringRef Description, llvm::SMLoc Loc,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp33 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
37 bool matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
42 bool parseRegister(MCRegister &Reo, SMLoc &StartLoc, SMLoc &EndLoc) override;
43 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
44 SMLoc &EndLoc) override;
47 SMLoc NameLoc, OperandVector &Operands) override;
98 SMLoc StartLoc, EndLoc;
149 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
151 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc()
203 static std::unique_ptr<BPFOperand> createToken(StringRef Str, SMLoc S) { in createToken()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp53 bool matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
58 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
59 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
60 SMLoc &EndLoc) override;
63 SMLoc NameLoc, OperandVector &Operands) override;
86 bool emit(MCInst &Instruction, SMLoc const &Loc, MCStreamer &Out) const;
87 bool invalidOperand(SMLoc const &Loc, OperandVector const &Operands,
89 bool missingFeature(SMLoc const &Loc, uint64_t const &ErrorInfo);
91 ParseStatus parseLiteralValues(unsigned SizeInBytes, SMLoc L);
113 AVROperand(StringRef Tok, SMLoc const &S) in AVROperand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/AsmParser/
H A DXtensaAsmParser.cpp41 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
49 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
51 SMLoc NameLoc, OperandVector &Operands) override;
52 bool matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
59 bool processInstruction(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out,
77 SMLoc NameLoc, OperandVector &Operands);
78 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc, in tryParseRegister()
79 SMLoc &EndLoc) override { in tryParseRegister()
84 bool parseLiteralDirective(SMLoc L);
131 SMLoc StartLoc, EndLoc;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSMLoc.h23 class SMLoc {
27 constexpr SMLoc() = default;
31 constexpr bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; }
32 constexpr 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.h76 SMLoc IncludeLoc;
138 SMLoc getParentIncludeLoc(unsigned i) const { in getParentIncludeLoc()
146 SMLoc IncludeLoc) { in AddNewSourceBuffer()
159 SMLoc MainBufferIncludeLoc = SMLoc()) {
177 SMLoc IncludeLoc, std::string &IncludedFile);
193 LLVM_ABI unsigned FindBufferContainingLoc(SMLoc Loc) const;
197 unsigned FindLineNumber(SMLoc Loc, unsigned BufferID = 0) const {
204 getLineAndColumn(SMLoc Loc, unsigned BufferID = 0) const;
209 getFormattedLocationNoOffset(SMLoc Loc, bool IncludePath = false) const;
213 LLVM_ABI SMLoc FindLocForLineAndColumn(unsigned BufferID, unsigned LineNo,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DError.cpp27 static void PrintMessage(ArrayRef<SMLoc> Locs, SourceMgr::DiagKind Kind, in PrintMessage()
34 SMLoc NullLoc; in PrintMessage()
38 for (SMLoc Loc : Locs) in PrintMessage()
60 void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg) { in PrintNote()
71 void PrintFatalNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg) { in PrintFatalNote()
94 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { in PrintWarning()
99 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning()
110 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError()
115 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); in PrintError()
142 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/
H A DM68kAsmParser.cpp43 bool invalidOperand(const SMLoc &Loc, const OperandVector &Operands,
45 bool missingFeature(const SMLoc &Loc, const uint64_t &ErrorInfo);
46 bool emit(MCInst &Inst, SMLoc const &Loc, MCStreamer &Out) const;
47 bool parseRegisterName(MCRegister &RegNo, SMLoc Loc, StringRef RegisterName);
70 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
71 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
72 SMLoc &EndLoc) override;
74 SMLoc NameLoc, OperandVector &Operands) override;
75 bool matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
132 SMLoc Start, End;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCAsmStreamer.cpp182 void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc()) override;
243 SMLoc Loc = SMLoc()) override;
253 SMLoc Loc = SMLoc()) override;
263 SMLoc Loc = SMLoc()) override;
266 SMLoc Loc = SMLoc()) override;
281 SMLoc Loc) override;
299 virtual void emitDwarfLocLabelDirective(SMLoc Loc, StringRef Name) override;
309 unsigned IACol, SMLoc Loc) override;
312 StringRef FileName, SMLoc Loc) override;
343 void emitCVFPOData(const MCSymbol *ProcSym, SMLoc L) override;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp68 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
70 bool matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
75 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
78 SMLoc NameLoc, OperandVector &Operands) override;
86 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
87 SMLoc &EndLoc) override;
89 bool processInstruction(MCInst &Inst, SMLoc IDLoc, OperandVector &Operands,
91 bool processLRW(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
92 bool processJSRI(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
93 bool processJMPI(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp74 bool matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
78 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
79 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
80 SMLoc &EndLoc) override;
82 SMLoc NameLoc, OperandVector &Operands) override;
125 bool matchSparcAsmModifiers(const MCExpr *&EVal, SMLoc &EndLoc);
131 bool expandSET(MCInst &Inst, SMLoc IDLoc,
134 bool expandSETSW(MCInst &Inst, SMLoc IDLoc,
137 bool expandSETX(MCInst &Inst, SMLoc IDLoc,
140 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/
H A DLoongArchAsmParser.cpp39 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
56 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
57 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
58 SMLoc &EndLoc) override;
61 SMLoc NameLoc, OperandVector &Operands) override;
63 bool matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
81 bool processInstruction(MCInst &Inst, SMLoc IDLoc, OperandVector &Operands,
133 SMLoc IDLoc, MCStreamer &Out, bool RelaxHint = false);
136 void emitLoadAddressAbs(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
139 void emitLoadAddressPcrel(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
[all …]

123456789