/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
H A D | X86ELFObjectWriter.cpp | 34 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 D | X86MachObjectWriter.cpp | 98 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 D | MCFixup.h | 109 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 D | SystemZMCObjectWriter.cpp |
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/ |
H A D | M68kELFObjectWriter.cpp | 36 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 D | AArch64MachObjectWriter.cpp | 151 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 D | RuntimeDyldImpl.h | 148 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 D | RuntimeDyldMachO.h | 72 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 D | ARMMachObjectWriter.cpp | 147 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 D | ARMELFObjectWriter.cpp | 32 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 D | LoongArchELFObjectWriter.cpp | 34 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 D | AMDGPUELFObjectWriter.cpp | 25 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 D | RuntimeDyldMachOAArch64.h | 309 (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 D | RuntimeDyldMachOI386.h | 84 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 D | RuntimeDyldMachOARM.h | 178 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 D | PPCXCOFFObjectWriter.cpp | 29 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 D | XtensaELFObjectWriter.cpp | 34 const MCFixup &Fixup, bool IsPCRel) const override; 48 bool IsPCRel) const { in getRelocType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/ |
H A D | VEELFObjectWriter.cpp | 32 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 D | CSKYELFObjectWriter.cpp | 29 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 D | BPFELFObjectWriter.cpp | 29 const MCFixup &Fixup, bool IsPCRel) const override; 40 bool IsPCRel) const { in getRelocType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVELFObjectWriter.cpp | 39 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 D | SparcELFObjectWriter.cpp | 35 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 D | MipsELFObjectWriter.cpp | 64 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 D | WebAssemblyAsmBackend.cpp | 49 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 D | HexagonELFObjectWriter.cpp | 33 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()
|