| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86ELFObjectWriter.cpp | 37 bool IsPCRel) const override; 43 X86_32RelType Type, bool IsPCRel, 46 X86_64RelType Type, bool IsPCRel, 61 bool &IsPCRel) { in getType64() argument 71 if (Specifier == X86::S_None && !IsPCRel) in getType64() 76 IsPCRel = true; in getType64() 108 X86_64RelType Type, bool IsPCRel, in getRelocType64() argument 121 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64() 123 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64() 127 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64() [all …]
|
| H A D | X86MachObjectWriter.cpp | 102 unsigned IsPCRel = Fixup.isPCRel(); in RecordX86_64Relocation() local 118 if (IsPCRel) { in RecordX86_64Relocation() 135 if (IsPCRel) { in RecordX86_64Relocation() 158 if (IsPCRel) { in RecordX86_64Relocation() 202 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in RecordX86_64Relocation() 242 if (IsPCRel) in RecordX86_64Relocation() 255 if (IsPCRel) { in RecordX86_64Relocation() 312 IsPCRel = 1; in RecordX86_64Relocation() 339 MRE.r_word1 = (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | in RecordX86_64Relocation() 353 unsigned IsPCRel = Fixup.isPCRel(); in recordScatteredRelocation() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/ |
| H A D | SystemZELFObjectWriter.cpp | 36 bool IsPCRel) const override; 103 bool IsPCRel) const { in getRelocType() 123 if (IsPCRel) in getRelocType() 128 assert(!IsPCRel && "NTPOFF shouldn't be PC-relative"); in getRelocType() 139 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType() 146 assert(!IsPCRel && "DTPOFF shouldn't be PC-relative"); in getRelocType() 157 assert(!IsPCRel && "TLSLDM shouldn't be PC-relative"); in getRelocType() 170 assert(!IsPCRel && "TLSGD shouldn't be PC-relative"); in getRelocType() 184 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType() 190 assert(IsPCRel && "@PLT shouldn't be PC-relative"); in getRelocType()
|
| H A D | SystemZMCObjectWriter.cpp | |
| /freebsd/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/ |
| H A D | M68kELFObjectWriter.cpp | 37 bool IsPCRel) const override; 49 bool &IsPCRel) { in getType() argument 63 bool IsPCRel) const { in getRelocType() 66 M68kRelType Type = getType(Kind, Specifier, IsPCRel); in getRelocType() 137 return IsPCRel ? ELF::R_68K_PC32 : ELF::R_68K_32; in getRelocType() 139 return IsPCRel ? ELF::R_68K_PC16 : ELF::R_68K_16; in getRelocType() 141 return IsPCRel ? ELF::R_68K_PC8 : ELF::R_68K_8; in getRelocType() 155 assert(!IsPCRel); in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64MachObjectWriter.cpp | 150 unsigned IsPCRel = Fixup.isPCRel(); in recordRelocation() local 164 if (IsPCRel) in recordRelocation() 204 if (IsPCRel) { in recordRelocation() 224 IsPCRel = 1; in recordRelocation() 227 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation() 237 if (IsPCRel) { in recordRelocation() 280 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation() 345 if (IsPCRel) in recordRelocation() 369 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation() 376 IsPCRel = 0; in recordRelocation() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldImpl.h | 149 bool IsPCRel : 1; variable 156 SymOffset(0), Size(0), IsPCRel(false), IsTargetThumbFunc(false) {} in RelocationEntry() 161 SymOffset(symoffset), Size(0), IsPCRel(false), in RelocationEntry() 165 bool IsPCRel, unsigned Size) in RelocationEntry() argument 167 SymOffset(0), Size(Size), IsPCRel(IsPCRel), IsTargetThumbFunc(false) {} in RelocationEntry() 171 uint64_t SectionBOffset, bool IsPCRel, unsigned Size) in RelocationEntry() argument 173 SectionID(id), RelType(type), Size(Size), IsPCRel(IsPCRel), in RelocationEntry() 181 uint64_t SectionBOffset, bool IsPCRel, unsigned Size, in RelocationEntry() argument 184 SectionID(id), RelType(type), Size(Size), IsPCRel(IsPCRel), in RelocationEntry()
|
| H A D | RuntimeDyldMachO.h | 67 bool IsPCRel = Obj.getAnyRelocationPCRel(RelInfo); in getRelocationEntry() local 73 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
| H A D | AMDGPUELFObjectWriter.cpp | 26 bool IsPCRel) const override; 39 bool IsPCRel) const { in getRelocType() 74 return IsPCRel ? ELF::R_AMDGPU_REL32 : ELF::R_AMDGPU_ABS32; in getRelocType() 76 return IsPCRel ? ELF::R_AMDGPU_REL64 : ELF::R_AMDGPU_ABS64; in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMMachObjectWriter.cpp | 147 unsigned IsPCRel = Fixup.isPCRel(); in recordARMScatteredHalfRelocation() local 224 (IsPCRel << 30) | in recordARMScatteredHalfRelocation() 235 (IsPCRel << 30) | in recordARMScatteredHalfRelocation() 254 unsigned IsPCRel = Fixup.isPCRel(); in recordARMScatteredRelocation() local 294 (IsPCRel << 30) | in recordARMScatteredRelocation() 304 (IsPCRel << 30) | in recordARMScatteredRelocation() 361 unsigned IsPCRel = Fixup.isPCRel(); in recordRelocation() local 393 if (IsPCRel && RelocType == MachO::ARM_RELOC_VANILLA) in recordRelocation() 447 if (IsPCRel) in recordRelocation() 458 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
|
| H A D | ARMELFObjectWriter.cpp | 37 bool IsPCRel) const override; 77 bool IsPCRel) const { in getRelocType() 107 if (IsPCRel) { in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/ |
| H A D | LoongArchELFObjectWriter.cpp | 34 bool IsPCRel) const override; 49 bool IsPCRel) const { in getRelocType() 85 return IsPCRel ? ELF::R_LARCH_32_PCREL : ELF::R_LARCH_32; in getRelocType() 87 return IsPCRel ? ELF::R_LARCH_64_PCREL : ELF::R_LARCH_64; in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldMachOAArch64.h | 309 (RE.Size == 2 && RE.IsPCRel) || (RE.Size == 3 && !RE.IsPCRel); in processRelocationRef() 336 } else if (!IsExtern && RE.IsPCRel) in processRelocationRef() 367 assert(!RE.IsPCRel && "PCRel and ARM64_RELOC_UNSIGNED not supported"); in resolveRelocation() 378 assert(((RE.Size == 2 && RE.IsPCRel) || (RE.Size == 3 && !RE.IsPCRel)) && in resolveRelocation() 384 RE.IsPCRel ? (RE.Addend - RE.Offset) : (Value + RE.Addend); in resolveRelocation() 390 assert(RE.IsPCRel && "not PCRel and ARM64_RELOC_BRANCH26 not supported"); in resolveRelocation() 399 assert(RE.IsPCRel && "not PCRel and ARM64_RELOC_PAGE21 not supported"); in resolveRelocation() 409 assert(!RE.IsPCRel && "PCRel and ARM64_RELOC_PAGEOFF21 not supported"); in resolveRelocation() 475 RE.IsPCRel, RE.Size); in processGOTRelocation()
|
| H A D | RuntimeDyldMachOI386.h | 84 if (RE.IsPCRel) in processRelocationRef() 103 if (RE.IsPCRel) { in resolveRelocation() 155 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processSECTDIFFRelocation() local 203 IsPCRel, Size); in processSECTDIFFRelocation()
|
| H A D | RuntimeDyldMachOARM.h | 178 if (RE.IsPCRel) in processRelocationRef() 209 if (RE.IsPCRel) { in resolveRelocation() 339 RE.IsPCRel, RE.Size); in processBranchRelocation() 361 bool IsPCRel = MachO.getAnyRelocationPCRel(RE); in processHALFSECTDIFFRelocation() local 418 SectionAOffset, SectionBID, SectionBOffset, IsPCRel, in processHALFSECTDIFFRelocation()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCXCOFFObjectWriter.cpp | 29 bool IsPCRel) const override; 42 const MCValue &Target, const MCFixup &Fixup, bool IsPCRel) const { in getRelocTypeAndSignSize() 50 const uint8_t EncodedSignednessIndicator = IsPCRel ? SignBitMask : 0u; in getRelocTypeAndSignSize() 78 if (IsPCRel) in getRelocTypeAndSignSize()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/ |
| H A D | SparcELFObjectWriter.cpp | 36 bool IsPCRel) const override; 44 bool IsPCRel) const { in getRelocType() 80 if (IsPCRel) { in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVELFObjectWriter.cpp | 38 bool IsPCRel) const override; 50 bool IsPCRel) const { in getRelocType() 77 if (IsPCRel) { in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/ |
| H A D | VEELFObjectWriter.cpp | 33 bool IsPCRel) const override; 41 bool IsPCRel) const { in getRelocType() 58 if (IsPCRel) { in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/ |
| H A D | XtensaELFObjectWriter.cpp | 35 bool IsPCRel) const override; 48 bool IsPCRel) const { in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/ |
| H A D | BPFELFObjectWriter.cpp | 29 bool IsPCRel) const override; 40 bool IsPCRel) const { in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/ |
| H A D | CSKYELFObjectWriter.cpp | 31 bool IsPCRel) const override; 39 bool IsPCRel) const { in getRelocType() 58 if (IsPCRel) { in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/ |
| H A D | MipsELFObjectWriter.cpp | 53 bool IsPCRel) const override; 157 bool IsPCRel) const { in getRelocType() 184 return IsPCRel ? ELF::R_MIPS_PC16 : ELF::R_MIPS_16; in getRelocType() 187 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32; in getRelocType() 190 return IsPCRel in getRelocType() 195 if (IsPCRel) { in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonELFObjectWriter.cpp | 32 bool IsPCRel) const override; 43 bool IsPCRel) const { in getRelocType() 84 return IsPCRel ? ELF::R_HEX_32_PCREL : ELF::R_HEX_32; in getRelocType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRELFObjectWriter.cpp | 30 bool IsPCRel) const override; 38 bool IsPCRel) const { in getRelocType()
|