Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/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.cpp106 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation() local
123 if (IsPCRel) { in RecordX86_64Relocation()
140 if (IsPCRel) { in RecordX86_64Relocation()
164 if (IsPCRel) { in RecordX86_64Relocation()
208 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in RecordX86_64Relocation()
249 if (IsPCRel) in RecordX86_64Relocation()
273 if (IsPCRel) { in RecordX86_64Relocation()
331 IsPCRel = 1; in RecordX86_64Relocation()
358 MRE.r_word1 = (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | in RecordX86_64Relocation()
373 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordScatteredRelocation() local
[all …]
/openbsd-src/gnu/llvm/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 static MCFixupKind getKindForSizeInBits(unsigned Size, bool IsPCRel) { in getKindForSizeInBits() argument
130 assert(!IsPCRel && "Invalid pc-relative fixup size!"); in getKindForSizeInBits()
133 return IsPCRel ? FK_PCRel_1 : FK_Data_1; in getKindForSizeInBits()
135 return IsPCRel ? FK_PCRel_2 : FK_Data_2; in getKindForSizeInBits()
137 return IsPCRel ? FK_PCRel_4 : FK_Data_4; in getKindForSizeInBits()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCObjectWriter.cpp33 const MCFixup &Fixup, bool IsPCRel) const override;
121 bool IsPCRel) const { in getRelocType()
128 if (IsPCRel) in getRelocType()
133 assert(!IsPCRel && "NTPOFF shouldn't be PC-relative"); in getRelocType()
137 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType()
142 assert(!IsPCRel && "DTPOFF shouldn't be PC-relative"); in getRelocType()
146 assert(!IsPCRel && "TLSLDM shouldn't be PC-relative"); in getRelocType()
150 assert(!IsPCRel && "TLSGD shouldn't be PC-relative"); in getRelocType()
154 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType()
159 assert(IsPCRel && "@PLT shouldt be PC-relative"); in getRelocType()
/openbsd-src/gnu/llvm/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()
76 return IsPCRel ? ELF::R_68K_PC32 : ELF::R_68K_32; in getRelocType()
78 return IsPCRel ? ELF::R_68K_PC16 : ELF::R_68K_16; in getRelocType()
80 return IsPCRel ? ELF::R_68K_PC8 : ELF::R_68K_8; in getRelocType()
94 assert(!IsPCRel); in getRelocType()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp155 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() local
169 if (IsPCRel) in recordRelocation()
211 if (IsPCRel) { in recordRelocation()
235 IsPCRel = 1; in recordRelocation()
238 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
250 if (IsPCRel) { in recordRelocation()
295 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
360 if (IsPCRel) in recordRelocation()
385 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
392 IsPCRel = 0; in recordRelocation()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldImpl.h145 bool IsPCRel; variable
155 SymOffset(0), IsPCRel(false), Size(0), IsTargetThumbFunc(false) {} in RelocationEntry()
160 SymOffset(symoffset), IsPCRel(false), Size(0), in RelocationEntry()
164 bool IsPCRel, unsigned Size) in RelocationEntry() argument
166 SymOffset(0), IsPCRel(IsPCRel), Size(Size), IsTargetThumbFunc(false) {} in RelocationEntry()
170 uint64_t SectionBOffset, bool IsPCRel, unsigned Size) in RelocationEntry() argument
172 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
180 uint64_t SectionBOffset, bool IsPCRel, unsigned Size, in RelocationEntry() argument
183 Addend(SectionAOffset - SectionBOffset + addend), 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()
/openbsd-src/gnu/llvm/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()
76 if (IsPCRel) in getRelocTypeAndSignSize()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp157 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation() local
236 (IsPCRel << 30) | in RecordARMScatteredHalfRelocation()
247 (IsPCRel << 30) | in RecordARMScatteredHalfRelocation()
272 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredRelocation() local
313 (IsPCRel << 30) | in RecordARMScatteredRelocation()
323 (IsPCRel << 30) | in RecordARMScatteredRelocation()
381 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() local
417 if (IsPCRel && RelocType == MachO::ARM_RELOC_VANILLA) in recordRelocation()
462 if (IsPCRel) in recordRelocation()
473 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
H A DARMELFObjectWriter.cpp31 bool IsPCRel, MCContext &Ctx) const;
39 const MCFixup &Fixup, bool IsPCRel) const override;
74 bool IsPCRel) const { in getRelocType()
75 return GetRelocTypeInner(Target, Fixup, IsPCRel, Ctx); in getRelocType()
80 bool IsPCRel, in GetRelocTypeInner() argument
87 if (IsPCRel) { in GetRelocTypeInner()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchELFObjectWriter.cpp29 const MCFixup &Fixup, bool IsPCRel) const override;
42 bool IsPCRel) const { in getRelocType()
60 return IsPCRel ? ELF::R_LARCH_32_PCREL : ELF::R_LARCH_32; in getRelocType()
/openbsd-src/gnu/llvm/llvm/lib/Target/Xtensa/MCTargetDesc/
H A DXtensaELFObjectWriter.cpp34 const MCFixup &Fixup, bool IsPCRel) const override;
48 bool IsPCRel) const { in getRelocType()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFELFObjectWriter.cpp29 const MCFixup &Fixup, bool IsPCRel) const override;
40 bool IsPCRel) const { in getRelocType()
/openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp33 const MCFixup &Fixup, bool IsPCRel) const override;
44 bool IsPCRel) const { in getRelocType()
54 if (IsPCRel) { in getRelocType()
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVELFObjectWriter.cpp38 const MCFixup &Fixup, bool IsPCRel) const override;
51 bool IsPCRel) const { in getRelocType()
57 if (IsPCRel) { in getRelocType()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUELFObjectWriter.cpp26 const MCFixup &Fixup, bool IsPCRel) const override;
42 bool IsPCRel) const { in getRelocType()
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyAsmBackend.cpp49 uint64_t Value, bool IsPCRel,
99 uint64_t Value, bool IsPCRel, in applyFixup() argument
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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