/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86ELFObjectWriter.cpp | 31 const MCFixup &Fixup, bool IsPCRel) const override; 50 bool &IsPCRel) { in getType64() argument 56 IsPCRel = true; in getType64() 62 if (Modifier == MCSymbolRefExpr::VK_None && !IsPCRel) in getType64() 67 IsPCRel = true; in getType64() 93 X86_64RelType Type, bool IsPCRel, in getRelocType64() argument 101 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64() 103 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64() 107 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64() 109 return IsPCRel ? ELF::R_X86_64_PC8 : ELF::R_X86_64_8; in getRelocType64() [all …]
|
D | X86MachObjectWriter.cpp | 106 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation() local 123 if (IsPCRel) { in RecordX86_64Relocation() 140 if (IsPCRel) { in RecordX86_64Relocation() 165 if (IsPCRel) { in RecordX86_64Relocation() 209 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in RecordX86_64Relocation() 250 if (IsPCRel) in RecordX86_64Relocation() 274 if (IsPCRel) { in RecordX86_64Relocation() 332 IsPCRel = 1; in RecordX86_64Relocation() 360 MRE.r_word1 = (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | in RecordX86_64Relocation() 375 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordScatteredRelocation() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/MCTargetDesc/ |
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() 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 …]
|
D | X86MachObjectWriter.cpp | 106 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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/ |
D | MCFixup.h | 137 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 …]
|
/external/llvm/lib/Target/SystemZ/MCTargetDesc/ |
D | SystemZMCObjectWriter.cpp | 28 const MCFixup &Fixup, bool IsPCRel) const override; 112 bool IsPCRel) const { in getRelocType() 117 if (IsPCRel) in getRelocType() 122 assert(!IsPCRel && "NTPOFF shouldn't be PC-relative"); in getRelocType() 126 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType() 131 assert(!IsPCRel && "DTPOFF shouldn't be PC-relative"); in getRelocType() 135 assert(!IsPCRel && "TLSLDM shouldn't be PC-relative"); in getRelocType() 139 assert(!IsPCRel && "TLSGD shouldn't be PC-relative"); in getRelocType() 143 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType() 148 assert(IsPCRel && "@PLT shouldt be PC-relative"); in getRelocType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/MCTargetDesc/ |
D | SystemZMCObjectWriter.cpp | 33 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()
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCMachObjectWriter.cpp | 86 const bool IsPCRel) { in getRelocType() argument 92 if (IsPCRel) { // relative to PC in getRelocType() 148 const unsigned IsPCRel, const unsigned Log2Size, in makeRelocationInfo() argument 157 (IsPCRel << 7) | // was << 24 in makeRelocationInfo() 166 const unsigned Log2Size, const unsigned IsPCRel, in makeScatteredRelocationInfo() argument 171 (IsPCRel << 30) | MachO::R_SCATTERED); in makeScatteredRelocationInfo() 198 const unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, FK); in recordScatteredRelocation() local 199 const unsigned Type = getRelocType(Target, FK, IsPCRel); in recordScatteredRelocation() 281 Log2Size, IsPCRel, Value2); in recordScatteredRelocation() 295 makeScatteredRelocationInfo(MRE, FixupOffset, Type, Log2Size, IsPCRel, Value); in recordScatteredRelocation() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCMachObjectWriter.cpp | 85 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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64MachObjectWriter.cpp | 155 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 …]
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64MachObjectWriter.cpp | 148 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() local 162 if (IsPCRel) in recordRelocation() 204 if (IsPCRel) { in recordRelocation() 228 IsPCRel = 1; in recordRelocation() 231 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation() 243 if (IsPCRel) { in recordRelocation() 288 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation() 368 if (IsPCRel) in recordRelocation() 400 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation() 407 IsPCRel = 0; in recordRelocation() [all …]
|
/external/llvm/lib/Target/BPF/MCTargetDesc/ |
D | BPFELFObjectWriter.cpp | 26 const MCFixup &Fixup, bool IsPCRel) const override; 38 bool IsPCRel) const { in getRelocType() 48 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType() 50 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldImpl.h | 146 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()
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMELFObjectWriter.cpp | 29 bool IsPCRel) const; 38 const MCFixup &Fixup, bool IsPCRel) const override; 72 bool IsPCRel) const { in getRelocType() 73 return GetRelocTypeInner(Target, Fixup, IsPCRel); in getRelocType() 78 bool IsPCRel) const { in GetRelocTypeInner() 82 if (IsPCRel) { in GetRelocTypeInner()
|
D | ARMMachObjectWriter.cpp | 147 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation() local 226 (IsPCRel << 30) | in RecordARMScatteredHalfRelocation() 237 (IsPCRel << 30) | in RecordARMScatteredHalfRelocation() 253 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredRelocation() local 294 (IsPCRel << 30) | in RecordARMScatteredRelocation() 304 (IsPCRel << 30) | in RecordARMScatteredRelocation() 354 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() local 390 if (IsPCRel && RelocType == MachO::ARM_RELOC_VANILLA) in recordRelocation() 435 if (IsPCRel) in recordRelocation() 446 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMMachObjectWriter.cpp | 157 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()
|
D | ARMELFObjectWriter.cpp | 31 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()
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldImpl.h | 147 bool IsPCRel; variable 154 SymOffset(0), IsPCRel(false), Size(0) {} in RelocationEntry() 159 SymOffset(symoffset), IsPCRel(false), Size(0) {} in RelocationEntry() 162 bool IsPCRel, unsigned Size) in RelocationEntry() argument 164 SymOffset(0), IsPCRel(IsPCRel), Size(Size) {} in RelocationEntry() 168 uint64_t SectionBOffset, bool IsPCRel, unsigned Size) in RelocationEntry() argument 170 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
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()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/MCTargetDesc/ |
D | RISCVELFObjectWriter.cpp | 38 const MCFixup &Fixup, bool IsPCRel) const override; 51 bool IsPCRel) const { in getRelocType() 55 if (IsPCRel) { in getRelocType()
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOARM.h | 99 if (RE.IsPCRel) in processRelocationRef() 122 if (RE.IsPCRel) { in resolveRelocation() 213 RE.IsPCRel, RE.Size); in processBranchRelocation() 237 bool IsPCRel = MachO.getAnyRelocationPCRel(RE); in processHALFSECTDIFFRelocation() local 287 SectionAOffset, SectionBID, SectionBOffset, IsPCRel, in processHALFSECTDIFFRelocation()
|
D | RuntimeDyldMachOAArch64.h | 293 if (!IsExtern && RE.IsPCRel) in processRelocationRef() 323 assert(!RE.IsPCRel && "PCRel and ARM64_RELOC_UNSIGNED not supported"); in resolveRelocation() 333 assert(RE.IsPCRel && "not PCRel and ARM64_RELOC_BRANCH26 not supported"); in resolveRelocation() 342 assert(RE.IsPCRel && "not PCRel and ARM64_RELOC_PAGE21 not supported"); in resolveRelocation() 352 assert(!RE.IsPCRel && "PCRel and ARM64_RELOC_PAGEOFF21 not supported"); in resolveRelocation() 416 RE.IsPCRel, RE.Size); in processGOTRelocation()
|
/external/llvm/lib/MC/ |
D | MCAssembler.cpp | 186 bool IsPCRel = Backend.getFixupKindInfo( in evaluateFixup() local 190 if (IsPCRel) { in evaluateFixup() 225 assert((ShouldAlignPC ? IsPCRel : true) && in evaluateFixup() 228 if (IsPCRel) { in evaluateFixup() 623 bool IsPCRel = Backend.getFixupKindInfo(Fixup.getKind()).Flags & in handleFixup() local 629 getWriter().recordRelocation(*this, Layout, &F, Fixup, Target, IsPCRel, in handleFixup() 632 return std::make_pair(FixedValue, IsPCRel); in handleFixup() 707 bool IsPCRel; in layout() local 708 std::tie(FixedValue, IsPCRel) = handleFixup(Layout, Frag, Fixup); in layout() 710 Contents.size(), FixedValue, IsPCRel); in layout()
|
/external/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
D | AMDGPUELFObjectWriter.cpp | 24 const MCFixup &Fixup, bool IsPCRel) const override; 40 bool IsPCRel) const { in getRelocType()
|
/external/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
D | WebAssemblyELFObjectWriter.cpp | 29 const MCFixup &Fixup, bool IsPCRel) const override; 41 bool IsPCRel) const { in getRelocType()
|