LLVM 17.0.0git
|
The plugin creates a debug object from when JITLink starts processing the corresponding LinkGraph. More...
Public Types | |
using | FinalizeContinuation = std::function< void(Expected< ExecutorAddrRange >)> |
Public Member Functions | |
DebugObject (JITLinkMemoryManager &MemMgr, const JITLinkDylib *JD, ExecutionSession &ES) | |
void | set (Requirement Req) |
bool | has (Requirement Req) const |
void | finalizeAsync (FinalizeContinuation OnFinalize) |
virtual | ~DebugObject () |
virtual void | reportSectionTargetMemoryRange (StringRef Name, SectionRange TargetMem) |
Protected Types | |
using | InFlightAlloc = JITLinkMemoryManager::InFlightAlloc |
using | FinalizedAlloc = JITLinkMemoryManager::FinalizedAlloc |
Protected Member Functions | |
virtual Expected< SimpleSegmentAlloc > | finalizeWorkingMemory ()=0 |
Protected Attributes | |
JITLinkMemoryManager & | MemMgr |
const JITLinkDylib * | JD = nullptr |
The plugin creates a debug object from when JITLink starts processing the corresponding LinkGraph.
It provides access to the pass configuration of the LinkGraph and calls the finalization function, once the resulting link artifact was emitted.
Definition at line 126 of file DebugObjectManagerPlugin.cpp.
using llvm::orc::DebugObject::FinalizeContinuation = std::function<void(Expected<ExecutorAddrRange>)> |
Definition at line 135 of file DebugObjectManagerPlugin.cpp.
|
protected |
Definition at line 153 of file DebugObjectManagerPlugin.cpp.
|
protected |
Definition at line 152 of file DebugObjectManagerPlugin.cpp.
|
inline |
Definition at line 128 of file DebugObjectManagerPlugin.cpp.
|
inlinevirtual |
Definition at line 139 of file DebugObjectManagerPlugin.cpp.
References llvm::jitlink::JITLinkMemoryManager::deallocate(), MemMgr, and llvm::orc::ExecutionSession::reportError().
void llvm::orc::DebugObject::finalizeAsync | ( | FinalizeContinuation | OnFinalize | ) |
Definition at line 169 of file DebugObjectManagerPlugin.cpp.
References assert(), finalizeWorkingMemory(), llvm::orc::Read, and llvm::Expected< T >::takeError().
|
protectedpure virtual |
Implemented in llvm::orc::ELFDebugObject.
Referenced by finalizeAsync().
|
inline |
Definition at line 133 of file DebugObjectManagerPlugin.cpp.
Referenced by llvm::orc::DebugObjectManagerPlugin::modifyPassConfig().
|
inlinevirtual |
Reimplemented in llvm::orc::ELFDebugObject.
Definition at line 148 of file DebugObjectManagerPlugin.cpp.
Referenced by llvm::orc::DebugObjectManagerPlugin::modifyPassConfig().
|
inline |
Definition at line 132 of file DebugObjectManagerPlugin.cpp.
|
protected |
Definition at line 158 of file DebugObjectManagerPlugin.cpp.
Referenced by llvm::orc::ELFDebugObject::finalizeWorkingMemory().
|
protected |
Definition at line 157 of file DebugObjectManagerPlugin.cpp.
Referenced by llvm::orc::ELFDebugObject::finalizeWorkingMemory(), and ~DebugObject().