LLVM 20.0.0git
|
Public Member Functions | |
IPInFlightAlloc (InProcessMemoryManager &MemMgr, LinkGraph &G, BasicLayout BL, sys::MemoryBlock StandardSegments, sys::MemoryBlock FinalizationSegments) | |
~IPInFlightAlloc () | |
void | finalize (OnFinalizedFunction OnFinalized) 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. | |
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 239 of file JITLinkMemoryManager.cpp.
|
inline |
Definition at line 242 of file JITLinkMemoryManager.cpp.
References G.
|
inline |
Definition at line 249 of file JITLinkMemoryManager.cpp.
References assert().
|
inlineoverridevirtual |
Called prior to finalization if the allocation should be abandoned.
Implements llvm::jitlink::JITLinkMemoryManager::InFlightAlloc.
Definition at line 286 of file JITLinkMemoryManager.cpp.
References llvm::errorCodeToError(), llvm::joinErrors(), llvm::sys::Memory::releaseMappedMemory(), and llvm::Error::success().
|
inlineoverridevirtual |
Called to transfer working memory to the target and apply finalization.
Implements llvm::jitlink::JITLinkMemoryManager::InFlightAlloc.
Definition at line 253 of file JITLinkMemoryManager.cpp.
References llvm::jitlink::LinkGraph::allocActions(), llvm::errorCodeToError(), and llvm::sys::Memory::releaseMappedMemory().