| /freebsd-14.2/contrib/llvm-project/llvm/lib/XRay/ |
| H A D | InstrumentationMap.cpp | 117 for (const object::RelocationRef &Reloc : Section.relocations()) { in loadObj() local 119 if (Supports && Supports(Reloc.getType())) { in loadObj() 120 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj() 124 {Reloc.getOffset(), in loadObj() 127 } else if (Supports && Supports(Reloc.getType())) { in loadObj() 128 auto AddendOrErr = object::ELFRelocationRef(Reloc).getAddend(); in loadObj() 130 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj() 135 {Reloc.getOffset(), in loadObj() 136 object::resolveRelocation(Resolver, Reloc, *ValueOrErr, A)}); in loadObj() 137 } else if (Reloc.getType() == RelativeRelocation) { in loadObj() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | WasmDumper.cpp | 84 const RelocationRef &Reloc) { in printRelocation() argument 86 uint64_t RelocType = Reloc.getType(); in printRelocation() 87 Reloc.getTypeName(RelocTypeName); in printRelocation() 88 const wasm::WasmRelocation &WasmReloc = Obj->getWasmRelocation(Reloc); in printRelocation() 91 symbol_iterator SI = Reloc.getSymbol(); in printRelocation() 100 W.printHex("Offset", Reloc.getOffset()); in printRelocation() 109 OS << W.hex(Reloc.getOffset()) << " " << RelocTypeName << " "; in printRelocation() 130 for (const RelocationRef &Reloc : Section.relocations()) { in printRelocations() local 137 printRelocation(Section, Reloc); in printRelocations() 210 for (const RelocationRef &Reloc : Section.relocations()) in printSectionHeaders() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Sparc/ |
| H A D | SparcTargetMachine.cpp | 65 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 66 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 80 getEffectiveSparcCodeModel(std::optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSparcCodeModel() 92 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSparcCodeModel() 101 std::optional<Reloc::Model> RM, in SparcTargetMachine() 203 std::optional<Reloc::Model> RM, in SparcV8TargetMachine() 213 std::optional<Reloc::Model> RM, in SparcV9TargetMachine() 223 std::optional<Reloc::Model> RM, in SparcelTargetMachine()
|
| H A D | SparcTargetMachine.h | 31 std::optional<Reloc::Model> RM, 57 std::optional<Reloc::Model> RM, 70 std::optional<Reloc::Model> RM, 81 std::optional<Reloc::Model> RM,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ |
| H A D | TargetMachineC.cpp | 40 std::optional<Reloc::Model> RM; 164 LLVMRelocMode Reloc) { in LLVMTargetMachineOptionsSetRelocMode() argument 165 std::optional<Reloc::Model> RM; in LLVMTargetMachineOptionsSetRelocMode() 167 switch (Reloc) { in LLVMTargetMachineOptionsSetRelocMode() 169 RM = Reloc::Static; in LLVMTargetMachineOptionsSetRelocMode() 172 RM = Reloc::PIC_; in LLVMTargetMachineOptionsSetRelocMode() 175 RM = Reloc::DynamicNoPIC; in LLVMTargetMachineOptionsSetRelocMode() 178 RM = Reloc::ROPI; in LLVMTargetMachineOptionsSetRelocMode() 181 RM = Reloc::RWPI; in LLVMTargetMachineOptionsSetRelocMode() 184 RM = Reloc::ROPI_RWPI; in LLVMTargetMachineOptionsSetRelocMode() [all …]
|
| H A D | TargetMachine.cpp | 97 return getRelocationModel() == Reloc::PIC_; in isPositionIndependent() 123 Reloc::Model TargetMachine::getRelocationModel() const { return RM; } in getRelocationModel() 160 Reloc::Model RM = getRelocationModel(); in shouldAssumeDSOLocal() 205 if (RM == Reloc::Static) in shouldAssumeDSOLocal() 220 Reloc::Model RM = getRelocationModel(); in getTLSModel() 221 bool IsSharedLibrary = RM == Reloc::PIC_ && !IsPIE; in getTLSModel()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | JITTargetMachineBuilder.cpp | 80 case Reloc::Static: in print() 83 case Reloc::PIC_: in print() 86 case Reloc::DynamicNoPIC: in print() 89 case Reloc::ROPI: in print() 92 case Reloc::RWPI: in print() 95 case Reloc::ROPI_RWPI: in print()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
| H A D | XtensaTargetMachine.cpp | 38 static Reloc::Model getEffectiveRelocModel(bool JIT, in getEffectiveRelocModel() 39 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 41 return Reloc::Static; in getEffectiveRelocModel() 48 std::optional<Reloc::Model> RM, in XtensaTargetMachine() 62 std::optional<Reloc::Model> RM, in XtensaTargetMachine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86TargetMachine.cpp | 177 return Reloc::Static; in getEffectiveRelocModel() 184 return Reloc::PIC_; in getEffectiveRelocModel() 185 return Reloc::DynamicNoPIC; in getEffectiveRelocModel() 188 return Reloc::PIC_; in getEffectiveRelocModel() 189 return Reloc::Static; in getEffectiveRelocModel() 196 if (*RM == Reloc::DynamicNoPIC) { in getEffectiveRelocModel() 198 return Reloc::PIC_; in getEffectiveRelocModel() 200 return Reloc::Static; in getEffectiveRelocModel() 205 if (*RM == Reloc::Static && TT.isOSDarwin() && is64Bit) in getEffectiveRelocModel() 206 return Reloc::PIC_; in getEffectiveRelocModel() [all …]
|
| /freebsd-14.2/contrib/llvm-project/lld/MachO/ |
| H A D | Relocations.h | 52 struct Reloc { struct 64 Reloc() = default; argument 66 Reloc(uint8_t type, bool pcrel, uint8_t length, uint32_t offset, in Reloc() function 75 const Reloc &); 81 void reportRangeError(void *loc, const Reloc &, const llvm::Twine &v,
|
| H A D | Relocations.cpp | 21 static_assert(sizeof(void *) != 8 || sizeof(Reloc) == 24, 24 InputSection *Reloc::getReferentInputSection() const { in getReferentInputSection() 35 const InputSection *isec, const Reloc &r) { in validateSymbolRelocation() 95 void macho::reportRangeError(void *loc, const Reloc &r, const Twine &v, in reportRangeError()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFPreserveDIType.cpp | 84 uint32_t Reloc; in BPFPreserveDITypeImpl() local 86 Reloc = BTF::BTF_TYPE_ID_LOCAL; in BPFPreserveDITypeImpl() 88 Reloc = BTF::BTF_TYPE_ID_REMOTE; in BPFPreserveDITypeImpl() 98 if (Reloc == BTF::BTF_TYPE_ID_REMOTE) { in BPFPreserveDITypeImpl() 112 BaseName + std::to_string(Count) + "$" + std::to_string(Reloc); in BPFPreserveDITypeImpl()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetMachine.cpp | 89 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 92 if (!RM || *RM == Reloc::DynamicNoPIC) in getEffectiveRelocModel() 93 return Reloc::Static; in getEffectiveRelocModel() 128 Reloc::Model RM, bool JIT) { in getEffectiveSystemZCodeModel() 137 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSystemZCodeModel() 144 std::optional<Reloc::Model> RM, in SystemZTargetMachine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/MSP430/ |
| H A D | MSP430TargetMachine.cpp | 32 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 33 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 44 std::optional<Reloc::Model> RM, in MSP430TargetMachine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetMachine.cpp | 200 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 201 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 204 return TT.isOSBinFormatMachO() ? Reloc::PIC_ : Reloc::Static; in getEffectiveRelocModel() 206 if (*RM == Reloc::ROPI || *RM == Reloc::RWPI || *RM == Reloc::ROPI_RWPI) in getEffectiveRelocModel() 211 if (*RM == Reloc::DynamicNoPIC && !TT.isOSDarwin()) in getEffectiveRelocModel() 212 return Reloc::Static; in getEffectiveRelocModel() 222 std::optional<Reloc::Model> RM, in ARMBaseTargetMachine() 330 std::optional<Reloc::Model> RM, in ARMLETargetMachine() 338 std::optional<Reloc::Model> RM, in ARMBETargetMachine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreTargetMachine.cpp | 29 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 30 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 48 std::optional<Reloc::Model> RM, in XCoreTargetMachine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Lanai/ |
| H A D | LanaiTargetMachine.cpp | 54 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 55 return RM.value_or(Reloc::PIC_); in getEffectiveRelocModel() 60 const TargetOptions &Options, std::optional<Reloc::Model> RM, in LanaiTargetMachine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARC/ |
| H A D | ARCTargetMachine.cpp | 25 static Reloc::Model getRelocModel(std::optional<Reloc::Model> RM) { in getRelocModel() 26 return RM.value_or(Reloc::Static); in getRelocModel() 33 std::optional<Reloc::Model> RM, in ARCTargetMachine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/ |
| H A D | AVRTargetMachine.cpp | 42 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 43 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 49 std::optional<Reloc::Model> RM, in AVRTargetMachine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VETargetMachine.cpp | 68 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 69 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 89 std::optional<Reloc::Model> RM, in VETargetMachine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldCOFF.cpp | 88 RelocationValueRef Reloc; in getDLLImportOffset() local 89 Reloc.SymbolName = Name.data(); in getDLLImportOffset() 90 auto I = Stubs.find(Reloc); in getDLLImportOffset() 100 Stubs[Reloc] = EntryOffset; in getDLLImportOffset()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Object/ |
| H A D | WasmObjectFile.cpp | 952 wasm::WasmRelocation Reloc = {}; in parseRelocSection() local 954 Reloc.Type = type; in parseRelocSection() 955 Reloc.Offset = readVaruint32(Ctx); in parseRelocSection() 956 if (Reloc.Offset < PreviousOffset) in parseRelocSection() 959 PreviousOffset = Reloc.Offset; in parseRelocSection() 960 Reloc.Index = readVaruint32(Ctx); in parseRelocSection() 1012 Reloc.Addend = readVarint32(Ctx); in parseRelocSection() 1022 Reloc.Addend = readVarint64(Ctx); in parseRelocSection() 1028 Reloc.Addend = readVarint32(Ctx); in parseRelocSection() 1034 Reloc.Addend = readVarint64(Ctx); in parseRelocSection() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonAsmBackend.cpp | 426 uint32_t Reloc; in applyFixup() local 450 Reloc = (((Value >> 2) & 0x1f) << 8) | // Value 6-2 = Target 12-8 in applyFixup() 460 Reloc = (((Value >> 7) & 0x3) << 20) | // Value 8-7 = Target 21-20 in applyFixup() 472 Reloc = (((Value >> 12) & 0x1) << 21) | // Value 12 = Target 21 in applyFixup() 483 Reloc = (((Value >> 13) & 0x3) << 22) | // Value 14-13 = Target 23-22 in applyFixup() 495 Reloc = (((Value >> 13) & 0x1ff) << 16) | // Value 21-13 = Target 24-16 in applyFixup() 501 Reloc = (((Value >> 14) & 0xfff) << 16) | // Value 25-14 = Target 27-16 in applyFixup() 510 Reloc = Value; in applyFixup() 522 dbgs().write_hex(OldData) << ": Reloc=0x"; dbgs().write_hex(Reloc);); in applyFixup() 529 InstAddr[i] |= uint8_t(Reloc >> (i * 8)) & 0xff; // Apply new reloc in applyFixup()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVTargetMachine.cpp | 62 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 64 return Reloc::PIC_; in getEffectiveRelocModel() 74 std::optional<Reloc::Model> RM, in SPIRVTargetMachine()
|
| /freebsd-14.2/contrib/llvm-project/lld/MachO/Arch/ |
| H A D | ARM64Common.cpp | 41 static void writeValue(uint8_t *loc, const Reloc &r, uint64_t value) { in writeValue() 60 void ARM64Common::relocateOne(uint8_t *loc, const Reloc &r, uint64_t value, in relocateOne() 113 void ARM64Common::handleDtraceReloc(const Symbol *sym, const Reloc &r, in handleDtraceReloc() 141 void macho::reportUnalignedLdrStr(void *loc, const lld::macho::Reloc &r, in reportUnalignedLdrStr()
|