| /llvm-project-15.0.7/llvm/lib/XRay/ |
| H A D | InstrumentationMap.cpp | 116 for (const object::RelocationRef &Reloc : Section.relocations()) { in loadObj() local 118 if (Supports && Supports(Reloc.getType())) { in loadObj() 119 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj() 123 {Reloc.getOffset(), in loadObj() 126 } else if (Supports && Supports(Reloc.getType())) { in loadObj() 127 auto AddendOrErr = object::ELFRelocationRef(Reloc).getAddend(); in loadObj() 129 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj() 134 {Reloc.getOffset(), in loadObj() 135 object::resolveRelocation(Resolver, Reloc, *ValueOrErr, A)}); in loadObj() 136 } else if (Reloc.getType() == RelativeRelocation) { in loadObj() [all …]
|
| /llvm-project-15.0.7/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 …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Sparc/ |
| H A D | SparcTargetMachine.cpp | 57 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 58 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 72 getEffectiveSparcCodeModel(Optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSparcCodeModel() 84 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSparcCodeModel() 92 const TargetOptions &Options, Optional<Reloc::Model> RM, in SparcTargetMachine() 190 Optional<Reloc::Model> RM, in SparcV8TargetMachine() 200 Optional<Reloc::Model> RM, in SparcV9TargetMachine() 210 Optional<Reloc::Model> RM, in SparcelTargetMachine()
|
| H A D | SparcTargetMachine.h | 30 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM, 51 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM, 62 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM, 72 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM,
|
| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | BinarySection.cpp | 139 for (Relocation &Reloc : PendingRelocations) { in flushPendingRelocations() 140 uint64_t Value = Reloc.Addend; in flushPendingRelocations() 141 if (Reloc.Symbol) in flushPendingRelocations() 142 Value += Resolver(Reloc.Symbol); in flushPendingRelocations() 144 Value = Relocation::adjustValue(Reloc.Type, Value, in flushPendingRelocations() 145 SectionAddress + Reloc.Offset); in flushPendingRelocations() 148 Relocation::getSizeForType(Reloc.Type), in flushPendingRelocations() 149 SectionFileOffset + Reloc.Offset); in flushPendingRelocations() 153 << " of size " << Relocation::getSizeForType(Reloc.Type) in flushPendingRelocations() 154 << " at section offset 0x" << Twine::utohexstr(Reloc.Offset) in flushPendingRelocations() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | JITTargetMachineBuilder.cpp | 83 case Reloc::Static: in print() 86 case Reloc::PIC_: in print() 89 case Reloc::DynamicNoPIC: in print() 92 case Reloc::ROPI: in print() 95 case Reloc::RWPI: in print() 98 case Reloc::ROPI_RWPI: in print()
|
| /llvm-project-15.0.7/llvm/lib/Target/ |
| H A D | TargetMachineC.cpp | 100 LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, in LLVMCreateTargetMachine() argument 102 Optional<Reloc::Model> RM; in LLVMCreateTargetMachine() 103 switch (Reloc){ in LLVMCreateTargetMachine() 105 RM = Reloc::Static; in LLVMCreateTargetMachine() 108 RM = Reloc::PIC_; in LLVMCreateTargetMachine() 111 RM = Reloc::DynamicNoPIC; in LLVMCreateTargetMachine() 114 RM = Reloc::ROPI; in LLVMCreateTargetMachine() 117 RM = Reloc::RWPI; in LLVMCreateTargetMachine() 120 RM = Reloc::ROPI_RWPI; in LLVMCreateTargetMachine()
|
| H A D | TargetMachine.cpp | 42 return getRelocationModel() == Reloc::PIC_; in isPositionIndependent() 68 Reloc::Model TargetMachine::getRelocationModel() const { return RM; } in getRelocationModel() 91 Reloc::Model RM = getRelocationModel(); in shouldAssumeDSOLocal() 136 if (RM == Reloc::Static) in shouldAssumeDSOLocal() 156 Reloc::Model RM = getRelocationModel(); in getTLSModel() 157 bool IsSharedLibrary = RM == Reloc::PIC_ && !IsPIE; in getTLSModel()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86TargetMachine.cpp | 164 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 172 return Reloc::Static; in getEffectiveRelocModel() 179 return Reloc::PIC_; in getEffectiveRelocModel() 180 return Reloc::DynamicNoPIC; in getEffectiveRelocModel() 183 return Reloc::PIC_; in getEffectiveRelocModel() 184 return Reloc::Static; in getEffectiveRelocModel() 191 if (*RM == Reloc::DynamicNoPIC) { in getEffectiveRelocModel() 193 return Reloc::PIC_; in getEffectiveRelocModel() 195 return Reloc::Static; in getEffectiveRelocModel() 200 if (*RM == Reloc::Static && TT.isOSDarwin() && is64Bit) in getEffectiveRelocModel() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/MSP430/ |
| H A D | MSP430TargetMachine.cpp | 29 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 30 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 41 Optional<Reloc::Model> RM, in MSP430TargetMachine()
|
| /llvm-project-15.0.7/lld/MachO/ |
| H A D | Relocations.h | 53 struct Reloc { struct 65 Reloc() = default; argument 67 Reloc(uint8_t type, bool pcrel, uint8_t length, uint32_t offset, in Reloc() argument 82 const Reloc &); 88 void reportRangeError(void *loc, const Reloc &, const llvm::Twine &v,
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetMachine.cpp | 118 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 121 if (!RM || *RM == Reloc::DynamicNoPIC) in getEffectiveRelocModel() 122 return Reloc::Static; in getEffectiveRelocModel() 156 getEffectiveSystemZCodeModel(Optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSystemZCodeModel() 166 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSystemZCodeModel() 173 Optional<Reloc::Model> RM, in SystemZTargetMachine()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARC/ |
| H A D | ARCTargetMachine.cpp | 23 static Reloc::Model getRelocModel(Optional<Reloc::Model> RM) { in getRelocModel() 24 return RM.value_or(Reloc::Static); in getRelocModel() 31 Optional<Reloc::Model> RM, in ARCTargetMachine()
|
| /llvm-project-15.0.7/llvm/lib/Target/Lanai/ |
| H A D | LanaiTargetMachine.cpp | 50 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 51 return RM.value_or(Reloc::PIC_); in getEffectiveRelocModel() 57 Optional<Reloc::Model> RM, in LanaiTargetMachine()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMTargetMachine.cpp | 197 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 198 Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 201 return TT.isOSBinFormatMachO() ? Reloc::PIC_ : Reloc::Static; in getEffectiveRelocModel() 203 if (*RM == Reloc::ROPI || *RM == Reloc::RWPI || *RM == Reloc::ROPI_RWPI) in getEffectiveRelocModel() 208 if (*RM == Reloc::DynamicNoPIC && !TT.isOSDarwin()) in getEffectiveRelocModel() 209 return Reloc::Static; in getEffectiveRelocModel() 219 Optional<Reloc::Model> RM, in ARMBaseTargetMachine() 319 Optional<Reloc::Model> RM, in ARMLETargetMachine() 327 Optional<Reloc::Model> RM, in ARMBETargetMachine()
|
| /llvm-project-15.0.7/llvm/lib/Target/XCore/ |
| H A D | XCoreTargetMachine.cpp | 28 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 29 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 47 Optional<Reloc::Model> RM, in XCoreTargetMachine()
|
| /llvm-project-15.0.7/llvm/lib/Target/AVR/ |
| H A D | AVRTargetMachine.cpp | 40 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 41 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 47 Optional<Reloc::Model> RM, in AVRTargetMachine()
|
| /llvm-project-15.0.7/llvm/lib/Target/VE/ |
| H A D | VETargetMachine.cpp | 63 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 64 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 82 Optional<Reloc::Model> RM, in VETargetMachine()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldCOFF.cpp | 87 RelocationValueRef Reloc; in getDLLImportOffset() local 88 Reloc.SymbolName = Name.data(); in getDLLImportOffset() 89 auto I = Stubs.find(Reloc); in getDLLImportOffset() 99 Stubs[Reloc] = EntryOffset; in getDLLImportOffset()
|
| /llvm-project-15.0.7/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchTargetMachine.cpp | 39 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 40 Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 41 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 46 const TargetOptions &Options, Optional<Reloc::Model> RM, in LoongArchTargetMachine()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVTargetMachine.cpp | 55 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 57 return Reloc::PIC_; in getEffectiveRelocModel() 67 Optional<Reloc::Model> RM, in SPIRVTargetMachine()
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/ |
| H A D | BPFPreserveDIType.cpp | 83 uint32_t Reloc; in BPFPreserveDITypeImpl() local 85 Reloc = BPFCoreSharedInfo::BTF_TYPE_ID_LOCAL; in BPFPreserveDITypeImpl() 87 Reloc = BPFCoreSharedInfo::BTF_TYPE_ID_REMOTE; in BPFPreserveDITypeImpl() 110 BaseName + std::to_string(Count) + "$" + std::to_string(Reloc); in BPFPreserveDITypeImpl()
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | WasmObjectFile.cpp | 937 wasm::WasmRelocation Reloc = {}; in parseRelocSection() local 939 Reloc.Type = type; in parseRelocSection() 940 Reloc.Offset = readVaruint32(Ctx); in parseRelocSection() 941 if (Reloc.Offset < PreviousOffset) in parseRelocSection() 944 PreviousOffset = Reloc.Offset; in parseRelocSection() 945 Reloc.Index = readVaruint32(Ctx); in parseRelocSection() 996 Reloc.Addend = readVarint32(Ctx); in parseRelocSection() 1006 Reloc.Addend = readVarint64(Ctx); in parseRelocSection() 1012 Reloc.Addend = readVarint32(Ctx); in parseRelocSection() 1018 Reloc.Addend = readVarint64(Ctx); in parseRelocSection() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonAsmBackend.cpp | 427 uint32_t Reloc; in applyFixup() local 451 Reloc = (((Value >> 2) & 0x1f) << 8) | // Value 6-2 = Target 12-8 in applyFixup() 461 Reloc = (((Value >> 7) & 0x3) << 20) | // Value 8-7 = Target 21-20 in applyFixup() 473 Reloc = (((Value >> 12) & 0x1) << 21) | // Value 12 = Target 21 in applyFixup() 484 Reloc = (((Value >> 13) & 0x3) << 22) | // Value 14-13 = Target 23-22 in applyFixup() 496 Reloc = (((Value >> 13) & 0x1ff) << 16) | // Value 21-13 = Target 24-16 in applyFixup() 502 Reloc = (((Value >> 14) & 0xfff) << 16) | // Value 25-14 = Target 27-16 in applyFixup() 511 Reloc = Value; in applyFixup() 523 dbgs().write_hex(OldData) << ": Reloc=0x"; dbgs().write_hex(Reloc);); in applyFixup() 530 InstAddr[i] |= uint8_t(Reloc >> (i * 8)) & 0xff; // Apply new reloc in applyFixup()
|
| /llvm-project-15.0.7/llvm/lib/Target/M68k/ |
| H A D | M68kTargetMachine.cpp | 72 Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 73 Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 76 return Reloc::Static; in getEffectiveRelocModel() 98 Optional<Reloc::Model> RM, in M68kTargetMachine()
|