/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-7.0/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86ELFObjectWriter.cpp | 35 const MCFixup &Fixup, bool IsPCRel) const override; 52 bool &IsPCRel) { in getType64() argument 58 IsPCRel = true; in getType64() 64 if (Modifier == MCSymbolRefExpr::VK_None && !IsPCRel) in getType64() 69 IsPCRel = true; in getType64() 98 X86_64RelType Type, bool IsPCRel, in getRelocType64() argument 107 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64() 109 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64() 113 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64() 115 return IsPCRel ? ELF::R_X86_64_PC8 : ELF::R_X86_64_8; in getRelocType64() [all …]
|
D | X86MachObjectWriter.cpp | 107 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation() local 124 if (IsPCRel) { in RecordX86_64Relocation() 141 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/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-7.0/llvm/lib/Target/SystemZ/MCTargetDesc/ |
D | SystemZMCObjectWriter.cpp | 34 const MCFixup &Fixup, bool IsPCRel) const override; 120 bool IsPCRel) const { in getRelocType() 125 if (IsPCRel) in getRelocType() 130 assert(!IsPCRel && "NTPOFF shouldn't be PC-relative"); in getRelocType() 134 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType() 139 assert(!IsPCRel && "DTPOFF shouldn't be PC-relative"); in getRelocType() 143 assert(!IsPCRel && "TLSLDM shouldn't be PC-relative"); in getRelocType() 147 assert(!IsPCRel && "TLSGD shouldn't be PC-relative"); in getRelocType() 151 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL) in getRelocType() 156 assert(IsPCRel && "@PLT shouldt be PC-relative"); in getRelocType()
|
/external/swiftshader/third_party/llvm-7.0/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/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/lib/Target/X86/MCTargetDesc/ |
D | X86MachObjectWriter.cpp | 106 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation() local 122 if (IsPCRel) { in RecordX86_64Relocation() 140 if (IsPCRel) { in RecordX86_64Relocation() 160 if (IsPCRel) in RecordX86_64Relocation() 194 (IsPCRel << 24) | in RecordX86_64Relocation() 241 if (IsPCRel) in RecordX86_64Relocation() 261 if (IsPCRel) { in RecordX86_64Relocation() 314 IsPCRel = 1; in RecordX86_64Relocation() 331 (IsPCRel << 24) | in RecordX86_64Relocation() 347 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordScatteredRelocation() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64MachObjectWriter.cpp | 156 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() local 170 if (IsPCRel) in recordRelocation() 212 if (IsPCRel) { in recordRelocation() 236 IsPCRel = 1; in recordRelocation() 239 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation() 251 if (IsPCRel) { in recordRelocation() 296 MRE.r_word1 = (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation() 361 if (IsPCRel) in recordRelocation() 382 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation() 389 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/swiftshader/third_party/LLVM/lib/Target/ARM/MCTargetDesc/ |
D | ARMMachObjectWriter.cpp | 130 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMMovwMovtRelocation() local 202 (IsPCRel << 30) | in RecordARMMovwMovtRelocation() 213 (IsPCRel << 30) | in RecordARMMovwMovtRelocation() 228 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredRelocation() local 264 (IsPCRel << 30) | in RecordARMScatteredRelocation() 274 (IsPCRel << 30) | in RecordARMScatteredRelocation() 287 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordRelocation() local 318 if (IsPCRel && RelocType == macho::RIT_Vanilla) in RecordRelocation() 362 if (IsPCRel) in RecordRelocation() 373 (IsPCRel << 24) | in RecordRelocation()
|
/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-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldImpl.h | 147 bool IsPCRel; variable 157 SymOffset(0), IsPCRel(false), Size(0), IsTargetThumbFunc(false) {} in RelocationEntry() 162 SymOffset(symoffset), IsPCRel(false), Size(0), in RelocationEntry() 166 bool IsPCRel, unsigned Size) in RelocationEntry() argument 168 SymOffset(0), IsPCRel(IsPCRel), Size(Size), IsTargetThumbFunc(false) {} in RelocationEntry() 172 uint64_t SectionBOffset, bool IsPCRel, unsigned Size) in RelocationEntry() argument 174 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry() 182 uint64_t SectionBOffset, bool IsPCRel, unsigned Size, in RelocationEntry() argument 185 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
|
/external/swiftshader/third_party/LLVM/lib/MC/ |
D | ELFObjectWriter.h | 147 bool IsPCRel) const; 154 bool IsPCRel) const { in ExplicitRelSym() argument 337 bool IsPCRel) const; 348 bool IsPCRel, bool IsRelocWithSymbol, 364 bool IsPCRel, bool IsRelocWithSymbol, 388 bool IsPCRel) const; 391 bool IsPCRel, bool IsRelocWithSymbol, 395 const MCFixup &Fixup, bool IsPCRel) const; 410 bool IsPCRel, bool IsRelocWithSymbol, 426 bool IsPCRel, bool IsRelocWithSymbol, [all …]
|
D | ELFObjectWriter.cpp | 337 bool IsPCRel) const { in SymbolToReloc() 360 return ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel); in SymbolToReloc() 383 return ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel); in SymbolToReloc() 389 return ExplicitRelSym(Asm, Target, F, Fixup, IsPCRel); in SymbolToReloc() 405 bool IsPCRel = isFixupKindPCRel(Asm, Fixup.getKind()); in RecordRelocation() local 409 RelocSymbol = SymbolToReloc(Asm, Target, *Fragment, Fixup, IsPCRel); in RecordRelocation() 414 IsPCRel = true; in RecordRelocation() 446 unsigned Type = GetRelocType(Target, Fixup, IsPCRel, in RecordRelocation() 1249 bool IsPCRel) const { in IsSymbolRefDifferenceFullyResolvedImpl() 1253 Asm, DataA, FB,InSet, IsPCRel); in IsSymbolRefDifferenceFullyResolvedImpl() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMELFObjectWriter.cpp | 31 bool IsPCRel, MCContext &Ctx) const; 39 const MCFixup &Fixup, bool IsPCRel) const override; 72 bool IsPCRel) const { in getRelocType() 73 return GetRelocTypeInner(Target, Fixup, IsPCRel, Ctx); in getRelocType() 78 bool IsPCRel, in GetRelocTypeInner() argument 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() 362 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() local 398 if (IsPCRel && RelocType == MachO::ARM_RELOC_VANILLA) in recordRelocation() 443 if (IsPCRel) in recordRelocation() 454 (Index << 0) | (IsPCRel << 24) | (Log2Size << 25) | (Type << 28); in recordRelocation()
|
/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/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-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 310 (RE.Size == 2 && RE.IsPCRel) || (RE.Size == 3 && !RE.IsPCRel); in processRelocationRef() 337 } else if (!IsExtern && RE.IsPCRel) in processRelocationRef() 368 assert(!RE.IsPCRel && "PCRel and ARM64_RELOC_UNSIGNED not supported"); in resolveRelocation() 379 assert(((RE.Size == 2 && RE.IsPCRel) || (RE.Size == 3 && !RE.IsPCRel)) && in resolveRelocation() 385 RE.IsPCRel ? (RE.Addend - RE.Offset) : (Value + RE.Addend); in resolveRelocation() 391 assert(RE.IsPCRel && "not PCRel and ARM64_RELOC_BRANCH26 not supported"); in resolveRelocation() 400 assert(RE.IsPCRel && "not PCRel and ARM64_RELOC_PAGE21 not supported"); in resolveRelocation() 410 assert(!RE.IsPCRel && "PCRel and ARM64_RELOC_PAGEOFF21 not supported"); in resolveRelocation() 476 RE.IsPCRel, RE.Size); in processGOTRelocation()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Nios2/MCTargetDesc/ |
D | Nios2ELFObjectWriter.cpp | 27 const MCFixup &Fixup, bool IsPCRel) const override; 36 bool IsPCRel) const { 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()
|