LLVM 22.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 () |
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 llvm::orc::EPCGenericJITLinkMemoryManager::EPCGenericJITLinkMemoryManager(), and llvm::move().
|
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::ArrayRef(), and llvm::cantFail().
|
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::alignTo(), assert(), llvm::cantFail(), llvm::orc::tpctypes::FinalizeRequest::Segments, and std::swap().