LLVM 20.0.0git
Public Member Functions | List of all members
llvm::jitlink::InProcessMemoryManager::IPInFlightAlloc Class Reference
Inheritance diagram for llvm::jitlink::InProcessMemoryManager::IPInFlightAlloc:
Inheritance graph
[legend]

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.
 

Additional Inherited Members

Detailed Description

Definition at line 239 of file JITLinkMemoryManager.cpp.

Constructor & Destructor Documentation

◆ IPInFlightAlloc()

llvm::jitlink::InProcessMemoryManager::IPInFlightAlloc::IPInFlightAlloc ( InProcessMemoryManager MemMgr,
LinkGraph G,
BasicLayout  BL,
sys::MemoryBlock  StandardSegments,
sys::MemoryBlock  FinalizationSegments 
)
inline

Definition at line 242 of file JITLinkMemoryManager.cpp.

References G.

◆ ~IPInFlightAlloc()

llvm::jitlink::InProcessMemoryManager::IPInFlightAlloc::~IPInFlightAlloc ( )
inline

Definition at line 249 of file JITLinkMemoryManager.cpp.

References assert().

Member Function Documentation

◆ abandon()

void llvm::jitlink::InProcessMemoryManager::IPInFlightAlloc::abandon ( OnAbandonedFunction  OnAbandoned)
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().

◆ finalize()

void llvm::jitlink::InProcessMemoryManager::IPInFlightAlloc::finalize ( OnFinalizedFunction  OnFinalized)
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().


The documentation for this class was generated from the following file: