/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 610 uint32_t RelType = r_type; in resolveMIPS64Relocation() local 612 RelType, Addend, in resolveMIPS64Relocation() 615 RelType = r_type2; in resolveMIPS64Relocation() 616 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPS64Relocation() 621 RelType = r_type3; in resolveMIPS64Relocation() 622 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPS64Relocation() 627 RelType); in resolveMIPS64Relocation() 1100 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 1159 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument 1160 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() [all …]
|
D | RuntimeDyldImpl.h | 41 #define UNIMPLEMENTED_RELOC(RelType) \ argument 42 case RelType: \ 43 return make_error<RuntimeDyldError>("Unimplemented relocation: " #RelType) 128 uint32_t RelType; variable 153 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 158 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 163 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 169 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry()
|
D | RuntimeDyldMachO.h | 76 MachO::RelocationInfoType RelType = in getRelocationEntry() local 79 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry()
|
D | RuntimeDyldELF.h | 127 …void processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValu… 130 uint32_t getMatchingLoRelocation(uint32_t RelType,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 920 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 970 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument 971 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() 978 uint32_t RuntimeDyldELF::getMatchingLoRelocation(uint32_t RelType, in getMatchingLoRelocation() argument 980 switch (RelType) { in getMatchingLoRelocation() 1052 unsigned RelType = RelI->getType(); in resolveAArch64Branch() local 1058 RelType, 0); in resolveAArch64Branch() 1093 RelType, 0); in resolveAArch64Branch() 1103 uint64_t RelType = RelI->getType(); in processRelocationRef() local 1119 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef() [all …]
|
D | RuntimeDyldImpl.h | 41 #define UNIMPLEMENTED_RELOC(RelType) \ argument 42 case RelType: \ 43 return make_error<RuntimeDyldError>("Unimplemented relocation: " #RelType) 128 uint32_t RelType; variable 156 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 161 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 167 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 173 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry() 184 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry()
|
D | RuntimeDyldMachO.h | 76 MachO::RelocationInfoType RelType = in getRelocationEntry() local 79 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry()
|
D | RuntimeDyldELF.h | 126 …void processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValu… 129 uint32_t getMatchingLoRelocation(uint32_t RelType,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 41 switch (RE.RelType) { in decodeAddend() 47 << getRelocName(RE.RelType); in decodeAddend() 59 << getRelocName(RE.RelType); in decodeAddend() 77 switch (RE.RelType) { in decodeAddend() 157 MachO::RelocationInfoType RelType, int64_t Addend) const { in encodeAddend() argument 159 switch (RelType) { in encodeAddend() 177 switch (RelType) { in encodeAddend() 308 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 334 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 342 if (RE.RelType == MachO::ARM64_RELOC_GOT_LOAD_PAGE21 || in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFX86_64.h | 85 switch (RE.RelType) { in resolveRelocation() 96 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation() 133 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 166 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 172 RelType = COFF::IMAGE_REL_AMD64_ADDR64; in generateRelocationStub() 174 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 196 uint64_t RelType = RelI->getType(); in processRelocationRef() local 207 switch (RelType) { in processRelocationRef() 220 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 221 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() [all …]
|
D | RuntimeDyldMachOARM.h | 66 switch (RE.RelType) { in decodeAddend() 108 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 133 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 136 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 144 switch (RelType) { in processRelocationRef() 152 if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 154 Twine(RelType) + in processRelocationRef() 175 if (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) in processRelocationRef() 180 (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) ? 4 : 8); in processRelocationRef() 184 if (!Value.SymbolName && (RelType == MachO::ARM_RELOC_BR24 || in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFThumb.h | 77 uint64_t RelType = RelI->getType(); in processRelocationRef() local 86 switch (RelType) { in processRelocationRef() 106 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 119 switch (RelType) { in processRelocationRef() 126 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 133 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 140 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 145 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 152 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 161 RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFI386.h | 58 uint64_t RelType = RelI->getType(); in processRelocationRef() local 67 switch (RelType) { in processRelocationRef() 89 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 98 switch (RelType) { in processRelocationRef() 106 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 113 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 118 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 136 switch (RE.RelType) { in resolveRelocation()
|
D | RuntimeDyldELFMips.cpp | 19 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation() 21 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 24 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 35 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation() 47 RE.RelType); in applyRelocation() 284 uint32_t RelType = r_type; in resolveMIPSN64Relocation() local 286 RelType, Addend, in resolveMIPSN64Relocation() 289 RelType = r_type2; in resolveMIPSN64Relocation() 290 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPSN64Relocation() 295 RelType = r_type3; in resolveMIPSN64Relocation() [all …]
|
D | RuntimeDyldMachOI386.h | 43 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 46 if (RelType == MachO::GENERIC_RELOC_SECTDIFF || in processRelocationRef() 47 RelType == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) in processRelocationRef() 50 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 53 "type: " + Twine(RelType)).str()); in processRelocationRef() 56 switch (RelType) { in processRelocationRef() 61 if (RelType > MachO::GENERIC_RELOC_TLV) in processRelocationRef() 63 Twine(RelType) + in processRelocationRef() 110 switch (RE.RelType) { in resolveRelocation()
|
D | RuntimeDyldMachOX86_64.h | 43 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 45 if (RelType == MachO::X86_64_RELOC_SUBTRACTOR) in processRelocationRef() 63 switch (RelType) { in processRelocationRef() 66 if (RelType > MachO::X86_64_RELOC_TLV) in processRelocationRef() 68 Twine(RelType) + in processRelocationRef() 73 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef() 74 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef() 101 switch (RE.RelType) { in resolveRelocation()
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 41 switch (RE.RelType) { in decodeAddend() 58 switch (RE.RelType) { in decodeAddend() 134 MachO::RelocationInfoType RelType, int64_t Addend) const { in encodeAddend() argument 136 switch (RelType) { in encodeAddend() 153 switch (RelType) { in encodeAddend() 298 if (RE.RelType == MachO::ARM64_RELOC_GOT_LOAD_PAGE21 || in processRelocationRef() 299 RE.RelType == MachO::ARM64_RELOC_GOT_LOAD_PAGEOFF12) in processRelocationRef() 316 MachO::RelocationInfoType RelType = in resolveRelocation() local 317 static_cast<MachO::RelocationInfoType>(RE.RelType); in resolveRelocation() 319 switch (RelType) { in resolveRelocation() [all …]
|
D | RuntimeDyldCOFFThumb.h | 57 uint64_t RelType = RelI->getType(); in processRelocationRef() local 66 switch (RelType) { in processRelocationRef() 86 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 95 switch (RelType) { in processRelocationRef() 103 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 110 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 115 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 122 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 131 RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 146 switch (RE.RelType) { in resolveRelocation()
|
D | RuntimeDyldCOFFX86_64.h | 67 switch (RE.RelType) { in resolveRelocation() 78 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation() 128 uint64_t RelType = RelI->getType(); in processRelocationRef() local 134 switch (RelType) { in processRelocationRef() 164 << " RelType: " << RelType << " TargetName: " << TargetName in processRelocationRef() 168 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() 179 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
|
D | RuntimeDyldMachOARM.h | 41 switch (RE.RelType) { in decodeAddend() 62 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 65 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 68 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 75 switch (RelType) { in processRelocationRef() 84 if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 86 Twine(RelType) + in processRelocationRef() 102 if ((RE.RelType & 0xf) == MachO::ARM_RELOC_BR24) in processRelocationRef() 131 switch (RE.RelType) { in resolveRelocation() 212 RelocationEntry TargetRE(RE.SectionID, RE.Offset, RE.RelType, 0, in processBranchRelocation()
|
D | RuntimeDyldCOFFI386.h | 58 uint64_t RelType = RelI->getType(); in processRelocationRef() local 67 switch (RelType) { in processRelocationRef() 89 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 98 switch (RelType) { in processRelocationRef() 106 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 113 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 118 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 136 switch (RE.RelType) { in resolveRelocation()
|
D | RuntimeDyldMachOI386.h | 43 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 46 if (RelType == MachO::GENERIC_RELOC_SECTDIFF || in processRelocationRef() 47 RelType == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) in processRelocationRef() 50 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 53 "type: " + Twine(RelType)).str()); in processRelocationRef() 56 switch (RelType) { in processRelocationRef() 61 if (RelType > MachO::GENERIC_RELOC_TLV) in processRelocationRef() 63 Twine(RelType) + in processRelocationRef() 110 switch (RE.RelType) { in resolveRelocation()
|
D | RuntimeDyldMachOX86_64.h | 43 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 45 if (RelType == MachO::X86_64_RELOC_SUBTRACTOR) in processRelocationRef() 63 switch (RelType) { in processRelocationRef() 66 if (RelType > MachO::X86_64_RELOC_TLV) in processRelocationRef() 68 Twine(RelType) + in processRelocationRef() 73 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef() 74 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef() 101 switch (RE.RelType) { in resolveRelocation()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | ELFWriter.cpp | 783 unsigned RelType = TEW->getRelocationType(MR.getRelocationType()); in EmitRelocations() local 784 unsigned RelTySize = TEW->getRelocationTySize(RelType); in EmitRelocations() 800 Addend = TEW->getDefaultAddendForRelTy(RelType, GlobalOffset); in EmitRelocations() 805 Addend = TEW->getDefaultAddendForRelTy(RelType); in EmitRelocations() 817 if (S.SectionIdx == SectionIdx && TEW->isPCRelativeRel(RelType)) { in EmitRelocations() 818 int64_t Value = TEW->computeRelocation(SymOffset, RelOffset, RelType); in EmitRelocations() 823 Addend = TEW->getDefaultAddendForRelTy(RelType, SymOffset); in EmitRelocations() 832 ELFRelocation Rel(RelOffset, SymIdx, RelType, HasRelA, Addend); in EmitRelocations()
|
/external/swiftshader/third_party/LLVM/lib/MC/ |
D | ELFObjectWriter.h | 96 unsigned RelType, const MCSymbol *Sym, in ELFRelocationEntry() 98 : r_offset(RelocOffset), Index(Idx), Type(RelType), in ELFRelocationEntry()
|