LLVM 20.0.0git
|
Public Member Functions | |
InFlightAlloc (MapperJITLinkMemoryManager &Parent, LinkGraph &G, ExecutorAddr AllocAddr, std::vector< MemoryMapper::AllocInfo::SegInfo > Segs) | |
void | finalize (OnFinalizedFunction OnFinalize) override |
Called to transfer working memory to the target and apply finalization. | |
void | abandon (OnAbandonedFunction OnFinalize) 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. | |
Additional Inherited Members | |
Public Types inherited from llvm::jitlink::JITLinkMemoryManager::InFlightAlloc | |
using | OnFinalizedFunction = unique_function< void(Expected< FinalizedAlloc >)> |
using | OnAbandonedFunction = unique_function< void(Error)> |
Definition at line 19 of file MapperJITLinkMemoryManager.cpp.
|
inline |
Definition at line 22 of file MapperJITLinkMemoryManager.cpp.
References G.
|
inlineoverridevirtual |
Called prior to finalization if the allocation should be abandoned.
Implements llvm::jitlink::JITLinkMemoryManager::InFlightAlloc.
Definition at line 45 of file MapperJITLinkMemoryManager.cpp.
|
inlineoverridevirtual |
Called to transfer working memory to the target and apply finalization.
Implements llvm::jitlink::JITLinkMemoryManager::InFlightAlloc.
Definition at line 27 of file MapperJITLinkMemoryManager.cpp.
References llvm::orc::MemoryMapper::AllocInfo::Actions, llvm::jitlink::LinkGraph::allocActions(), llvm::orc::MemoryMapper::AllocInfo::MappingBase, llvm::orc::Result, llvm::orc::MemoryMapper::AllocInfo::Segments, and std::swap().