LLVM 20.0.0git
|
Classes | |
struct | SegInfo |
Public Types | |
using | SegInfoMap = AllocGroupSmallMap< SegInfo > |
Public Types inherited from llvm::jitlink::JITLinkMemoryManager::InFlightAlloc | |
using | OnFinalizedFunction = unique_function< void(Expected< FinalizedAlloc >)> |
using | OnAbandonedFunction = unique_function< void(Error)> |
Public Member Functions | |
InFlightAlloc (EPCGenericJITLinkMemoryManager &Parent, LinkGraph &G, ExecutorAddr AllocAddr, SegInfoMap Segs) | |
void | finalize (OnFinalizedFunction OnFinalize) override |
Called to transfer working memory to the target and apply finalization. | |
void | abandon (OnAbandonedFunction OnAbandoned) override |
Called prior to finalization if the allocation should be abandoned. | |
Public Member Functions inherited from llvm::jitlink::JITLinkMemoryManager::InFlightAlloc | |
virtual | ~InFlightAlloc () |
virtual void | abandon (OnAbandonedFunction OnAbandoned)=0 |
Called prior to finalization if the allocation should be abandoned. | |
virtual void | finalize (OnFinalizedFunction OnFinalized)=0 |
Called to transfer working memory to the target and apply finalization. | |
Expected< FinalizedAlloc > | finalize () |
Synchronous convenience version of finalize. | |
Definition at line 21 of file EPCGenericJITLinkMemoryManager.cpp.
using llvm::orc::EPCGenericJITLinkMemoryManager::InFlightAlloc::SegInfoMap = AllocGroupSmallMap<SegInfo> |
Definition at line 38 of file EPCGenericJITLinkMemoryManager.cpp.
|
inline |
Definition at line 40 of file EPCGenericJITLinkMemoryManager.cpp.
References G.
|
inlineoverridevirtual |
Called prior to finalization if the allocation should be abandoned.
Implements llvm::jitlink::JITLinkMemoryManager::InFlightAlloc.
Definition at line 76 of file EPCGenericJITLinkMemoryManager.cpp.
References llvm::orc::EPCGenericJITLinkMemoryManager::SymbolAddrs::Allocator, llvm::orc::ExecutorProcessControl::callSPSWrapperAsync(), llvm::cantFail(), and llvm::orc::EPCGenericJITLinkMemoryManager::SymbolAddrs::Deallocate.
|
inlineoverridevirtual |
Called to transfer working memory to the target and apply finalization.
Implements llvm::jitlink::JITLinkMemoryManager::InFlightAlloc.
Definition at line 44 of file EPCGenericJITLinkMemoryManager.cpp.
References llvm::orc::tpctypes::FinalizeRequest::Actions, llvm::orc::tpctypes::SegFinalizeRequest::Addr, llvm::alignTo(), llvm::jitlink::LinkGraph::allocActions(), llvm::orc::EPCGenericJITLinkMemoryManager::SymbolAddrs::Allocator, assert(), llvm::orc::ExecutorProcessControl::callSPSWrapperAsync(), llvm::cantFail(), llvm::orc::EPCGenericJITLinkMemoryManager::SymbolAddrs::Finalize, llvm::orc::ExecutorProcessControl::getPageSize(), llvm::orc::tpctypes::FinalizeRequest::Segments, and std::swap().