LLVM 20.0.0git
|
A pair of memory protections and allocation policies. More...
#include "llvm/ExecutionEngine/Orc/Shared/MemoryFlags.h"
Public Member Functions | |
AllocGroup ()=default | |
Create a default AllocGroup. | |
AllocGroup (MemProt MP) | |
Create an AllocGroup from a MemProt only – uses MemLifetime::Standard. | |
AllocGroup (MemProt MP, MemLifetime MLP) | |
Create an AllocGroup from a MemProt and a MemLifetime. | |
MemProt | getMemProt () const |
Returns the MemProt for this group. | |
MemLifetime | getMemLifetime () const |
Returns the MemLifetime for this group. | |
Static Public Attributes | |
static constexpr unsigned | NumGroups = MaxIdentifiers |
Friends | |
struct | llvm::DenseMapInfo< AllocGroup > |
bool | operator== (const AllocGroup &LHS, const AllocGroup &RHS) |
bool | operator!= (const AllocGroup &LHS, const AllocGroup &RHS) |
bool | operator< (const AllocGroup &LHS, const AllocGroup &RHS) |
A pair of memory protections and allocation policies.
Optimized for use as a small map key.
Definition at line 110 of file MemoryFlags.h.
|
default |
Create a default AllocGroup.
No memory protections, standard lifetime policy.
|
inline |
Create an AllocGroup from a MemProt only – uses MemLifetime::Standard.
Definition at line 128 of file MemoryFlags.h.
|
inline |
Create an AllocGroup from a MemProt and a MemLifetime.
Definition at line 131 of file MemoryFlags.h.
|
inline |
Returns the MemLifetime for this group.
Definition at line 141 of file MemoryFlags.h.
Referenced by llvm::orc::tpctypes::RemoteAllocGroup::RemoteAllocGroup().
|
inline |
Returns the MemProt for this group.
Definition at line 136 of file MemoryFlags.h.
|
friend |
Definition at line 205 of file MemoryFlags.h.
|
friend |
Definition at line 149 of file MemoryFlags.h.
|
friend |
Definition at line 153 of file MemoryFlags.h.
|
friend |
Definition at line 145 of file MemoryFlags.h.
|
staticconstexpr |
Definition at line 120 of file MemoryFlags.h.
Referenced by llvm::jitlink::SimpleSegmentAlloc::Create().