Home
last modified time | relevance | path

Searched refs:IsPCRel (Results 1 – 25 of 45) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86ELFObjectWriter.cpp37 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 DX86MachObjectWriter.cpp102 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 DSystemZELFObjectWriter.cpp36 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 DSystemZMCObjectWriter.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/
H A DM68kELFObjectWriter.cpp37 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 DAArch64MachObjectWriter.cpp150 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 DRuntimeDyldImpl.h149 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 DRuntimeDyldMachO.h67 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 DAMDGPUELFObjectWriter.cpp26 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 DARMMachObjectWriter.cpp147 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 DARMELFObjectWriter.cpp37 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 DLoongArchELFObjectWriter.cpp34 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 DRuntimeDyldMachOAArch64.h309 (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 DRuntimeDyldMachOI386.h84 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 DRuntimeDyldMachOARM.h178 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 DPPCXCOFFObjectWriter.cpp29 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 DSparcELFObjectWriter.cpp36 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 DRISCVELFObjectWriter.cpp38 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 DVEELFObjectWriter.cpp33 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 DXtensaELFObjectWriter.cpp35 bool IsPCRel) const override;
48 bool IsPCRel) const { in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFELFObjectWriter.cpp29 bool IsPCRel) const override;
40 bool IsPCRel) const { in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYELFObjectWriter.cpp31 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 DMipsELFObjectWriter.cpp53 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 DHexagonELFObjectWriter.cpp32 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 DAVRELFObjectWriter.cpp30 bool IsPCRel) const override;
38 bool IsPCRel) const { in getRelocType()

12