Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86ELFObjectWriter.cpp34 const MCFixup &Fixup, bool IsPCRel) const override;
51 bool &IsPCRel) { in getType64() argument
59 IsPCRel = true; in getType64()
65 if (Modifier == MCSymbolRefExpr::VK_None && !IsPCRel) in getType64()
70 IsPCRel = true; in getType64()
105 X86_64RelType Type, bool IsPCRel, in getRelocType64() argument
118 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64()
120 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64()
124 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64()
126 return IsPCRel ? ELF::R_X86_64_PC8 : ELF::R_X86_64_8; in getRelocType64()
[all …]
H A DX86MachObjectWriter.cpp98 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation() local
114 if (IsPCRel) { in RecordX86_64Relocation()
131 if (IsPCRel) { in RecordX86_64Relocation()
155 if (IsPCRel) { in RecordX86_64Relocation()
199 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in RecordX86_64Relocation()
239 if (IsPCRel) in RecordX86_64Relocation()
263 if (IsPCRel) { in RecordX86_64Relocation()
321 IsPCRel = 1; in RecordX86_64Relocation()
348 MRE.r_word1 = (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | in RecordX86_64Relocation()
362 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordScatteredRelocation() local
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCFixup.h109 static MCFixupKind getKindForSize(unsigned Size, bool IsPCRel) { in getKindForSize() argument
113 return IsPCRel ? FK_PCRel_1 : FK_Data_1; in getKindForSize()
115 return IsPCRel ? FK_PCRel_2 : FK_Data_2; in getKindForSize()
117 return IsPCRel ? FK_PCRel_4 : FK_Data_4; in getKindForSize()
119 return IsPCRel ? FK_PCRel_8 : FK_Data_8; in getKindForSize()
125 getKindForSizeInBits(unsigned Size,bool IsPCRel) getKindForSizeInBits() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCObjectWriter.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/
H A DM68kELFObjectWriter.cpp36 const MCFixup &Fixup, bool IsPCRel) const override;
48 getType(unsigned Kind, MCSymbolRefExpr::VariantKind &Modifier, bool &IsPCRel) { in getType() argument
66 bool IsPCRel) const { in getRelocType()
69 M68kRelType Type = getType(Kind, Modifier, IsPCRel); in getRelocType()
127 return IsPCRel ? ELF::R_68K_PC32 : ELF::R_68K_32; in getRelocType()
129 return IsPCRel ? ELF::R_68K_PC16 : ELF::R_68K_16; in getRelocType()
131 return IsPCRel ? ELF::R_68K_PC8 : ELF::R_68K_8; in getRelocType()
145 assert(!IsPCRel); in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp151 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() local
165 if (IsPCRel) in recordRelocation()
207 if (IsPCRel) { in recordRelocation()
231 IsPCRel = 1; in recordRelocation()
234 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
246 if (IsPCRel) { in recordRelocation()
293 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
358 if (IsPCRel) in recordRelocation()
383 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
390 IsPCRel = 0; in recordRelocation()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldImpl.h148 bool IsPCRel : 1; variable
155 SymOffset(0), Size(0), IsPCRel(false), IsTargetThumbFunc(false) {} in RelocationEntry()
160 SymOffset(symoffset), Size(0), IsPCRel(false), in RelocationEntry()
164 bool IsPCRel, unsigned Size) in RelocationEntry() argument
166 SymOffset(0), Size(Size), IsPCRel(IsPCRel), IsTargetThumbFunc(false) {} in RelocationEntry()
170 uint64_t SectionBOffset, bool IsPCRel, unsigned Size) in RelocationEntry() argument
172 SectionID(id), RelType(type), Size(Size), IsPCRel(IsPCRel), in RelocationEntry()
180 uint64_t SectionBOffset, bool IsPCRel, unsigned Size, in RelocationEntry() argument
183 SectionID(id), RelType(type), Size(Size), IsPCRel(IsPCRel), in RelocationEntry()
H A DRuntimeDyldMachO.h72 bool IsPCRel = Obj.getAnyRelocationPCRel(RelInfo); in getRelocationEntry() local
78 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp147 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordARMScatteredHalfRelocation() local
226 (IsPCRel << 30) | in recordARMScatteredHalfRelocation()
237 (IsPCRel << 30) | in recordARMScatteredHalfRelocation()
257 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordARMScatteredRelocation() local
298 (IsPCRel << 30) | in recordARMScatteredRelocation()
308 (IsPCRel << 30) | in recordARMScatteredRelocation()
365 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() local
399 if (IsPCRel && RelocType == MachO::ARM_RELOC_VANILLA) in recordRelocation()
445 if (IsPCRel) in recordRelocation()
456 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
H A DARMELFObjectWriter.cpp32 bool IsPCRel, MCContext &Ctx) const;
40 const MCFixup &Fixup, bool IsPCRel) const override;
76 bool IsPCRel) const { in getRelocType()
77 return GetRelocTypeInner(Target, Fixup, IsPCRel, Ctx); in getRelocType()
82 bool IsPCRel, in GetRelocTypeInner() argument
97 if (IsPCRel) { in GetRelocTypeInner()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchELFObjectWriter.cpp34 const MCFixup &Fixup, bool IsPCRel) const override; in LoongArchELFObjectWriter()
50 bool IsPCRel) const { in getRelocType()
68 return IsPCRel ? ELF::R_LARCH_32_PCREL : ELF::R_LARCH_32; in getRelocType()
70 return IsPCRel ? ELF::R_LARCH_64_PCREL : ELF::R_LARCH_64; in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUELFObjectWriter.cpp25 const MCFixup &Fixup, bool IsPCRel) const override;
39 bool IsPCRel) const { in getRelocType()
78 return IsPCRel ? ELF::R_AMDGPU_REL32 : ELF::R_AMDGPU_ABS32; in getRelocType()
80 return IsPCRel ? ELF::R_AMDGPU_REL64 : ELF::R_AMDGPU_ABS64; 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()
52 const uint8_t EncodedSignednessIndicator = IsPCRel ? SignBitMask : 0u; in getRelocTypeAndSignSize()
80 if (IsPCRel) in getRelocTypeAndSignSize()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/
H A DXtensaELFObjectWriter.cpp34 const MCFixup &Fixup, bool IsPCRel) const override;
48 bool IsPCRel) const { in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEELFObjectWriter.cpp32 const MCFixup &Fixup, bool IsPCRel) const override;
41 bool IsPCRel) const { in getRelocType()
47 if (IsPCRel) { in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYELFObjectWriter.cpp29 const MCFixup &Fixup, bool IsPCRel) const override;
37 bool IsPCRel) const { in getRelocType()
43 if (IsPCRel) { in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFELFObjectWriter.cpp29 const MCFixup &Fixup, bool IsPCRel) const override;
40 bool IsPCRel) const { in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVELFObjectWriter.cpp39 const MCFixup &Fixup, bool IsPCRel) const override;
52 bool IsPCRel) const { in getRelocType()
58 if (IsPCRel) { in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp35 const MCFixup &Fixup, bool IsPCRel) const override;
45 bool IsPCRel) const { in getRelocType()
55 if (IsPCRel) { in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp64 const MCFixup &Fixup, bool IsPCRel) const override;
220 bool IsPCRel) const { in getRelocType()
235 return IsPCRel ? ELF::R_MIPS_PC16 : ELF::R_MIPS_16; in getRelocType()
238 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32; in getRelocType()
241 return IsPCRel in getRelocType()
246 if (IsPCRel) { in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyAsmBackend.cpp49 uint64_t Value, bool IsPCRel,
92 uint64_t Value, bool IsPCRel, in applyFixup() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonELFObjectWriter.cpp33 MCFixup const &Fixup, bool IsPCRel) const override;
45 bool IsPCRel) const { in getRelocType()
72 return IsPCRel ? ELF::R_HEX_32_PCREL : ELF::R_HEX_32; in getRelocType()

12