/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.cpp | 570 Rel.SectionID = 0; in findPPC64TOCSection() 586 Rel.SectionID = *SectionIDOrErr; in findPPC64TOCSection() 670 Rel.SectionID = *SectionIDOrErr; in findOPDEntrySection() 929 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 931 RE.SymOffset, RE.SectionID); in resolveRelocation() 937 uint64_t SymOffset, SID SectionID) { in resolveRelocation() argument 976 void *RuntimeDyldELF::computePlaceholderAddress(unsigned SectionID, uint64_t Offset) const { in computePlaceholderAddress() argument 977 return (void *)(Sections[SectionID].getObjAddress() + Offset); in computePlaceholderAddress() 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() [all …]
|
D | RuntimeDyldImpl.h | 121 unsigned SectionID; 155 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 160 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 166 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry() 172 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry() 183 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry() 193 unsigned SectionID; 198 RelocationValueRef() : SectionID(0), Offset(0), Addend(0), in RelocationValueRef() 202 return SectionID == Other.SectionID && Offset == Other.Offset && 207 if (SectionID != Other.SectionID) [all …]
|
D | RuntimeDyld.cpp | 298 unsigned SectionID = AbsoluteSymbolSection; in loadObjectImpl() local 301 << " SID: " << SectionID in loadObjectImpl() 304 GlobalSymbolTable[Name] = SymbolTableEntry(SectionID, Addr, *JITSymFlags); in loadObjectImpl() 325 unsigned SectionID; in loadObjectImpl() local 328 SectionID = *SectionIDOrErr; in loadObjectImpl() 333 << " SID: " << SectionID in loadObjectImpl() 337 SymbolTableEntry(SectionID, SectOffset, *JITSymFlags); in loadObjectImpl() 367 unsigned SectionID = 0; in loadObjectImpl() local 370 SectionID = *SectionIDOrErr; in loadObjectImpl() 374 LLVM_DEBUG(dbgs() << "\tSectionID: " << SectionID << "\n"); in loadObjectImpl() [all …]
|
D | RuntimeDyldELF.h | 30 uint64_t SymOffset = 0, SID SectionID = 0); 42 bool resolveAArch64ShortBranch(unsigned SectionID, relocation_iterator RelI, 45 void resolveAArch64Branch(unsigned SectionID, const RelocationValueRef &Value, 101 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; } in getSection() argument 112 void resolveGOTOffsetRelocation(unsigned SectionID, uint64_t Offset, 121 void *computePlaceholderAddress(unsigned SectionID, uint64_t Offset) const; 125 …void processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValu… 177 processRelocationRef(unsigned SectionID, relocation_iterator RelI,
|
D | RuntimeDyldMachO.h | 29 unsigned SectionID; member 64 RelocationEntry getRelocationEntry(unsigned SectionID, in getRelocationEntry() argument 78 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry() 83 processScatteredVANILLA(unsigned SectionID, relocation_iterator RelI, 132 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-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldCOFFThumb.h | 60 processRelocationRef(unsigned SectionID, in processRelocationRef() argument 84 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef() 102 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() 108 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 128 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 135 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, 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() 175 const auto Section = Sections[RE.SectionID]; in resolveRelocation() [all …]
|
D | RuntimeDyldELFMips.cpp | 16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 21 RE.SymOffset, RE.SectionID); in resolveRelocation() 24 RE.SymOffset, RE.SectionID); in resolveRelocation() 33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation() 35 Addend, RE.SymOffset, RE.SectionID); in evaluateRelocation() 44 const SectionEntry &Section = Sections[RE.SectionID]; in applyRelocation() 110 int64_t Addend, uint64_t SymOffset, SID SectionID) { in evaluateMIPS64Relocation() argument 120 << " SID: " << format("%d", SectionID) in evaluateMIPS64Relocation() 136 uint64_t GOTAddr = getSectionLoadAddress(SectionToGOTMap[SectionID]); in evaluateMIPS64Relocation() 154 getSectionAddress(SectionToGOTMap[SectionID]) + SymOffset; in evaluateMIPS64Relocation() [all …]
|
D | RuntimeDyldMachOARM.h | 51 bool isAddrTargetThumb(unsigned SectionID, uint64_t Offset) { in isAddrTargetThumb() argument 52 auto TargetObjAddr = Sections[SectionID].getObjAddress() + Offset; in isAddrTargetThumb() 64 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() 101 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 135 return processHALFSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 138 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID, in processRelocationRef() 160 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 187 RE.IsTargetThumbFunc = isAddrTargetThumb(Value.SectionID, Value.Offset); in processRelocationRef() 197 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 205 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() [all …]
|
D | RuntimeDyldMachOX86_64.h | 34 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 45 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 50 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 80 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 88 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 123 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 131 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation() 142 RelocationEntry GOTRE(RE.SectionID, Section.getStubOffset(), in processGOTRelocation() 148 addRelocationForSection(GOTRE, Value.SectionID); in processGOTRelocation() 152 RelocationEntry TargetRE(RE.SectionID, RE.Offset, in processGOTRelocation() [all …]
|
D | RuntimeDyldCOFFI386.h | 37 processRelocationRef(unsigned SectionID, in processRelocationRef() argument 62 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef() 82 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() 88 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 105 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 117 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() 132 const auto Section = Sections[RE.SectionID]; in resolveRelocation() 190 assert(static_cast<uint32_t>(RE.SectionID) <= UINT16_MAX && in resolveRelocation() 194 << RE.SectionID << '\n'); in resolveRelocation() 195 writeBytesUnaligned(RE.SectionID, Target, 2); in resolveRelocation()
|
D | RuntimeDyldCOFFX86_64.h | 87 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 144 generateRelocationStub(unsigned SectionID, StringRef TargetName, in generateRelocationStub() argument 148 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub() 151 OriginalRelValueRef.SectionID = SectionID; in generateRelocationStub() 178 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 190 processRelocationRef(unsigned SectionID, in processRelocationRef() argument 211 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() 233 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() 248 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() 253 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() [all …]
|
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() 222 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset 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 | 34 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 47 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 50 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 67 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 93 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 101 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 128 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 137 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection() 140 Section, SectionID); in finalizeSection() 146 processSECTDIFFRelocation(unsigned SectionID, relocation_iterator RelI, in processSECTDIFFRelocation() argument [all …]
|
D | RuntimeDyldMachOAArch64.h | 35 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() 273 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 303 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 305 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 349 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 358 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 436 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 447 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation() 464 RelocationEntry GOTRE(RE.SectionID, StubOffset, in processGOTRelocation() 470 addRelocationForSection(GOTRE, Value.SectionID); in processGOTRelocation() [all …]
|