LLVM
15.0.0git
|
Classes | |
struct | SegInfo |
Public Types | |
using | SegInfoMap = AllocGroupSmallMap< SegInfo > |
![]() | |
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. More... | |
void | abandon (OnAbandonedFunction OnAbandoned) override |
Called prior to finalization if the allocation should be abandoned. More... | |
![]() | |
virtual | ~InFlightAlloc () |
Expected< FinalizedAlloc > | finalize () |
Synchronous convenience version of finalize. More... | |
Definition at line 22 of file EPCGenericJITLinkMemoryManager.cpp.
using llvm::orc::EPCGenericJITLinkMemoryManager::InFlightAlloc::SegInfoMap = AllocGroupSmallMap<SegInfo> |
Definition at line 39 of file EPCGenericJITLinkMemoryManager.cpp.
|
inline |
Definition at line 41 of file EPCGenericJITLinkMemoryManager.cpp.
|
inlineoverridevirtual |
Called prior to finalization if the allocation should be abandoned.
Implements llvm::jitlink::JITLinkMemoryManager::InFlightAlloc.
Definition at line 78 of file EPCGenericJITLinkMemoryManager.cpp.
References llvm::cantFail(), and move.
|
inlineoverridevirtual |
Called to transfer working memory to the target and apply finalization.
Implements llvm::jitlink::JITLinkMemoryManager::InFlightAlloc.
Definition at line 45 of file EPCGenericJITLinkMemoryManager.cpp.
References llvm::orc::tpctypes::FinalizeRequest::Actions, llvm::alignTo(), assert(), llvm::cantFail(), G, llvm::max(), move, llvm::orc::tpctypes::FinalizeRequest::Segments, std::swap(), llvm::jitlink::toSysMemoryProtectionFlags(), and llvm::orc::tpctypes::toWireProtectionFlags().