Home
last modified time | relevance | path

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

12345678

/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.cpp32 template<bool (COFFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
95 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument
101 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument
107 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument
113 bool ParseDirectiveSection(StringRef, SMLoc);
114 bool parseSectionArguments(StringRef, SMLoc);
115 bool ParseDirectivePushSection(StringRef, SMLoc);
116 bool ParseDirectivePopSection(StringRef, SMLoc);
117 bool ParseDirectiveDef(StringRef, SMLoc);
118 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)>
91 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument
96 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument
101 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument
106 bool ParseSectionDirectiveRoData(StringRef, SMLoc) { in ParseSectionDirectiveRoData() argument
111 bool ParseSectionDirectiveTData(StringRef, SMLoc) { in ParseSectionDirectiveTData() argument
117 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) { in ParseSectionDirectiveTBSS() argument
123 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) { in ParseSectionDirectiveDataRel() argument
128 bool ParseSectionDirectiveDataRelRo(StringRef, SMLoc) { in ParseSectionDirectiveDataRelRo() argument
134 bool ParseSectionDirectiveEhFrame(StringRef, SMLoc) { in ParseSectionDirectiveEhFrame() argument
[all …]
H A DAsmParser.cpp88 SMLoc InstantiationLoc;
94 SMLoc ExitLoc;
128 SMLoc StartTokLoc;
129 std::optional<SMLoc> CFIStartProcLoc;
159 SMLoc Loc;
169 SmallVector<std::tuple<SMLoc, CppHashInfoTy, MCSymbol *>, 4> DirLabels;
197 SMLoc IDLoc);
242 void Note(SMLoc L, const Twine &Msg, SMRange Range = std::nullopt) override;
243 bool Warning(SMLoc L, const Twine &Msg,
245 bool printError(SMLoc L, const Twine &Msg,
[all …]
H A DMasmParser.cpp86 SMLoc InstantiationLoc;
92 SMLoc ExitLoc;
439 SMLoc Loc;
449 SmallVector<std::tuple<SMLoc, CppHashInfoTy, MCSymbol *>, 4> DirLabels;
511 void Note(SMLoc L, const Twine &Msg, SMRange Range = std::nullopt) override;
512 bool Warning(SMLoc L, const Twine &Msg,
514 bool printError(SMLoc L, const Twine &Msg,
548 bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) override;
549 bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc,
551 bool parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) override;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCStreamer.h193 const MCExpr *addConstantPoolEntry(const MCExpr *, SMLoc Loc);
237 const SMLoc *StartTokLocPtr = nullptr;
277 bool checkCVLocSection(unsigned FuncId, unsigned FileNo, SMLoc Loc);
291 void setStartTokLocPtr(const SMLoc *Loc) { StartTokLocPtr = Loc; } in setStartTokLocPtr()
292 SMLoc getStartTokLoc() const { in getStartTokLoc()
293 return StartTokLocPtr ? *StartTokLocPtr : SMLoc(); in getStartTokLoc()
322 WinEH::FrameInfo *EnsureValidWinFrameInfo(SMLoc Loc);
456 virtual void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc());
665 SMLoc Loc = SMLoc()) = 0;
701 SMLoc Loc = SMLoc());
[all …]
H A DMCExpr.h53 SMLoc Loc;
59 explicit MCExpr(ExprKind Kind, SMLoc Loc, unsigned SubclassData = 0)
79 SMLoc getLoc() const { return Loc; } in getLoc()
154 : MCExpr(MCExpr::Constant, SMLoc(), in MCConstantExpr()
387 const MCAsmInfo *MAI, SMLoc Loc = SMLoc());
398 MCContext &Ctx, SMLoc Loc = SMLoc());
444 MCUnaryExpr(Opcode Op, const MCExpr *Expr, SMLoc Loc) in MCUnaryExpr()
452 MCContext &Ctx, SMLoc Loc = SMLoc());
454 static const MCUnaryExpr *createLNot(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) {
458 static const MCUnaryExpr *createMinus(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) {
[all …]
H A DMCObjectStreamer.h112 void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc()) override;
113 virtual void emitLabelAtPos(MCSymbol *Symbol, SMLoc Loc, MCDataFragment &F,
119 SMLoc Loc = SMLoc()) override;
141 SMLoc Loc) override;
151 const MCSymbol *Label, SMLoc Loc);
154 StringRef FileName, SMLoc Loc) override;
176 SMLoc Loc, const MCSubtargetInfo &STI) override;
179 SMLoc Loc = SMLoc()) override;
181 SMLoc Loc = SMLoc()) override;
182 void emitNops(int64_t NumBytes, int64_t ControlledNopLength, SMLoc Loc,
/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, unsigned Reg, SMLoc const &S, SMLoc const &E) in MSP430Operand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86WinCOFFTargetStreamer.cpp35 SMLoc L) override;
36 bool emitFPOEndPrologue(SMLoc L) override;
37 bool emitFPOEndProc(SMLoc L) override;
38 bool emitFPOData(const MCSymbol *ProcSym, SMLoc L) override;
39 bool emitFPOPushReg(unsigned Reg, SMLoc L) override;
40 bool emitFPOStackAlloc(unsigned StackAlloc, SMLoc L) override;
41 bool emitFPOStackAlign(unsigned Align, SMLoc L) override;
42 bool emitFPOSetFrame(unsigned Reg, SMLoc L) override;
79 bool checkInFPOPrologue(SMLoc L);
89 SMLoc L) override;
[all …]
H A DX86TargetStreamer.h22 SMLoc L = {}) {
25 virtual bool emitFPOEndPrologue(SMLoc L = {}) { return false; }
26 virtual bool emitFPOEndProc(SMLoc L = {}) { return false; };
27 virtual bool emitFPOData(const MCSymbol *ProcSym, SMLoc L = {}) {
30 virtual bool emitFPOPushReg(unsigned Reg, SMLoc L = {}) { return false; }
31 virtual bool emitFPOStackAlloc(unsigned StackAlloc, SMLoc L = {}) {
34 virtual bool emitFPOStackAlign(unsigned Align, SMLoc L = {}) { return false; }
35 virtual bool emitFPOSetFrame(unsigned 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;
96 SMLoc StartLoc, EndLoc;
147 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
149 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc()
201 static std::unique_ptr<BPFOperand> createToken(StringRef Str, SMLoc S) { in createToken()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/AsmParser/
H A DXtensaAsmParser.cpp39 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
47 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
49 SMLoc NameLoc, OperandVector &Operands) override;
50 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
57 bool processInstruction(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out,
71 SMLoc NameLoc, OperandVector &Operands);
72 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc, in tryParseRegister()
73 SMLoc &EndLoc) override { in tryParseRegister()
77 bool parseLiteralDirective(SMLoc L);
119 SMLoc StartLoc, EndLoc;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.h41 bool typeError(SMLoc ErrorLoc, const Twine &Msg);
42 bool popType(SMLoc ErrorLoc, std::optional<wasm::ValType> EVT);
43 bool popRefType(SMLoc ErrorLoc);
44 bool getLocal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
45 bool checkEnd(SMLoc ErrorLoc, bool PopVals = false);
46 bool checkBr(SMLoc ErrorLoc, size_t Level);
47 bool checkSig(SMLoc ErrorLoc, const wasm::WasmSignature &Sig);
48 bool getSymRef(SMLoc ErrorLoc, const MCInst &Inst,
50 bool getGlobal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
51 bool getTable(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp54 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
59 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
60 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
61 SMLoc &EndLoc) override;
64 SMLoc NameLoc, OperandVector &Operands) override;
87 bool emit(MCInst &Instruction, SMLoc const &Loc, MCStreamer &Out) const;
88 bool invalidOperand(SMLoc const &Loc, OperandVector const &Operands,
90 bool missingFeature(SMLoc const &Loc, uint64_t const &ErrorInfo);
92 ParseStatus parseLiteralValues(unsigned SizeInBytes, SMLoc L);
114 AVROperand(StringRef Tok, SMLoc const &S) in AVROperand()
[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.h75 SMLoc IncludeLoc;
137 SMLoc getParentIncludeLoc(unsigned i) const { in getParentIncludeLoc()
145 SMLoc IncludeLoc) { in AddNewSourceBuffer()
158 SMLoc MainBufferIncludeLoc = SMLoc()) {
175 unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc,
192 unsigned FindBufferContainingLoc(SMLoc Loc) const;
196 unsigned FindLineNumber(SMLoc Loc, unsigned BufferID = 0) const {
202 std::pair<unsigned, unsigned> getLineAndColumn(SMLoc Loc,
207 std::string getFormattedLocationNoOffset(SMLoc Loc,
212 SMLoc FindLocForLineAndColumn(unsigned BufferID, unsigned LineNo,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/
H A DLoongArchAsmParser.cpp33 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
46 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
47 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
48 SMLoc &EndLoc) override;
51 SMLoc NameLoc, OperandVector &Operands) override;
53 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
69 bool processInstruction(MCInst &Inst, SMLoc IDLoc, OperandVector &Operands,
88 SMLoc IDLoc, MCStreamer &Out, bool RelaxHint = false);
91 void emitLoadAddressAbs(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
94 void emitLoadAddressPcrel(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/
H A DM68kAsmParser.cpp42 bool invalidOperand(const SMLoc &Loc, const OperandVector &Operands,
44 bool missingFeature(const SMLoc &Loc, const uint64_t &ErrorInfo);
45 bool emit(MCInst &Inst, SMLoc const &Loc, MCStreamer &Out) const;
46 bool parseRegisterName(MCRegister &RegNo, SMLoc Loc, StringRef RegisterName);
69 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
70 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
71 SMLoc &EndLoc) override;
73 SMLoc NameLoc, OperandVector &Operands) override;
74 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
131 SMLoc Start, End;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsTargetStreamer.h99 SMLoc IDLoc, const MCSubtargetInfo *STI);
121 void emitR(unsigned Opcode, unsigned Reg0, SMLoc IDLoc,
123 void emitII(unsigned Opcode, int16_t Imm1, int16_t Imm2, SMLoc IDLoc,
125 void emitRX(unsigned Opcode, unsigned Reg0, MCOperand Op1, SMLoc IDLoc,
127 void emitRI(unsigned Opcode, unsigned Reg0, int32_t Imm, SMLoc IDLoc,
129 void emitRR(unsigned Opcode, unsigned Reg0, unsigned Reg1, SMLoc IDLoc,
132 SMLoc IDLoc, const MCSubtargetInfo *STI);
134 SMLoc IDLoc, const MCSubtargetInfo *STI);
136 MCOperand Op3, SMLoc IDLoc, const MCSubtargetInfo *STI);
138 SMLoc IDLoc, const MCSubtargetInfo *STI);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp73 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
77 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
78 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
79 SMLoc &EndLoc) override;
81 SMLoc NameLoc, OperandVector &Operands) override;
125 bool matchSparcAsmModifiers(const MCExpr *&EVal, SMLoc &EndLoc);
131 bool expandSET(MCInst &Inst, SMLoc IDLoc,
134 bool expandSETX(MCInst &Inst, SMLoc IDLoc,
137 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
226 SMLoc StartLoc, EndLoc;
[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/RISCV/AsmParser/
H A DRISCVAsmParser.cpp84 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
105 bool generateImmOutOfRangeError(SMLoc ErrorLoc, int64_t Lower, int64_t Upper,
108 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
114 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
115 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
116 SMLoc &EndLoc) override;
119 SMLoc NameLoc, OperandVector &Operands) override;
126 bool generateVTypeError(SMLoc ErrorLoc);
140 unsigned SecondOpcode, SMLoc IDLoc, MCStreamer &Out);
143 void emitLoadLocalAddress(MCInst &Inst, SMLoc IDLoc, MCStreamer &Out);
[all …]

12345678