Home
last modified time | relevance | path

Searched refs:RelType (Results 1 – 25 of 27) sorted by relevance

12

/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp610 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 …]
DRuntimeDyldImpl.h41 #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()
DRuntimeDyldMachO.h76 MachO::RelocationInfoType RelType = in getRelocationEntry() local
79 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry()
DRuntimeDyldELF.h127 …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/
DRuntimeDyldELF.cpp920 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 …]
DRuntimeDyldImpl.h41 #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()
DRuntimeDyldMachO.h76 MachO::RelocationInfoType RelType = in getRelocationEntry() local
79 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry()
DRuntimeDyldELF.h126 …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/
DRuntimeDyldMachOAArch64.h41 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 …]
DRuntimeDyldCOFFX86_64.h85 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 …]
DRuntimeDyldMachOARM.h66 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 …]
DRuntimeDyldCOFFThumb.h77 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 …]
DRuntimeDyldCOFFI386.h58 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()
DRuntimeDyldELFMips.cpp19 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 …]
DRuntimeDyldMachOI386.h43 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()
DRuntimeDyldMachOX86_64.h43 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/
DRuntimeDyldMachOAArch64.h41 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 …]
DRuntimeDyldCOFFThumb.h57 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()
DRuntimeDyldCOFFX86_64.h67 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()
DRuntimeDyldMachOARM.h41 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()
DRuntimeDyldCOFFI386.h58 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()
DRuntimeDyldMachOI386.h43 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()
DRuntimeDyldMachOX86_64.h43 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/
DELFWriter.cpp783 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/
DELFObjectWriter.h96 unsigned RelType, const MCSymbol *Sym, in ELFRelocationEntry()
98 : r_offset(RelocOffset), Index(Idx), Type(RelType), in ELFRelocationEntry()

12