Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/MCTargetDesc/
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()
99 X86_64RelType Type, bool IsPCRel, in getRelocType64() argument
112 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64()
114 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64()
118 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64()
120 return IsPCRel ? ELF::R_X86_64_PC8 : ELF::R_X86_64_8; in getRelocType64()
[all …]
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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DMCFixup.h137 static MCFixupKind getKindForSize(unsigned Size, bool IsPCRel) { in getKindForSize() argument
141 return IsPCRel ? FK_PCRel_1 : FK_Data_1; in getKindForSize()
143 return IsPCRel ? FK_PCRel_2 : FK_Data_2; in getKindForSize()
145 return IsPCRel ? FK_PCRel_4 : FK_Data_4; in getKindForSize()
147 return IsPCRel ? FK_PCRel_8 : FK_Data_8; in getKindForSize()
153 static MCFixupKind getKindForSizeInBits(unsigned Size, bool IsPCRel) { in getKindForSizeInBits() argument
158 assert(!IsPCRel && "Invalid pc-relative fixup size!"); in getKindForSizeInBits()
161 return IsPCRel ? FK_PCRel_1 : FK_Data_1; in getKindForSizeInBits()
163 return IsPCRel ? FK_PCRel_2 : FK_Data_2; in getKindForSizeInBits()
165 return IsPCRel ? FK_PCRel_4 : FK_Data_4; in getKindForSizeInBits()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/MCTargetDesc/
DSystemZMCObjectWriter.cpp33 const MCFixup &Fixup, bool IsPCRel) const override;
119 bool IsPCRel) const { in getRelocType()
124 if (IsPCRel) in getRelocType()
129 assert(!IsPCRel && "NTPOFF shouldn't be PC-relative"); in getRelocType()
133 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType()
138 assert(!IsPCRel && "DTPOFF shouldn't be PC-relative"); in getRelocType()
142 assert(!IsPCRel && "TLSLDM shouldn't be PC-relative"); in getRelocType()
146 assert(!IsPCRel && "TLSGD shouldn't be PC-relative"); in getRelocType()
150 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType()
155 assert(IsPCRel && "@PLT shouldt be PC-relative"); in getRelocType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMachObjectWriter.cpp85 const bool IsPCRel) { in getRelocType() argument
91 if (IsPCRel) { // relative to PC in getRelocType()
147 const unsigned IsPCRel, const unsigned Log2Size, in makeRelocationInfo() argument
156 (IsPCRel << 7) | // was << 24 in makeRelocationInfo()
165 const unsigned Log2Size, const unsigned IsPCRel, in makeScatteredRelocationInfo() argument
170 (IsPCRel << 30) | MachO::R_SCATTERED); in makeScatteredRelocationInfo()
197 const unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, FK); in recordScatteredRelocation() local
198 const unsigned Type = getRelocType(Target, FK, IsPCRel); in recordScatteredRelocation()
280 Log2Size, IsPCRel, Value2); in recordScatteredRelocation()
294 makeScatteredRelocationInfo(MRE, FixupOffset, Type, Log2Size, IsPCRel, Value); in recordScatteredRelocation()
[all …]
DPPCELFObjectWriter.cpp29 const MCFixup &Fixup, bool IsPCRel) const override;
75 bool IsPCRel) const { in getRelocType()
80 if (IsPCRel) { in getRelocType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/MCTargetDesc/
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()
381 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
388 IsPCRel = 0; in recordRelocation()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldImpl.h146 bool IsPCRel; variable
156 SymOffset(0), IsPCRel(false), Size(0), IsTargetThumbFunc(false) {} in RelocationEntry()
161 SymOffset(symoffset), IsPCRel(false), Size(0), in RelocationEntry()
165 bool IsPCRel, unsigned Size) in RelocationEntry() argument
167 SymOffset(0), IsPCRel(IsPCRel), Size(Size), IsTargetThumbFunc(false) {} in RelocationEntry()
171 uint64_t SectionBOffset, bool IsPCRel, unsigned Size) in RelocationEntry() argument
173 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
181 uint64_t SectionBOffset, bool IsPCRel, unsigned Size, in RelocationEntry() argument
184 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
DRuntimeDyldMachO.h72 bool IsPCRel = Obj.getAnyRelocationPCRel(RelInfo); in getRelocationEntry() local
78 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry()
DRuntimeDyldMachO.cpp66 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processScatteredVANILLA() local
87 RelocationEntry R(SectionID, Offset, RelocType, Addend, IsPCRel, Size); in processScatteredVANILLA()
158 << " isPCRel: " << RE.IsPCRel << " MachoType: " << RE.RelType in dumpRelocationToResolve()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/MCTargetDesc/
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()
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
84 if (IsPCRel) { in GetRelocTypeInner()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
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()
DRuntimeDyldMachOI386.h85 if (RE.IsPCRel) in processRelocationRef()
104 if (RE.IsPCRel) { in resolveRelocation()
156 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processSECTDIFFRelocation() local
204 IsPCRel, Size); in processSECTDIFFRelocation()
DRuntimeDyldMachOARM.h179 if (RE.IsPCRel) in processRelocationRef()
210 if (RE.IsPCRel) { in resolveRelocation()
340 RE.IsPCRel, RE.Size); in processBranchRelocation()
362 bool IsPCRel = MachO.getAnyRelocationPCRel(RE); in processHALFSECTDIFFRelocation() local
419 SectionAOffset, SectionBID, SectionBOffset, IsPCRel, in processHALFSECTDIFFRelocation()
DRuntimeDyldMachOX86_64.h59 if (!IsExtern && RE.IsPCRel) in processRelocationRef()
93 if (RE.IsPCRel) { in resolveRelocation()
132 assert(RE.IsPCRel); in processGOTRelocation()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/MCTargetDesc/
DRISCVELFObjectWriter.cpp38 const MCFixup &Fixup, bool IsPCRel) const override;
51 bool IsPCRel) const { in getRelocType()
55 if (IsPCRel) { in getRelocType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/MCTargetDesc/
DSparcELFObjectWriter.cpp33 const MCFixup &Fixup, bool IsPCRel) const override;
44 bool IsPCRel) const { in getRelocType()
51 if (IsPCRel) { in getRelocType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/MCTargetDesc/
DBPFELFObjectWriter.cpp29 const MCFixup &Fixup, bool IsPCRel) const override;
40 bool IsPCRel) const { in getRelocType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/MCTargetDesc/
DAMDGPUELFObjectWriter.cpp30 const MCFixup &Fixup, bool IsPCRel) const override;
46 bool IsPCRel) const { in getRelocType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/MCTargetDesc/
DWebAssemblyAsmBackend.cpp49 uint64_t Value, bool IsPCRel,
105 uint64_t Value, bool IsPCRel, in applyFixup() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/
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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/MCTargetDesc/
DAVRELFObjectWriter.cpp32 bool IsPCRel) const override;
41 bool IsPCRel) const { in getRelocType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/MCTargetDesc/
DMipsELFObjectWriter.cpp64 const MCFixup &Fixup, bool IsPCRel) const override;
220 bool IsPCRel) const { in getRelocType()
233 return IsPCRel ? ELF::R_MIPS_PC16 : ELF::R_MIPS_16; in getRelocType()
236 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32; in getRelocType()
239 if (IsPCRel) { in getRelocType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCObjectWriter.cpp47 bool InSet, bool IsPCRel) const { in isSymbolRefDifferenceFullyResolvedImpl()

12