LLVM 20.0.0git
|
This class encapsulates the notion of a memory block which has an address and a size. More...
#include "llvm/Support/Memory.h"
Public Member Functions | |
MemoryBlock () | |
MemoryBlock (void *addr, size_t allocatedSize) | |
void * | base () const |
size_t | allocatedSize () const |
The size as it was allocated. | |
Friends | |
class | Memory |
This class encapsulates the notion of a memory block which has an address and a size.
It is used by the Memory class (a friend) as the result of various memory allocation operations.
|
inline |
|
inline |
The size as it was allocated.
This is always greater or equal to the size that was originally requested.
Definition at line 40 of file Memory.h.
Referenced by llvm::jitlink::InProcessMemoryManager::allocate(), llvm::sys::OwningMemoryBlock::allocatedSize(), llvm::sys::operator<<(), and llvm::trimBlockToPageSize().
|
inline |
Definition at line 37 of file Memory.h.
Referenced by llvm::jitlink::InProcessMemoryManager::allocate(), llvm::sys::OwningMemoryBlock::base(), llvm::sys::operator<<(), llvm::sys::OwningMemoryBlock::release(), llvm::trimBlockToPageSize(), and llvm::sys::OwningMemoryBlock::~OwningMemoryBlock().