|
LLVM
7.0.0
|
#include "llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h"
Public Types | |
| using | NotifyLoadedFunction = std::function< void(VModuleKey, const object::ObjectFile &Obj, const RuntimeDyld::LoadedObjectInfo &)> |
| Functor for receiving object-loaded notifications. More... | |
| using | NotifyFinalizedFunction = std::function< void(VModuleKey)> |
| Functor for receiving finalization notifications. More... | |
| using | GetMemoryManagerFunction = std::function< std::shared_ptr< RuntimeDyld::MemoryManager >(VModuleKey)> |
Public Member Functions | |
| RTDyldObjectLinkingLayer2 (ExecutionSession &ES, GetMemoryManagerFunction GetMemoryManager, NotifyLoadedFunction NotifyLoaded=NotifyLoadedFunction(), NotifyFinalizedFunction NotifyFinalized=NotifyFinalizedFunction()) | |
| Construct an ObjectLinkingLayer with the given NotifyLoaded, and NotifyFinalized functors. More... | |
| void | emit (MaterializationResponsibility R, VModuleKey K, std::unique_ptr< MemoryBuffer > O) override |
| Emit the object. More... | |
| void | mapSectionAddress (VModuleKey K, const void *LocalAddress, JITTargetAddress TargetAddr) const |
| Map section addresses for the object associated with the VModuleKey K. More... | |
| void | setProcessAllSections (bool ProcessAllSections) |
| Set the 'ProcessAllSections' flag. More... | |
Public Member Functions inherited from llvm::orc::ObjectLayer | |
| ObjectLayer (ExecutionSession &ES) | |
| virtual | ~ObjectLayer () |
| ExecutionSession & | getExecutionSession () |
| Returns the execution session for this layer. More... | |
| virtual Error | add (VSO &V, VModuleKey K, std::unique_ptr< MemoryBuffer > O) |
| Adds a MaterializationUnit representing the given IR to the given VSO. More... | |
Definition at line 39 of file RTDyldObjectLinkingLayer.h.
| using llvm::orc::RTDyldObjectLinkingLayer2::GetMemoryManagerFunction = std::function<std::shared_ptr<RuntimeDyld::MemoryManager>(VModuleKey)> |
Definition at line 50 of file RTDyldObjectLinkingLayer.h.
| using llvm::orc::RTDyldObjectLinkingLayer2::NotifyFinalizedFunction = std::function<void(VModuleKey)> |
Functor for receiving finalization notifications.
Definition at line 47 of file RTDyldObjectLinkingLayer.h.
| using llvm::orc::RTDyldObjectLinkingLayer2::NotifyLoadedFunction = std::function<void(VModuleKey, const object::ObjectFile &Obj, const RuntimeDyld::LoadedObjectInfo &)> |
Functor for receiving object-loaded notifications.
Definition at line 44 of file RTDyldObjectLinkingLayer.h.
| llvm::orc::RTDyldObjectLinkingLayer2::RTDyldObjectLinkingLayer2 | ( | ExecutionSession & | ES, |
| GetMemoryManagerFunction | GetMemoryManager, | ||
| NotifyLoadedFunction | NotifyLoaded = NotifyLoadedFunction(), |
||
| NotifyFinalizedFunction | NotifyFinalized = NotifyFinalizedFunction() |
||
| ) |
Construct an ObjectLinkingLayer with the given NotifyLoaded, and NotifyFinalized functors.
Definition at line 81 of file RTDyldObjectLinkingLayer.cpp.
|
overridevirtual |
Emit the object.
Implements llvm::orc::ObjectLayer.
Definition at line 88 of file RTDyldObjectLinkingLayer.cpp.
References assert(), llvm::object::ObjectFile::createObjectFile(), llvm::orc::MaterializationResponsibility::failMaterialization(), llvm::orc::MaterializationResponsibility::finalize(), llvm::orc::ObjectLayer::getExecutionSession(), llvm::inconvertibleErrorCode(), llvm::Lock, llvm::orc::ExecutionSessionBase::reportError(), llvm::orc::MaterializationResponsibility::resolve(), and llvm::object::BasicSymbolRef::SF_Global.
| void llvm::orc::RTDyldObjectLinkingLayer2::mapSectionAddress | ( | VModuleKey | K, |
| const void * | LocalAddress, | ||
| JITTargetAddress | TargetAddr | ||
| ) | const |
Map section addresses for the object associated with the VModuleKey K.
Definition at line 166 of file RTDyldObjectLinkingLayer.cpp.
References assert(), and llvm::Lock.
|
inline |
Set the 'ProcessAllSections' flag.
If set to true, all sections in each object file will be allocated using the memory manager, rather than just the sections required for execution.
This is kludgy, and may be removed in the future.
Definition at line 74 of file RTDyldObjectLinkingLayer.h.
1.8.13