/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 567 Rel.SectionID = 0; in findPPC64TOCSection() 582 Rel.SectionID = *SectionIDOrErr; in findPPC64TOCSection() 660 Rel.SectionID = *SectionIDOrErr; in findOPDEntrySection() 919 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 921 RE.SymOffset, RE.SectionID); in resolveRelocation() 927 uint64_t SymOffset, SID SectionID) { in resolveRelocation() argument 966 void *RuntimeDyldELF::computePlaceholderAddress(unsigned SectionID, uint64_t Offset) const { in computePlaceholderAddress() argument 967 return (void *)(Sections[SectionID].getObjAddress() + Offset); in computePlaceholderAddress() 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() [all …]
|
D | RuntimeDyldImpl.h | 122 unsigned SectionID; 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() 194 unsigned SectionID; 199 RelocationValueRef() : SectionID(0), Offset(0), Addend(0), in RelocationValueRef() 203 return SectionID == Other.SectionID && Offset == Other.Offset && 208 if (SectionID != Other.SectionID) [all …]
|
D | RuntimeDyld.cpp | 293 unsigned SectionID = AbsoluteSymbolSection; in loadObjectImpl() local 296 << " SID: " << SectionID in loadObjectImpl() 299 GlobalSymbolTable[Name] = SymbolTableEntry(SectionID, Addr, JITSymFlags); in loadObjectImpl() 320 unsigned SectionID; in loadObjectImpl() local 323 SectionID = *SectionIDOrErr; in loadObjectImpl() 328 << " SID: " << SectionID in loadObjectImpl() 332 SymbolTableEntry(SectionID, SectOffset, JITSymFlags); in loadObjectImpl() 358 unsigned SectionID = 0; in loadObjectImpl() local 361 SectionID = *SectionIDOrErr; in loadObjectImpl() 365 LLVM_DEBUG(dbgs() << "\tSectionID: " << SectionID << "\n"); in loadObjectImpl() [all …]
|
D | RuntimeDyldELF.h | 31 uint64_t SymOffset = 0, SID SectionID = 0); 43 bool resolveAArch64ShortBranch(unsigned SectionID, relocation_iterator RelI, 46 void resolveAArch64Branch(unsigned SectionID, const RelocationValueRef &Value, 102 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; } in getSection() argument 113 void resolveGOTOffsetRelocation(unsigned SectionID, uint64_t Offset, 122 void *computePlaceholderAddress(unsigned SectionID, uint64_t Offset) const; 126 …void processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValu… 178 processRelocationRef(unsigned SectionID, relocation_iterator RelI,
|
D | RuntimeDyldMachO.h | 30 unsigned SectionID; member 65 RelocationEntry getRelocationEntry(unsigned SectionID, in getRelocationEntry() argument 79 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry() 84 processScatteredVANILLA(unsigned SectionID, relocation_iterator RelI, 133 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; } in getSection() argument
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldImpl.h | 122 unsigned SectionID; 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() 179 unsigned SectionID; 183 RelocationValueRef() : SectionID(0), Offset(0), Addend(0), in RelocationValueRef() 187 return SectionID == Other.SectionID && Offset == Other.Offset && 191 if (SectionID != Other.SectionID) 192 return SectionID < Other.SectionID; [all …]
|
D | RuntimeDyldELF.cpp | 603 SID SectionID) { in resolveMIPS64Relocation() argument 613 SymOffset, SectionID); in resolveMIPS64Relocation() 618 SectionID); in resolveMIPS64Relocation() 624 SectionID); in resolveMIPS64Relocation() 634 uint64_t SymOffset, SID SectionID) { in evaluateMIPS64Relocation() argument 657 uint64_t GOTAddr = getSectionLoadAddress(SectionToGOTMap[SectionID]); in evaluateMIPS64Relocation() 671 getSectionAddress(SectionToGOTMap[SectionID]) + SymOffset; in evaluateMIPS64Relocation() 691 uint64_t GOTAddr = getSectionLoadAddress(SectionToGOTMap[SectionID]); in evaluateMIPS64Relocation() 793 Rel.SectionID = 0; in findPPC64TOCSection() 808 Rel.SectionID = *SectionIDOrErr; in findPPC64TOCSection() [all …]
|
D | RuntimeDyld.cpp | 241 unsigned SectionID = AbsoluteSymbolSection; in loadObjectImpl() local 244 << " SID: " << SectionID << " Offset: " in loadObjectImpl() 248 SymbolTableEntry(SectionID, Addr, RTDyldSymFlags); in loadObjectImpl() 269 unsigned SectionID; in loadObjectImpl() local 272 SectionID = *SectionIDOrErr; in loadObjectImpl() 277 << " SID: " << SectionID << " Offset: " in loadObjectImpl() 281 SymbolTableEntry(SectionID, SectOffset, RTDyldSymFlags); in loadObjectImpl() 307 unsigned SectionID = 0; in loadObjectImpl() local 310 SectionID = *SectionIDOrErr; in loadObjectImpl() 314 DEBUG(dbgs() << "\tSectionID: " << SectionID << "\n"); in loadObjectImpl() [all …]
|
D | RuntimeDyldELF.h | 31 uint64_t SymOffset = 0, SID SectionID = 0); 60 uint64_t SymOffset, SID SectionID); 65 uint64_t SymOffset, SID SectionID); 105 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; } in getSection() argument 108 uint64_t allocateGOTEntries(unsigned SectionID, unsigned no); 112 void resolveGOTOffsetRelocation(unsigned SectionID, uint64_t Offset, 117 RelocationEntry computeGOTOffsetRE(unsigned SectionID, 123 void *computePlaceholderAddress(unsigned SectionID, uint64_t Offset) const; 127 …void processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValu… 170 processRelocationRef(unsigned SectionID, relocation_iterator RelI,
|
D | RuntimeDyldMachO.h | 30 unsigned SectionID; member 65 RelocationEntry getRelocationEntry(unsigned SectionID, in getRelocationEntry() argument 79 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry() 84 processScatteredVANILLA(unsigned SectionID, relocation_iterator RelI, 132 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; } in getSection() argument
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldCOFFThumb.h | 38 processRelocationRef(unsigned SectionID, in processRelocationRef() argument 62 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef() 80 DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() 86 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 103 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, 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() 143 const auto Section = Sections[RE.SectionID]; in resolveRelocation() 186 assert(static_cast<int32_t>(RE.SectionID) <= INT16_MAX && in resolveRelocation() [all …]
|
D | RuntimeDyldMachOARM.h | 38 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() 54 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 66 return processHALFSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 69 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 91 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 109 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 117 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 174 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 181 Section, SectionID); in finalizeSection() 192 SectionEntry &Section = Sections[RE.SectionID]; in processBranchRelocation() [all …]
|
D | RuntimeDyldCOFFI386.h | 38 processRelocationRef(unsigned SectionID, in processRelocationRef() argument 63 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef() 83 DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() 89 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 106 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 118 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 133 const auto Section = Sections[RE.SectionID]; in resolveRelocation() 194 assert(static_cast<int32_t>(RE.SectionID) <= INT16_MAX && in resolveRelocation() 196 assert(static_cast<int32_t>(RE.SectionID) >= INT16_MIN && in resolveRelocation() 199 << " RelType: IMAGE_REL_I386_SECTION Value: " << RE.SectionID in resolveRelocation() [all …]
|
D | RuntimeDyldMachOX86_64.h | 35 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 46 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 51 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 81 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 89 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 124 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 132 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation() 143 RelocationEntry GOTRE(RE.SectionID, Section.getStubOffset(), in processGOTRelocation() 149 addRelocationForSection(GOTRE, Value.SectionID); in processGOTRelocation() 153 RelocationEntry TargetRE(RE.SectionID, RE.Offset, in processGOTRelocation() [all …]
|
D | RuntimeDyldMachOI386.h | 35 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 48 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 51 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 68 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 94 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 102 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 129 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 135 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection() 138 Section, SectionID); in finalizeSection() 144 processSECTDIFFRelocation(unsigned SectionID, relocation_iterator RelI, in processSECTDIFFRelocation() argument [all …]
|
D | RuntimeDyldMachOAArch64.h | 36 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() 246 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 276 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 278 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 305 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 314 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 379 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 388 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation() 405 RelocationEntry GOTRE(RE.SectionID, StubOffset, in processGOTRelocation() 411 addRelocationForSection(GOTRE, Value.SectionID); in processGOTRelocation() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldCOFFThumb.h | 58 processRelocationRef(unsigned SectionID, in processRelocationRef() argument 82 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef() 100 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() 106 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 126 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 133 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, 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() 173 const auto Section = Sections[RE.SectionID]; in resolveRelocation() [all …]
|
D | RuntimeDyldELFMips.cpp | 17 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 22 RE.SymOffset, RE.SectionID); in resolveRelocation() 25 RE.SymOffset, RE.SectionID); in resolveRelocation() 34 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation() 36 Addend, RE.SymOffset, RE.SectionID); in evaluateRelocation() 45 const SectionEntry &Section = Sections[RE.SectionID]; in applyRelocation() 111 int64_t Addend, uint64_t SymOffset, SID SectionID) { in evaluateMIPS64Relocation() argument 121 << " SID: " << format("%d", SectionID) in evaluateMIPS64Relocation() 137 uint64_t GOTAddr = getSectionLoadAddress(SectionToGOTMap[SectionID]); in evaluateMIPS64Relocation() 155 getSectionAddress(SectionToGOTMap[SectionID]) + SymOffset; in evaluateMIPS64Relocation() [all …]
|
D | RuntimeDyldMachOARM.h | 50 bool isAddrTargetThumb(unsigned SectionID, uint64_t Offset) { in isAddrTargetThumb() argument 51 auto TargetObjAddr = Sections[SectionID].getObjAddress() + Offset; in isAddrTargetThumb() 63 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() 100 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 134 return processHALFSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 137 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID, in processRelocationRef() 159 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 186 RE.IsTargetThumbFunc = isAddrTargetThumb(Value.SectionID, Value.Offset); in processRelocationRef() 196 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 204 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() [all …]
|
D | RuntimeDyldCOFFX86_64.h | 82 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 132 generateRelocationStub(unsigned SectionID, StringRef TargetName, in generateRelocationStub() argument 136 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub() 139 OriginalRelValueRef.SectionID = SectionID; in generateRelocationStub() 166 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 178 processRelocationRef(unsigned SectionID, in processRelocationRef() argument 199 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() 221 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() 236 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() 241 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() [all …]
|
D | RuntimeDyldMachOX86_64.h | 35 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 46 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 51 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 81 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 89 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 124 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 132 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation() 143 RelocationEntry GOTRE(RE.SectionID, Section.getStubOffset(), in processGOTRelocation() 149 addRelocationForSection(GOTRE, Value.SectionID); in processGOTRelocation() 153 RelocationEntry TargetRE(RE.SectionID, RE.Offset, in processGOTRelocation() [all …]
|
D | RuntimeDyldCOFFI386.h | 38 processRelocationRef(unsigned SectionID, in processRelocationRef() argument 63 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef() 83 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() 89 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 106 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 118 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 133 const auto Section = Sections[RE.SectionID]; in resolveRelocation() 191 assert(static_cast<uint32_t>(RE.SectionID) <= UINT16_MAX && in resolveRelocation() 195 << RE.SectionID << '\n'); in resolveRelocation() 196 writeBytesUnaligned(RE.SectionID, Target, 2); in resolveRelocation()
|
D | RuntimeDyldCOFFAArch64.h | 99 generateRelocationStub(unsigned SectionID, StringRef TargetName, in generateRelocationStub() argument 103 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub() 106 OriginalRelValueRef.SectionID = SectionID; in generateRelocationStub() 127 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 141 processRelocationRef(unsigned SectionID, object::relocation_iterator RelI, in processRelocationRef() argument 168 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef() 185 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() 221 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() 228 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() 238 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() [all …]
|
D | RuntimeDyldMachOI386.h | 35 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 48 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 51 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 68 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 94 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 102 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 129 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 135 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection() 138 Section, SectionID); in finalizeSection() 144 processSECTDIFFRelocation(unsigned SectionID, relocation_iterator RelI, in processSECTDIFFRelocation() argument [all …]
|
D | RuntimeDyldMachOAArch64.h | 36 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() 274 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 304 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 306 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 350 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 359 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 437 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 448 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation() 465 RelocationEntry GOTRE(RE.SectionID, StubOffset, in processGOTRelocation() 471 addRelocationForSection(GOTRE, Value.SectionID); in processGOTRelocation() [all …]
|