| /freebsd-14.2/contrib/llvm-project/llvm/lib/MC/MCParser/ |
| H A D | DarwinAsmParser.cpp | 54 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() 828 SMLoc IDLoc = getLexer().getLoc(); in parseDirectiveTBSS() 841 SMLoc SizeLoc = getLexer().getLoc(); in parseDirectiveTBSS() 846 SMLoc Pow2AlignmentLoc; in parseDirectiveTBSS() 913 SMLoc IDLoc = getLexer().getLoc(); in parseDirectiveZerofill() 926 SMLoc SizeLoc = getLexer().getLoc(); in parseDirectiveZerofill() [all …]
|
| H A D | COFFAsmParser.cpp | 121 bool ParseDirectiveSection(StringRef, SMLoc); 125 bool ParseDirectiveDef(StringRef, SMLoc); 126 bool ParseDirectiveScl(StringRef, SMLoc); 127 bool ParseDirectiveType(StringRef, SMLoc); 128 bool ParseDirectiveEndef(StringRef, SMLoc); 130 bool ParseDirectiveSecIdx(StringRef, SMLoc); 132 bool ParseDirectiveSymIdx(StringRef, SMLoc); 135 bool ParseDirectiveRVA(StringRef, SMLoc); 501 SMLoc OffsetLoc; in ParseDirectiveSecRel32() 531 SMLoc OffsetLoc; in ParseDirectiveRVA() [all …]
|
| H A D | COFFMasmParser.cpp | 45 bool ParseDirectiveProc(StringRef, SMLoc); 46 bool ParseDirectiveEndProc(StringRef, SMLoc); 47 bool ParseDirectiveSegment(StringRef, SMLoc); 48 bool ParseDirectiveSegmentEnd(StringRef, SMLoc); 50 bool ParseDirectiveOption(StringRef, SMLoc); 52 bool ParseDirectiveAlias(StringRef, SMLoc); 57 bool IgnoreDirective(StringRef, SMLoc) { in IgnoreDirective() argument 282 SMLoc KeywordLoc = getTok().getLoc(); in ParseDirectiveSegment() 456 SMLoc nextLoc = getTok().getLoc(); in ParseDirectiveProc() 488 SMLoc LabelLoc = getTok().getLoc(); in ParseDirectiveEndProc() [all …]
|
| H A D | ELFAsmParser.cpp | 141 bool ParseDirectiveSection(StringRef, SMLoc); 142 bool ParseDirectiveSize(StringRef, SMLoc); 144 bool ParseDirectiveType(StringRef, SMLoc); 145 bool ParseDirectiveIdent(StringRef, SMLoc); 146 bool ParseDirectiveSymver(StringRef, SMLoc); 147 bool ParseDirectiveVersion(StringRef, SMLoc); 148 bool ParseDirectiveWeakref(StringRef, SMLoc); 247 SMLoc FirstLoc = getLexer().getLoc(); in ParseSectionName() 257 SMLoc PrevLoc = getLexer().getLoc(); in ParseSectionName() 480 SMLoc StartLoc = L.getLoc(); in parseLinkedToSym() [all …]
|
| H A D | AsmParser.cpp | 94 SMLoc ExitLoc; 128 SMLoc StartTokLoc; 159 SMLoc Loc; 1396 SMLoc EndLoc; in parseExpression() 1465 static bool isAngleBracketString(SMLoc &StrLoc, SMLoc &EndLoc) { in isAngleBracketString() 2792 SMLoc EndLoc; in parseMacroArguments() 3785 SMLoc Loc; in parseCVFunctionId() 3794 SMLoc Loc; in parseCVFileId() 4016 SMLoc Loc; in parseDirectiveCVDefRange() 4797 SMLoc Loc; in parseDirectivePurgeMacro() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/ |
| H A D | MSP430AsmParser.cpp | 48 bool parseRegister(MCRegister &Reg, 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() 359 Operands.push_back(MSP430Operand::CreateImm(CCode, SMLoc(), SMLoc())); in parseJccInstruction() 452 SMLoc StartLoc, EndLoc; in ParseOperand() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCStreamer.h | 700 SMLoc Loc = SMLoc()) = 0; 736 SMLoc Loc = SMLoc()); 835 SMLoc Loc = SMLoc()); 846 SMLoc Loc = SMLoc()); 1059 virtual void emitWinCFIEndProc(SMLoc Loc = SMLoc()); 1069 SMLoc Loc = SMLoc()); 1072 SMLoc Loc = SMLoc()); 1074 SMLoc Loc = SMLoc()); 1076 virtual void emitWinCFIEndProlog(SMLoc Loc = SMLoc()); 1078 SMLoc Loc = SMLoc()); [all …]
|
| H A D | MCExpr.h | 54 SMLoc Loc; 82 SMLoc getLoc() const { return Loc; } in getLoc() 383 const MCAsmInfo *MAI, SMLoc Loc = SMLoc()); 394 MCContext &Ctx, SMLoc Loc = SMLoc()); 448 MCContext &Ctx, SMLoc Loc = SMLoc()); 450 static const MCUnaryExpr *createLNot(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) { 454 static const MCUnaryExpr *createMinus(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) { 458 static const MCUnaryExpr *createNot(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) { 462 static const MCUnaryExpr *createPlus(const MCExpr *Expr, MCContext &Ctx, SMLoc Loc = SMLoc()) { 517 SMLoc Loc = SMLoc()) [all …]
|
| H A D | MCObjectStreamer.h | 133 void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc()) override; 134 virtual void emitLabelAtPos(MCSymbol *Symbol, SMLoc Loc, MCFragment *F, 140 SMLoc Loc = SMLoc()) override; 161 SMLoc Loc) override; 171 const MCSymbol *Label, SMLoc Loc); 174 StringRef FileName, SMLoc Loc) override; 196 SMLoc Loc, const MCSubtargetInfo &STI) override; 199 SMLoc Loc = SMLoc()) override; 201 SMLoc Loc = SMLoc()) override; 202 void emitNops(int64_t NumBytes, int64_t ControlledNopLength, SMLoc Loc,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86WinCOFFTargetStreamer.cpp | 35 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 D | X86TargetStreamer.h | 22 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-14.2/contrib/llvm-project/llvm/tools/llvm-mca/ |
| H A D | CodeRegion.h | 84 llvm::SMLoc RangeStart; 85 llvm::SMLoc RangeEnd; 91 CodeRegion(llvm::StringRef Desc, llvm::SMLoc Start) in CodeRegion() 100 llvm::SMLoc startLoc() const { return RangeStart; } in startLoc() 101 llvm::SMLoc endLoc() const { return RangeEnd; } in endLoc() 103 void setEndLocation(llvm::SMLoc End) { RangeEnd = End; } in setEndLocation() 105 bool isLocInRange(llvm::SMLoc Loc) const; 177 virtual void beginRegion(llvm::StringRef Description, llvm::SMLoc Loc, 186 void beginRegion(llvm::StringRef Description, llvm::SMLoc Loc, in beginRegion() 188 void endRegion(llvm::StringRef Description, llvm::SMLoc Loc) override; [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
| H A D | AVRAsmParser.cpp | 59 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override; 116 AVROperand(unsigned Reg, SMLoc const &S, SMLoc const &E) in AVROperand() 118 AVROperand(MCExpr const *Imm, SMLoc const &S, SMLoc const &E) in AVROperand() 120 AVROperand(unsigned Reg, MCExpr const *Imm, SMLoc const &S, SMLoc const &E) in AVROperand() 132 SMLoc Start, End; 224 CreateMemri(unsigned RegNum, const MCExpr *Val, SMLoc S, SMLoc E) { in CreateMemri() 288 SMLoc ErrorLoc = Loc; in invalidOperand() 422 SMLoc S = Parser.getTok().getLoc(); in tryParseExpression() 440 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in tryParseExpression() 511 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in tryParseRelocExpression() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmTypeCheck.h | 41 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-14.2/contrib/llvm-project/llvm/lib/Target/Xtensa/AsmParser/ |
| H A D | XtensaAsmParser.cpp | 38 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override; 106 SMLoc StartLoc, EndLoc; 340 static SMLoc RefineErrorLoc(const SMLoc Loc, const OperandVector &Operands, in RefineErrorLoc() 344 if (ErrorLoc == SMLoc()) in RefineErrorLoc() 372 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() 473 SMLoc FirstS = getLoc(); in parseRegister() 517 SMLoc S = getLoc(); in parseRegister() 531 SMLoc S = getLoc(); in parseImmediate() 532 SMLoc E; in parseImmediate() 623 SMLoc S = getLoc(); in ParseInstructionWithSR() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/ |
| H A D | BPFAsmParser.cpp | 42 bool parseRegister(MCRegister &Reo, SMLoc &StartLoc, SMLoc &EndLoc) override; 96 SMLoc StartLoc, EndLoc; 309 SMLoc ErrorLoc; in MatchAndEmitInstruction() 334 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 374 SMLoc S = getLoc(); in parseOperandAsOperator() 439 SMLoc S = getLoc(); in parseRegister() 440 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseRegister() 472 SMLoc S = getLoc(); in parseImmediate() 477 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseImmediate() 491 SMLoc E = SMLoc::getFromPointer(NameLoc.getPointer() - 1); in ParseInstruction() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | SMLoc.h | 23 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 D | SourceMgr.h | 75 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 …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/ |
| H A D | LoongArchAsmParser.cpp | 46 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override; 172 SMLoc StartLoc, EndLoc; 609 SMLoc S = getLoc(); in parseRegister() 610 SMLoc E = SMLoc::getFromPointer(S.getPointer() + Name.size()); in parseRegister() 618 SMLoc S = getLoc(); in parseImmediate() 619 SMLoc E; in parseImmediate() 647 SMLoc S = getLoc(); in parseOperandWithModifier() 648 SMLoc E; in parseOperandWithModifier() 678 SMLoc S = getLoc(); in parseSImm26Operand() 691 SMLoc E = SMLoc::getFromPointer(S.getPointer() + Identifier.size()); in parseSImm26Operand() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/ |
| H A D | M68kAsmParser.cpp | 69 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override; 131 SMLoc Start, End; 141 M68kOperand(KindTy Kind, SMLoc Start, SMLoc End) in M68kOperand() 328 SMLoc Start, SMLoc End) { in createMemOp() 342 SMLoc Start, SMLoc End) { in createToken() 358 SMLoc Start, SMLoc End) { in createImm() 767 SMLoc Start = getLexer().getLoc(); in parseImm() 770 SMLoc End; in parseImm() 781 SMLoc Start = getLexer().getLoc(); in parseMemOp() 868 SMLoc End = getLexer().getLoc(); in parseMemOp() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | Error.cpp | 27 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() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsTargetStreamer.h | 121 void emitR(unsigned Opcode, unsigned Reg0, SMLoc IDLoc, 123 void emitII(unsigned Opcode, int16_t Imm1, int16_t Imm2, SMLoc IDLoc, 127 void emitRI(unsigned Opcode, unsigned Reg0, int32_t Imm, 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); 140 int16_t Imm1, int16_t Imm2, SMLoc IDLoc, 145 SMLoc IDLoc, const MCSubtargetInfo *STI); 146 void emitEmptyDelaySlot(bool hasShortDelaySlot, SMLoc IDLoc, [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/TableGen/ |
| H A D | Error.h | 23 void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg); 26 [[noreturn]] void PrintFatalNote(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 31 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg); 35 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 41 [[noreturn]] void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 45 void CheckAssert(SMLoc Loc, Init *Condition, Init *Message); 46 void dumpMessage(SMLoc Loc, Init *Message);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/ |
| H A D | CSKYAsmParser.cpp | 75 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override; 1029 SMLoc S = getLoc(); in parseRegister() 1030 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseRegister() 1112 SMLoc S = getLoc(); in parseImmediate() 1116 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseImmediate() 1162 SMLoc S = getLoc(); in parseCSKYSymbol() 1163 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseCSKYSymbol() 1238 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseDataSymbol() 1319 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parseConstpoolSymbol() 1391 SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1); in parsePSRFlag() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
| H A D | MCAsmParser.h | 130 SMLoc Loc; 212 virtual void Note(SMLoc L, const Twine &Msg, 218 virtual bool Warning(SMLoc L, const Twine &Msg, 226 bool Error(SMLoc L, const Twine &Msg, SMRange Range = std::nullopt); 232 virtual bool printError(SMLoc L, const Twine &Msg, 260 bool parseTokenLoc(SMLoc &Loc); 276 bool check(bool P, SMLoc Loc, const Twine &Msg); 303 virtual bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0; 311 virtual bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc, 343 SMLoc &EndLoc) = 0; [all …]
|