LLVM API Documentation
#include <Memory.h>
Static Public Member Functions | |
Functions | |
static MemoryBlock | AllocateRWX (unsigned NumBytes) |
Allocate Read/Write/Execute memory. | |
static void | ReleaseRWX (MemoryBlock &block) |
Release Read/Write/Execute memory. |
This class provides various memory handling functions that manipulate MemoryBlock instances.
Definition at line 39 of file Memory.h.
|
Allocate Read/Write/Execute memory.
This method allocates a block of Read/Write/Execute memory that is suitable for executing dynamically generated code (e.g. JIT). An attempt to allocate
Definition at line 29 of file AIX/Memory.cpp. References llvm::sys::MemoryBlock::Address, llvm::GetPageSize(), and llvm::sys::MemoryBlock::Size. |
|
Release Read/Write/Execute memory. This method releases a block of Read/Write/Execute memory that was allocated with the AllocateRWX method. It should not be used to release any memory block allocated any other way.
Definition at line 46 of file AIX/Memory.cpp. References llvm::sys::MemoryBlock::Address, and llvm::sys::MemoryBlock::Size. |