Home
last modified time | relevance | path

Searched refs:ObjectFile (Results 1 – 25 of 201) sorted by relevance

123456789

/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DObjectYAML.cpp23 YamlObjectFile &ObjectFile) { in mapping() argument
25 if (ObjectFile.Elf) in mapping()
26 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
27 if (ObjectFile.Coff) in mapping()
28 MappingTraits<COFFYAML::Object>::mapping(IO, *ObjectFile.Coff); in mapping()
29 if (ObjectFile.MachO) in mapping()
30 MappingTraits<MachOYAML::Object>::mapping(IO, *ObjectFile.MachO); in mapping()
31 if (ObjectFile.FatMachO) in mapping()
33 *ObjectFile.FatMachO); in mapping()
37 ObjectFile.Elf.reset(new ELFYAML::Object()); in mapping()
[all …]
/external/llvm/lib/ObjectYAML/
DObjectYAML.cpp21 YamlObjectFile &ObjectFile) { in mapping() argument
23 if (ObjectFile.Elf) in mapping()
24 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
25 if (ObjectFile.Coff) in mapping()
26 MappingTraits<COFFYAML::Object>::mapping(IO, *ObjectFile.Coff); in mapping()
27 if (ObjectFile.MachO) in mapping()
28 MappingTraits<MachOYAML::Object>::mapping(IO, *ObjectFile.MachO); in mapping()
29 if (ObjectFile.FatMachO) in mapping()
31 *ObjectFile.FatMachO); in mapping()
34 ObjectFile.Elf.reset(new ELFYAML::Object()); in mapping()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DObjectFile.cpp42 void ObjectFile::anchor() {} in anchor()
44 ObjectFile::ObjectFile(unsigned int Type, MemoryBufferRef Source) in ObjectFile() function in ObjectFile
57 uint64_t ObjectFile::getSymbolValue(DataRefImpl Ref) const { in getSymbolValue()
66 Error ObjectFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const { in printSymbolName()
74 uint32_t ObjectFile::getSymbolAlignment(DataRefImpl DRI) const { return 0; } in getSymbolAlignment()
76 bool ObjectFile::isSectionBitcode(DataRefImpl Sec) const { in isSectionBitcode()
84 bool ObjectFile::isSectionStripped(DataRefImpl Sec) const { return false; } in isSectionStripped()
86 bool ObjectFile::isBerkeleyText(DataRefImpl Sec) const { in isBerkeleyText()
90 bool ObjectFile::isBerkeleyData(DataRefImpl Sec) const { in isBerkeleyData()
95 ObjectFile::getRelocatedSection(DataRefImpl Sec) const { in getRelocatedSection()
[all …]
DObject.cpp23 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap()
24 return reinterpret_cast<OwningBinary<ObjectFile> *>(OF); in unwrap()
27 inline LLVMObjectFileRef wrap(const OwningBinary<ObjectFile> *OF) { in wrap()
29 const_cast<OwningBinary<ObjectFile> *>(OF)); in wrap()
140 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMMachOUniversalBinaryCopyObjectForArch()
150 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileCopySectionIterator()
159 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileIsSectionIteratorAtEnd()
164 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileCopySymbolIterator()
173 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileIsSymbolIteratorAtEnd()
180 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMCreateObjectFile()
[all …]
/external/llvm/lib/Object/
DObjectFile.cpp26 void ObjectFile::anchor() { } in anchor()
28 ObjectFile::ObjectFile(unsigned int Type, MemoryBufferRef Source) in ObjectFile() function in ObjectFile
41 uint64_t ObjectFile::getSymbolValue(DataRefImpl Ref) const { in getSymbolValue()
50 std::error_code ObjectFile::printSymbolName(raw_ostream &OS, in printSymbolName()
59 uint32_t ObjectFile::getSymbolAlignment(DataRefImpl DRI) const { return 0; } in getSymbolAlignment()
61 bool ObjectFile::isSectionBitcode(DataRefImpl Sec) const { in isSectionBitcode()
68 section_iterator ObjectFile::getRelocatedSection(DataRefImpl Sec) const { in getRelocatedSection()
72 Expected<std::unique_ptr<ObjectFile>>
73 ObjectFile::createObjectFile(MemoryBufferRef Object, sys::fs::file_magic Type) { in createObjectFile()
111 Expected<OwningBinary<ObjectFile>>
[all …]
DObject.cpp22 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap()
23 return reinterpret_cast<OwningBinary<ObjectFile> *>(OF); in unwrap()
26 inline LLVMObjectFileRef wrap(const OwningBinary<ObjectFile> *OF) { in wrap()
28 const_cast<OwningBinary<ObjectFile> *>(OF)); in wrap()
64 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMCreateObjectFile()
65 ObjectFile::createObjectFile(Buf->getMemBufferRef())); in LLVMCreateObjectFile()
66 std::unique_ptr<ObjectFile> Obj; in LLVMCreateObjectFile()
73 auto *Ret = new OwningBinary<ObjectFile>(std::move(ObjOrErr.get()), std::move(Buf)); in LLVMCreateObjectFile()
77 void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile) { in LLVMDisposeObjectFile() argument
78 delete unwrap(ObjectFile); in LLVMDisposeObjectFile()
[all …]
/external/llvm/tools/llvm-objdump/
Dllvm-objdump.h24 class ObjectFile; variable
75 void printELFFileHeader(const object::ObjectFile *o);
76 void printCOFFFileHeader(const object::ObjectFile *o);
78 void printMachOFileHeader(const object::ObjectFile *o);
79 void printMachOLoadCommands(const object::ObjectFile *o);
80 void printExportsTrie(const object::ObjectFile *o);
81 void printRebaseTable(const object::ObjectFile *o);
82 void printBindTable(const object::ObjectFile *o);
83 void printLazyBindTable(const object::ObjectFile *o);
84 void printWeakBindTable(const object::ObjectFile *o);
[all …]
/external/llvm/include/llvm/Object/
DObjectFile.h29 class ObjectFile; variable
42 const ObjectFile *OwningObject;
47 RelocationRef(DataRefImpl RelocationP, const ObjectFile *Owner);
63 const ObjectFile *getObject() const;
72 const ObjectFile *OwningObject;
77 SectionRef(DataRefImpl SectionP, const ObjectFile *Owner);
110 const ObjectFile *getObject() const;
130 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner);
132 assert(isa<ObjectFile>(BasicSymbolRef::getObject())); in SymbolRef()
153 const ObjectFile *getObject() const;
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DObjectFile.h42 class ObjectFile; variable
54 const ObjectFile *OwningObject = nullptr;
58 RelocationRef(DataRefImpl RelocationP, const ObjectFile *Owner);
74 const ObjectFile *getObject() const;
85 const ObjectFile *OwningObject = nullptr;
89 SectionRef(DataRefImpl SectionP, const ObjectFile *Owner);
136 const ObjectFile *getObject() const;
176 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner);
178 assert(isa<ObjectFile>(BasicSymbolRef::getObject())); in SymbolRef()
199 const ObjectFile *getObject() const;
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/Symbolize/
DSymbolize.h58 Expected<DILineInfo> symbolizeCode(const ObjectFile &Obj,
79 using ObjectPair = std::pair<const ObjectFile *, const ObjectFile *>;
93 createModuleInfo(const ObjectFile *Obj,
97 ObjectFile *lookUpDsymFile(const std::string &Path,
100 ObjectFile *lookUpDebuglinkObject(const std::string &Path,
101 const ObjectFile *Obj,
103 ObjectFile *lookUpBuildIDObject(const std::string &Path,
114 Expected<ObjectFile *> getOrCreateObject(const std::string &Path,
128 std::map<std::pair<std::string, std::string>, std::unique_ptr<ObjectFile>>
/external/llvm/include/llvm/ExecutionEngine/Orc/
DIRCompileLayer.h34 typedef std::function<object::OwningBinary<object::ObjectFile>(Module &)>
62 std::vector<std::unique_ptr<object::OwningBinary<object::ObjectFile>>> in addModuleSet()
67 llvm::make_unique<object::OwningBinary<object::ObjectFile>>(); in addModuleSet()
121 object::OwningBinary<object::ObjectFile>
125 return object::OwningBinary<object::ObjectFile>(); in tryToLoadFromObjectCache()
127 Expected<std::unique_ptr<object::ObjectFile>> Obj = in tryToLoadFromObjectCache()
128 object::ObjectFile::createObjectFile(ObjBuffer->getMemBufferRef()); in tryToLoadFromObjectCache()
132 return object::OwningBinary<object::ObjectFile>(); in tryToLoadFromObjectCache()
135 return object::OwningBinary<object::ObjectFile>(std::move(*Obj), in tryToLoadFromObjectCache()
DCompileUtils.h34 object::OwningBinary<object::ObjectFile> operator()(Module &M) const { in operator()
45 Expected<std::unique_ptr<object::ObjectFile>> Obj = in operator()
46 object::ObjectFile::createObjectFile(ObjBuffer->getMemBufferRef()); in operator()
47 typedef object::OwningBinary<object::ObjectFile> OwningObj; in operator()
/external/llvm/lib/ExecutionEngine/OProfileJIT/
DOProfileJITEventListener.cpp41 std::map<const char*, OwningBinary<ObjectFile>> DebugObjects;
51 void NotifyObjectEmitted(const ObjectFile &Obj,
54 void NotifyFreeingObject(const ObjectFile &Obj) override;
79 const ObjectFile &Obj, in NotifyObjectEmitted()
85 OwningBinary<ObjectFile> DebugObjOwner = L.getObjectForDebug(Obj); in NotifyObjectEmitted()
86 const ObjectFile &DebugObj = *DebugObjOwner.getBinary(); in NotifyObjectEmitted()
117 void OProfileJITEventListener::NotifyFreeingObject(const ObjectFile &Obj) { in NotifyFreeingObject()
125 const ObjectFile &DebugObj = *DebugObjects[Obj.getData().data()].getBinary(); in NotifyFreeingObject()
/external/llvm/include/llvm/DebugInfo/Symbolize/
DSymbolize.h65 typedef std::pair<ObjectFile*, ObjectFile*> ObjectPair;
74 ObjectFile *lookUpDsymFile(const std::string &Path,
77 ObjectFile *lookUpDebuglinkObject(const std::string &Path,
78 const ObjectFile *Obj,
88 Expected<ObjectFile *> getOrCreateObject(const std::string &Path,
102 std::map<std::pair<std::string, std::string>, std::unique_ptr<ObjectFile>>
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldCOFF.cpp35 OwningBinary<ObjectFile>
36 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug()
37 return OwningBinary<ObjectFile>(); in getObjectForDebug()
60 RuntimeDyldCOFF::loadObject(const object::ObjectFile &O) { in loadObject()
76 bool RuntimeDyldCOFF::isCompatibleFile(const object::ObjectFile &Obj) const { in isCompatibleFile()
DRuntimeDyldMachO.h66 const ObjectFile &BaseTObj, in getRelocationEntry()
85 const ObjectFile &BaseObjT,
98 getRelocationValueRef(const ObjectFile &BaseTObj,
130 loadObject(const object::ObjectFile &O) override;
134 bool isCompatibleFile(const object::ObjectFile &Obj) const override;
158 Error finalizeLoad(const ObjectFile &Obj,
DRuntimeDyldImpl.h336 virtual void setMipsABI(const ObjectFile &Obj) { in setMipsABI()
351 Error emitCommonSymbols(const ObjectFile &Obj,
358 Expected<unsigned> emitSection(const ObjectFile &Obj,
367 Expected<unsigned> findOrEmitSection(const ObjectFile &Obj,
396 const ObjectFile &Obj, ObjSectionToIDMap &ObjSectionToID,
404 Error computeTotalAllocSize(const ObjectFile &Obj,
410 unsigned computeSectionStubBufSize(const ObjectFile &Obj,
414 Expected<ObjSectionToIDMap> loadObjectImpl(const object::ObjectFile &Obj);
439 loadObject(const object::ObjectFile &Obj) = 0;
483 virtual bool isCompatibleFile(const ObjectFile &Obj) const = 0;
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldCOFF.cpp38 OwningBinary<ObjectFile>
39 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug()
40 return OwningBinary<ObjectFile>(); in getObjectForDebug()
65 RuntimeDyldCOFF::loadObject(const object::ObjectFile &O) { in loadObject()
81 bool RuntimeDyldCOFF::isCompatibleFile(const object::ObjectFile &Obj) const { in isCompatibleFile()
DRuntimeDyldMachO.h65 const ObjectFile &BaseTObj, in getRelocationEntry()
84 const ObjectFile &BaseObjT,
98 getRelocationValueRef(const ObjectFile &BaseTObj,
130 loadObject(const object::ObjectFile &O) override;
134 bool isCompatibleFile(const object::ObjectFile &Obj) const override;
158 Error finalizeLoad(const ObjectFile &Obj,
/external/llvm/include/llvm-c/
DObject.h44 void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile);
47 LLVMSectionIteratorRef LLVMGetSections(LLVMObjectFileRef ObjectFile);
49 LLVMBool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
56 LLVMSymbolIteratorRef LLVMGetSymbols(LLVMObjectFileRef ObjectFile);
58 LLVMBool LLVMIsSymbolIteratorAtEnd(LLVMObjectFileRef ObjectFile,
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.h81 const object::ObjectFile &O) override { in notifyObjectLoaded()
86 const object::ObjectFile &O) override { in notifyObjectLoaded()
174 void addObjectFile(std::unique_ptr<object::ObjectFile> O) override { in addObjectFile()
175 std::vector<std::unique_ptr<object::ObjectFile>> Objs; in addObjectFile()
180 void addObjectFile(object::OwningBinary<object::ObjectFile> O) override { in addObjectFile()
181 std::vector<std::unique_ptr<object::OwningBinary<object::ObjectFile>>> Objs; in addObjectFile()
183 llvm::make_unique<object::OwningBinary<object::ObjectFile>>( in addObjectFile()
276 std::vector<std::unique_ptr<object::ObjectFile>> ObjSet; in scanArchives()
277 ObjSet.push_back(std::unique_ptr<object::ObjectFile>( in scanArchives()
278 static_cast<object::ObjectFile *>(ChildBin.release()))); in scanArchives()
[all …]
/external/llvm/lib/ExecutionEngine/
DGDBRegistrationListener.cpp69 OwningBinary<ObjectFile> Obj) in RegisteredObjectInfo()
84 OwningBinary<ObjectFile> Obj;
111 void NotifyObjectEmitted(const ObjectFile &Object,
117 void NotifyFreeingObject(const ObjectFile &Object) override;
160 const ObjectFile &Object, in NotifyObjectEmitted()
163 OwningBinary<ObjectFile> DebugObj = L.getObjectForDebug(Object); in NotifyObjectEmitted()
193 void GDBJITRegistrationListener::NotifyFreeingObject(const ObjectFile& Object) { in NotifyFreeingObject()
/external/llvm/lib/ExecutionEngine/IntelJITEvents/
DIntelJITEventListener.cpp49 std::map<const char*, OwningBinary<ObjectFile>> DebugObjects;
59 void NotifyObjectEmitted(const ObjectFile &Obj,
62 void NotifyFreeingObject(const ObjectFile &Obj) override;
99 const ObjectFile &Obj, in NotifyObjectEmitted()
102 OwningBinary<ObjectFile> DebugObjOwner = L.getObjectForDebug(Obj); in NotifyObjectEmitted()
103 const ObjectFile &DebugObj = *DebugObjOwner.getBinary(); in NotifyObjectEmitted()
191 void IntelJITEventListener::NotifyFreeingObject(const ObjectFile &Obj) { in NotifyFreeingObject()
198 const ObjectFile &DebugObj = *DebugObjects[Obj.getData().data()].getBinary(); in NotifyFreeingObject()
/external/llvm/tools/llvm-size/
Dllvm-size.cpp177 static bool considerForSize(ObjectFile *Obj, SectionRef Section) { in considerForSize()
192 static uint64_t getCommonSize(ObjectFile *Obj) { in getCommonSize()
353 static void printObjectSectionSizes(ObjectFile *Obj) { in printObjectSectionSizes()
487 static bool checkMachOAndArchFlags(ObjectFile *o, StringRef file) { in checkMachOAndArchFlags()
538 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
570 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes()
572 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes()
610 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
661 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes()
663 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DObject.h209 void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile);
212 LLVMSectionIteratorRef LLVMGetSections(LLVMObjectFileRef ObjectFile);
215 LLVMBool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
219 LLVMSymbolIteratorRef LLVMGetSymbols(LLVMObjectFileRef ObjectFile);
222 LLVMBool LLVMIsSymbolIteratorAtEnd(LLVMObjectFileRef ObjectFile,

123456789