LLVM  10.0.0svn
Public Types | Public Member Functions | List of all members
llvm::jitlink::JITLinkMemoryManager::Allocation Class Referenceabstract

Represents an allocation created by the memory manager. More...

#include "llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h"

Public Types

using FinalizeContinuation = std::function< void(Error)>
 

Public Member Functions

virtual ~Allocation ()
 
virtual MutableArrayRef< chargetWorkingMemory (ProtectionFlags Seg)=0
 Should return the address of linker working memory for the segment with the given protection flags. More...
 
virtual JITTargetAddress getTargetMemory (ProtectionFlags Seg)=0
 Should return the final address in the target process where the segment will reside. More...
 
virtual void finalizeAsync (FinalizeContinuation OnFinalize)=0
 Should transfer from working memory to target memory, and release working memory. More...
 
virtual Error deallocate ()=0
 Should deallocate target memory. More...
 

Detailed Description

Represents an allocation created by the memory manager.

An allocation object is responsible for allocating and owning jit-linker working and target memory, and for transfering from working to target memory.

Definition at line 60 of file JITLinkMemoryManager.h.

Member Typedef Documentation

◆ FinalizeContinuation

Definition at line 62 of file JITLinkMemoryManager.h.

Constructor & Destructor Documentation

◆ ~Allocation()

llvm::jitlink::JITLinkMemoryManager::Allocation::~Allocation ( )
virtualdefault

Member Function Documentation

◆ deallocate()

virtual Error llvm::jitlink::JITLinkMemoryManager::Allocation::deallocate ( )
pure virtual

Should deallocate target memory.

◆ finalizeAsync()

virtual void llvm::jitlink::JITLinkMemoryManager::Allocation::finalizeAsync ( FinalizeContinuation  OnFinalize)
pure virtual

Should transfer from working memory to target memory, and release working memory.

◆ getTargetMemory()

virtual JITTargetAddress llvm::jitlink::JITLinkMemoryManager::Allocation::getTargetMemory ( ProtectionFlags  Seg)
pure virtual

Should return the final address in the target process where the segment will reside.

◆ getWorkingMemory()

virtual MutableArrayRef<char> llvm::jitlink::JITLinkMemoryManager::Allocation::getWorkingMemory ( ProtectionFlags  Seg)
pure virtual

Should return the address of linker working memory for the segment with the given protection flags.

Referenced by llvm::jitlink::JITLinker< MachOJITLinker_x86_64 >::link().


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