Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/MC/
H A DMCFixup.h141 static MCFixupKind getKindForSize(unsigned Size, bool IsPCRel) { in getKindForSize() argument
145 return IsPCRel ? FK_PCRel_1 : FK_Data_1; in getKindForSize()
147 return IsPCRel ? FK_PCRel_2 : FK_Data_2; in getKindForSize()
149 return IsPCRel ? FK_PCRel_4 : FK_Data_4; in getKindForSize()
151 return IsPCRel ? FK_PCRel_8 : FK_Data_8; in getKindForSize()
157 static MCFixupKind getKindForSizeInBits(unsigned Size, bool IsPCRel) { in getKindForSizeInBits() argument
162 assert(!IsPCRel && "Invalid pc-relative fixup size!"); in getKindForSizeInBits()
165 return IsPCRel ? FK_PCRel_1 : FK_Data_1; in getKindForSizeInBits()
167 return IsPCRel ? FK_PCRel_2 : FK_Data_2; in getKindForSizeInBits()
169 return IsPCRel ? FK_PCRel_4 : FK_Data_4; in getKindForSizeInBits()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/MCTargetDesc/
H A 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()
/netbsd-src/external/apache2/llvm/dist/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()
H A DM68kMCCodeEmitter.cpp138 bool IsPCRel = Desc.OpInfo[MIOpIdx].OperandType == MCOI::OPERAND_PCREL; in encodeReg() local
142 if (IsPCRel) { in encodeReg()
199 bool IsPCRel = Desc.OpInfo[MIOpIdx].OperandType == MCOI::OPERAND_PCREL; in encodeImm() local
204 if (IsPCRel && ThisWord == 0) in encodeImm()
245 if (IsPCRel) { in encodeImm()
262 if (IsPCRel && Addendum != 0) { in encodeImm()
268 FixOffset, Expr, getFixupForSize(Size, IsPCRel), MI.getLoc())); in encodeImm()
285 FixOffset, Expr, getFixupForSize(Size, IsPCRel), MI.getLoc())); in encodeImm()
/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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.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()
H A 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()
H A DRuntimeDyldMachOX86_64.h59 if (!IsExtern && RE.IsPCRel) in processRelocationRef()
93 if (RE.IsPCRel) { in resolveRelocation()
132 assert(RE.IsPCRel); in processGOTRelocation()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/VE/MCTargetDesc/
H A DVEELFObjectWriter.cpp31 const MCFixup &Fixup, bool IsPCRel) const override;
40 bool IsPCRel) const { in getRelocType()
46 if (IsPCRel) { in getRelocType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYELFObjectWriter.cpp27 const MCFixup &Fixup, bool IsPCRel) const override;
35 bool IsPCRel) const { in getRelocType()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp33 const MCFixup &Fixup, bool IsPCRel) const override;
44 bool IsPCRel) const { in getRelocType()
51 if (IsPCRel) { in getRelocType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFELFObjectWriter.cpp29 const MCFixup &Fixup, bool IsPCRel) const override;
40 bool IsPCRel) const { in getRelocType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/MCTargetDesc/
H A 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 return IsPCRel in getRelocType()
244 if (IsPCRel) { in getRelocType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUELFObjectWriter.cpp26 const MCFixup &Fixup, bool IsPCRel) const override;
42 bool IsPCRel) const { in getRelocType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyAsmBackend.cpp49 uint64_t Value, bool IsPCRel,
98 uint64_t Value, bool IsPCRel, in applyFixup() argument
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRELFObjectWriter.cpp33 bool IsPCRel) const override;
42 bool IsPCRel) const { in getRelocType()

12