LLVM 17.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]
Collaboration diagram for llvm::jitlink::InProcessMemoryManager::IPInFlightAlloc:
Collaboration graph
[legend]

Public Member Functions

 IPInFlightAlloc (InProcessMemoryManager &MemMgr, LinkGraph &G, BasicLayout BL, sys::MemoryBlock StandardSegments, sys::MemoryBlock FinalizationSegments)
 
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 233 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 236 of file JITLinkMemoryManager.cpp.

References G.

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 269 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 243 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: