llvm::RuntimeDyld::MemoryManager

Memory Management.

Synopsis

Declared in <llvm/ExecutionEngine/RuntimeDyld.h>

class MemoryManager;

Types

NameDescription
TLSSection An allocated TLS section

Member Functions

NameDescription
MemoryManager [constructor]Construct a default memory manager.
~MemoryManager [destructor] [virtual]Destroy the memory manager.
allocateCodeSection [virtual]Allocate a memory block suitable for executable code.
allocateDataSection [virtual]Allocate a memory block suitable for data.
allocateTLSSection [virtual]Allocate a memory block to be used for thread-local storage (TLS).
allowStubAllocation [virtual]Return whether stub space may be allocated for this memory manager.
deregisterEHFrames [virtual]Deregister previously registered EH frames with the runtime.
finalizeMemory [virtual]Apply section permissions and cache coherency after loading completes.
needsToReserveAllocationSpace [virtual]Override to return true to enable the reserveAllocationSpace callback.
notifyObjectLoaded [virtual]This method is called after an object has been loaded into memory but before relocations are applied to the loaded sections.
registerEHFrames [virtual]Register the EH frames with the runtime so that c++ exceptions work.
reserveAllocationSpace [virtual]Inform the memory manager of total memory needed for all sections.

Friends

NameDescription
llvm::RuntimeDyldRuntime dynamic linker used by MCJIT and related ORC layers.

Derived Classes

NameDescription
EPCGenericRTDyldMemoryManager Remote-mapped RuntimeDyld-compatible memory manager.
MCJITMemoryManager Memory manager interface for MCJIT with ExecutionEngine-aware callbacks.