LLVM 22.0.0git
|
Represents a finalized allocation. More...
#include "llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h"
Public Member Functions | |
FinalizedAlloc ()=default | |
FinalizedAlloc (orc::ExecutorAddr A) | |
FinalizedAlloc (const FinalizedAlloc &)=delete | |
FinalizedAlloc (FinalizedAlloc &&Other) | |
FinalizedAlloc & | operator= (const FinalizedAlloc &)=delete |
FinalizedAlloc & | operator= (FinalizedAlloc &&Other) |
~FinalizedAlloc () | |
operator bool () const | |
FinalizedAllocs convert to false for default-constructed, and true otherwise. | |
orc::ExecutorAddr | getAddress () const |
Returns the address associated with this finalized allocation. | |
orc::ExecutorAddr | release () |
Returns the address associated with this finalized allocation and resets this object to the default state. |
Friends | |
class | JITLinkMemoryManager |
Represents a finalized allocation.
Finalized allocations must be passed to the JITLinkMemoryManager:deallocate method prior to being destroyed.
The interpretation of the Address associated with the finalized allocation is up to the memory manager implementation. Common options are using the base address of the allocation, or the address of a memory management object that tracks the allocation.
Definition at line 59 of file JITLinkMemoryManager.h.
|
default |
Referenced by FinalizedAlloc(), FinalizedAlloc(), operator=(), and operator=().
|
inlineexplicit |
Definition at line 66 of file JITLinkMemoryManager.h.
References assert().
|
delete |
References FinalizedAlloc().
|
inline |
Definition at line 71 of file JITLinkMemoryManager.h.
References FinalizedAlloc(), and llvm::Other.
|
inline |
Definition at line 81 of file JITLinkMemoryManager.h.
References assert().
|
inline |
Returns the address associated with this finalized allocation.
The allocation is unmodified.
Definition at line 92 of file JITLinkMemoryManager.h.
Referenced by llvm::orc::shared::SPSSerializationTraits< SPSExecutorAddr, jitlink::JITLinkMemoryManager::FinalizedAlloc >::serialize(), and llvm::orc::shared::SPSSerializationTraits< SPSExecutorAddr, jitlink::JITLinkMemoryManager::FinalizedAlloc >::size().
|
inlineexplicit |
FinalizedAllocs convert to false for default-constructed, and true otherwise.
Default-constructed allocs need not be deallocated.
Definition at line 88 of file JITLinkMemoryManager.h.
|
delete |
References FinalizedAlloc().
|
inline |
Definition at line 75 of file JITLinkMemoryManager.h.
References assert(), FinalizedAlloc(), llvm::Other, and std::swap().
|
inline |
Returns the address associated with this finalized allocation and resets this object to the default state.
This should only be used by allocators when deallocating memory.
Definition at line 97 of file JITLinkMemoryManager.h.
References llvm::orc::ExecutorAddr::setValue().
|
friend |
Definition at line 60 of file JITLinkMemoryManager.h.
References JITLinkMemoryManager.
Referenced by JITLinkMemoryManager.