Home
last modified time | relevance | path

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

12

/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()
108 X86_64RelType Type, bool IsPCRel, in getRelocType64()
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()
129 return IsPCRel in getRelocType64()
105 getRelocType64(MCContext & Ctx,SMLoc Loc,MCSymbolRefExpr::VariantKind Modifier,X86_64RelType Type,bool IsPCRel,MCFixupKind Kind) getRelocType64() argument
235 getRelocType32(MCContext & Ctx,SMLoc Loc,MCSymbolRefExpr::VariantKind Modifier,X86_32RelType Type,bool IsPCRel,MCFixupKind Kind) getRelocType32() argument
[all...]
H A DX86MachObjectWriter.cpp104 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
120 if (IsPCRel) { in RecordX86_64Relocation()
137 if (IsPCRel) { in RecordX86_64Relocation()
161 if (IsPCRel) { in RecordX86_64Relocation()
205 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in RecordX86_64Relocation()
245 if (IsPCRel) in RecordX86_64Relocation()
269 if (IsPCRel) { in RecordX86_64Relocation()
327 IsPCRel = 1; in RecordX86_64Relocation()
354 MRE.r_word1 = (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | in recordScatteredRelocation()
368 unsigned IsPCRel in recordScatteredRelocation()
98 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); RecordX86_64Relocation() local
362 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); recordScatteredRelocation() local
464 unsigned IsPCRel = 0; recordTLVPRelocation() local
497 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); RecordX86Relocation() local
[all...]
/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZELFObjectWriter.cpp35 const MCFixup &Fixup, bool IsPCRel) const override;
153 bool IsPCRel) const { in getRelocType()
161 if (IsPCRel) in getRelocType()
166 assert(!IsPCRel && "NTPOFF shouldn't be PC-relative"); in getRelocType()
170 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType()
176 assert(!IsPCRel && "DTPOFF shouldn't be PC-relative"); in getRelocType()
180 assert(!IsPCRel && "TLSLDM shouldn't be PC-relative"); in getRelocType()
184 assert(!IsPCRel && "TLSGD shouldn't be PC-relative"); in getRelocType()
189 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType()
195 assert(IsPCRel in getRelocType()
[all...]
/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()
/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()
/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp152 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation()
166 if (IsPCRel) in recordRelocation()
208 if (IsPCRel) { in recordRelocation()
232 IsPCRel = 1; in recordRelocation()
235 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
247 if (IsPCRel) { in recordRelocation()
294 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
359 if (IsPCRel) in recordRelocation()
384 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
391 IsPCRel in recordRelocation()
151 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); recordRelocation() local
[all...]
/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldImpl.h149 bool IsPCRel : 1;
156 SymOffset(0), Size(0), IsPCRel(false), IsTargetThumbFunc(false) {}
161 SymOffset(symoffset), Size(0), IsPCRel(false), in RelocationEntry()
165 bool IsPCRel, unsigned Size) in RelocationEntry()
167 SymOffset(0), Size(Size), IsPCRel(IsPCRel), IsTargetThumbFunc(false) {}
171 uint64_t SectionBOffset, bool IsPCRel, unsigned Size) in RelocationEntry()
173 SectionID(id), RelType(type), Size(Size), IsPCRel(IsPCRel), in RelocationEntry()
181 uint64_t SectionBOffset, bool IsPCRel, unsigne in RelocationEntry()
148 bool IsPCRel : 1; global() variable
164 RelocationEntry(unsigned id,uint64_t offset,uint32_t type,int64_t addend,bool IsPCRel,unsigned Size) RelocationEntry() argument
170 RelocationEntry(unsigned id,uint64_t offset,uint32_t type,int64_t addend,unsigned SectionA,uint64_t SectionAOffset,unsigned SectionB,uint64_t SectionBOffset,bool IsPCRel,unsigned Size) RelocationEntry() argument
180 RelocationEntry(unsigned id,uint64_t offset,uint32_t type,int64_t addend,unsigned SectionA,uint64_t SectionAOffset,unsigned SectionB,uint64_t SectionBOffset,bool IsPCRel,unsigned Size,bool IsTargetThumbFunc) RelocationEntry() argument
[all...]
H A DRuntimeDyldMachO.h67 bool IsPCRel = Obj.getAnyRelocationPCRel(RelInfo); in getRelocationEntry()
73 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry()
72 bool IsPCRel = Obj.getAnyRelocationPCRel(RelInfo); getRelocationEntry() local
/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp145 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordARMScatteredHalfRelocation()
224 (IsPCRel << 30) | in recordARMScatteredHalfRelocation()
235 (IsPCRel << 30) | in recordARMScatteredHalfRelocation()
255 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordARMScatteredRelocation()
296 (IsPCRel << 30) | in recordARMScatteredRelocation()
306 (IsPCRel << 30) | in recordARMScatteredRelocation()
363 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation()
397 if (IsPCRel && RelocType == MachO::ARM_RELOC_VANILLA) in recordRelocation()
443 if (IsPCRel) in recordRelocation()
454 (Index << 0) | (IsPCRel << 2 in recordRelocation()
147 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); recordARMScatteredHalfRelocation() local
257 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); recordARMScatteredRelocation() local
365 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); recordRelocation() local
[all...]
H A DARMELFObjectWriter.cpp31 bool IsPCRel, MCContext &Ctx) const;
39 const MCFixup &Fixup, bool IsPCRel) const override;
73 bool IsPCRel) const {
74 return GetRelocTypeInner(Target, Fixup, IsPCRel, Ctx); in getRelocType()
79 bool IsPCRel,
94 if (IsPCRel) { in GetRelocTypeInner()
82 GetRelocTypeInner(const MCValue & Target,const MCFixup & Fixup,bool IsPCRel,MCContext & Ctx) const GetRelocTypeInner() argument
/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()
/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchELFObjectWriter.cpp34 const MCFixup &Fixup, bool IsPCRel) const override;
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()
/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()
/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCXCOFFObjectWriter.cpp28 bool IsPCRel) const override;
41 const MCValue &Target, const MCFixup &Fixup, bool IsPCRel) const { in getRelocTypeAndSignSize()
48 // based on similar property of IsPCRel. So we will do the same here. in getRelocTypeAndSignSize()
51 const uint8_t EncodedSignednessIndicator = IsPCRel ? SignBitMask : 0u; in getRelocTypeAndSignSize()
79 if (IsPCRel) in getRelocTypeAndSignSize()
/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()
/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()
/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/
H A DXtensaELFObjectWriter.cpp34 const MCFixup &Fixup, bool IsPCRel) const override;
48 bool IsPCRel) const { in getRelocType()
/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()
/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFELFObjectWriter.cpp29 const MCFixup &Fixup, bool IsPCRel) const override;
40 bool IsPCRel) const { in getRelocType()
/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp34 const MCFixup &Fixup, bool IsPCRel) const override;
44 bool IsPCRel) const { in getRelocType()
54 if (IsPCRel) { in getRelocType()
/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp51 const MCFixup &Fixup, bool IsPCRel) const override; in operator <<()
158 bool IsPCRel) const { in getMatchingLoType()
173 return IsPCRel ? ELF::R_MIPS_PC16 : ELF::R_MIPS_16;
176 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32;
179 return IsPCRel in isMatchingReloc()
184 if (IsPCRel) { in isMatchingReloc()
/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyAsmBackend.cpp47 uint64_t Value, bool IsPCRel,
90 uint64_t Value, bool IsPCRel, in applyFixup()
92 applyFixup(const MCAssembler & Asm,const MCFixup & Fixup,const MCValue & Target,MutableArrayRef<char> Data,uint64_t Value,bool IsPCRel,const MCSubtargetInfo * STI) const applyFixup() argument
/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonELFObjectWriter.cpp31 MCFixup const &Fixup, bool IsPCRel) const override;
43 bool IsPCRel) const { in getRelocType()
70 return IsPCRel ? ELF::R_HEX_32_PCREL : ELF::R_HEX_32; in getRelocType()

12