/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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 930 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 980 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument 981 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() 988 uint32_t RuntimeDyldELF::getMatchingLoRelocation(uint32_t RelType, in getMatchingLoRelocation() argument 990 switch (RelType) { in getMatchingLoRelocation() 1062 unsigned RelType = RelI->getType(); in resolveAArch64Branch() local 1068 RelType, 0); in resolveAArch64Branch() 1103 RelType, 0); in resolveAArch64Branch() 1113 uint64_t RelType = RelI->getType(); in processRelocationRef() local 1129 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef() [all …]
|
/external/swiftshader/third_party/llvm-16.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 1033 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 1084 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument 1085 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() 1092 uint32_t RuntimeDyldELF::getMatchingLoRelocation(uint32_t RelType, in getMatchingLoRelocation() argument 1094 switch (RelType) { in getMatchingLoRelocation() 1166 unsigned RelType = RelI->getType(); in resolveAArch64Branch() local 1172 RelType, 0); in resolveAArch64Branch() 1207 RelType, 0); in resolveAArch64Branch() 1217 uint64_t RelType = RelI->getType(); in processRelocationRef() local 1233 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 40 switch (RE.RelType) { in decodeAddend() 46 << getRelocName(RE.RelType); in decodeAddend() 58 << getRelocName(RE.RelType); in decodeAddend() 76 switch (RE.RelType) { in decodeAddend() 156 MachO::RelocationInfoType RelType, int64_t Addend) const { in encodeAddend() argument 158 switch (RelType) { in encodeAddend() 176 switch (RelType) { in encodeAddend() 307 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 333 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 341 if (RE.RelType == MachO::ARM64_RELOC_GOT_LOAD_PAGE21 || in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFX86_64.h | 90 switch (RE.RelType) { in resolveRelocation() 101 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation() 145 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 178 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 184 RelType = COFF::IMAGE_REL_AMD64_ADDR64; in generateRelocationStub() 186 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 208 uint64_t RelType = RelI->getType(); in processRelocationRef() local 219 switch (RelType) { in processRelocationRef() 232 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 233 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() [all …]
|
D | RuntimeDyldMachOARM.h | 67 switch (RE.RelType) { in decodeAddend() 109 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 134 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 137 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 145 switch (RelType) { in processRelocationRef() 153 if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef() 155 Twine(RelType) + in processRelocationRef() 176 if (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) in processRelocationRef() 181 (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) ? 4 : 8); in processRelocationRef() 185 if (!Value.SymbolName && (RelType == MachO::ARM_RELOC_BR24 || in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFThumb.h | 79 uint64_t RelType = RelI->getType(); in processRelocationRef() local 88 switch (RelType) { in processRelocationRef() 108 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 121 switch (RelType) { in processRelocationRef() 128 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 135 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 142 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 147 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 154 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 163 RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFI386.h | 57 uint64_t RelType = RelI->getType(); in processRelocationRef() local 66 switch (RelType) { in processRelocationRef() 88 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 97 switch (RelType) { in processRelocationRef() 105 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 112 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 117 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 135 switch (RE.RelType) { in resolveRelocation()
|
D | RuntimeDyldELFMips.cpp | 18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation() 20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation() 46 RE.RelType); in applyRelocation() 283 uint32_t RelType = r_type; in resolveMIPSN64Relocation() local 285 RelType, Addend, in resolveMIPSN64Relocation() 288 RelType = r_type2; in resolveMIPSN64Relocation() 289 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPSN64Relocation() 294 RelType = r_type3; in resolveMIPSN64Relocation() [all …]
|
D | RuntimeDyldCOFFAArch64.h | 100 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 127 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 135 RelType = INTERNAL_REL_ARM64_LONG_BRANCH26; in generateRelocationStub() 137 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 160 uint64_t RelType = RelI->getType(); in processRelocationRef() local 172 switch (RelType) { in processRelocationRef() 184 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 185 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() 229 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() 239 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() [all …]
|
D | RuntimeDyldMachOI386.h | 42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 45 if (RelType == MachO::GENERIC_RELOC_SECTDIFF || in processRelocationRef() 46 RelType == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) in processRelocationRef() 49 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 52 "type: " + Twine(RelType)).str()); in processRelocationRef() 55 switch (RelType) { in processRelocationRef() 60 if (RelType > MachO::GENERIC_RELOC_TLV) in processRelocationRef() 62 Twine(RelType) + in processRelocationRef() 109 switch (RE.RelType) { in resolveRelocation()
|
/external/swiftshader/third_party/llvm-16.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 40 switch (RE.RelType) { in decodeAddend() 46 << getRelocName(RE.RelType); in decodeAddend() 58 << getRelocName(RE.RelType); in decodeAddend() 76 switch (RE.RelType) { in decodeAddend() 156 MachO::RelocationInfoType RelType, int64_t Addend) const { in encodeAddend() argument 158 switch (RelType) { in encodeAddend() 176 switch (RelType) { in encodeAddend() 307 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 333 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() 341 if (RE.RelType == MachO::ARM64_RELOC_GOT_LOAD_PAGE21 || in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFX86_64.h | 91 switch (RE.RelType) { in resolveRelocation() 102 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation() 145 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 178 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 184 RelType = COFF::IMAGE_REL_AMD64_ADDR64; in generateRelocationStub() 186 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 208 uint64_t RelType = RelI->getType(); in processRelocationRef() local 237 switch (RelType) { in processRelocationRef() 250 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 251 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 | 78 uint64_t RelType = RelI->getType(); in processRelocationRef() local 87 switch (RelType) { in processRelocationRef() 120 if (RelType != COFF::IMAGE_REL_ARM_SECTION) in processRelocationRef() 125 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 133 switch (RelType) { in processRelocationRef() 140 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 147 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 154 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 160 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() 166 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() [all …]
|
D | RuntimeDyldCOFFI386.h | 58 uint64_t RelType = RelI->getType(); in processRelocationRef() local 74 if (RelType != COFF::IMAGE_REL_I386_SECTION) in processRelocationRef() 84 switch (RelType) { in processRelocationRef() 105 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 109 switch (RelType) { in processRelocationRef() 117 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 124 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef() 130 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() 146 switch (RE.RelType) { in resolveRelocation()
|
D | RuntimeDyldELFMips.cpp | 18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation() 20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation() 46 RE.RelType); in applyRelocation() 283 uint32_t RelType = r_type; in resolveMIPSN64Relocation() local 285 RelType, Addend, in resolveMIPSN64Relocation() 288 RelType = r_type2; in resolveMIPSN64Relocation() 289 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPSN64Relocation() 294 RelType = r_type3; in resolveMIPSN64Relocation() [all …]
|
D | RuntimeDyldCOFFAArch64.h | 101 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument 128 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 136 RelType = INTERNAL_REL_ARM64_LONG_BRANCH26; in generateRelocationStub() 138 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub() 161 uint64_t RelType = RelI->getType(); in processRelocationRef() local 191 switch (RelType) { in processRelocationRef() 203 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef() 204 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() 247 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() 250 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() [all …]
|
D | RuntimeDyldMachOI386.h | 41 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local 44 if (RelType == MachO::GENERIC_RELOC_SECTDIFF || in processRelocationRef() 45 RelType == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) in processRelocationRef() 48 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef() 51 "type: " + Twine(RelType)).str()); in processRelocationRef() 54 switch (RelType) { in processRelocationRef() 59 if (RelType > MachO::GENERIC_RELOC_TLV) in processRelocationRef() 61 Twine(RelType) + in processRelocationRef() 108 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 | 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 | 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 | 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 | 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 | 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()
|