LLVM 17.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 MemoryDeallocationPolicy::Standard. | |
AllocGroup (MemProt MP, MemDeallocPolicy MDP) | |
Create an AllocGroup from a MemProt and a MemoryDeallocationPolicy. | |
MemProt | getMemProt () const |
Returns the MemProt for this group. | |
MemDeallocPolicy | getMemDeallocPolicy () const |
Returns the MemoryDeallocationPolicy 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 93 of file MemoryFlags.h.
|
default |
Create a default AllocGroup.
No memory protections, standard deallocation policy.
|
inline |
Create an AllocGroup from a MemProt only – uses MemoryDeallocationPolicy::Standard.
Definition at line 111 of file MemoryFlags.h.
|
inline |
Create an AllocGroup from a MemProt and a MemoryDeallocationPolicy.
Definition at line 114 of file MemoryFlags.h.
|
inline |
Returns the MemoryDeallocationPolicy for this group.
Definition at line 124 of file MemoryFlags.h.
Referenced by llvm::orc::shared::SPSSerializationTraits< SPSAllocGroup, AllocGroup >::serialize().
|
inline |
Returns the MemProt for this group.
Definition at line 119 of file MemoryFlags.h.
Referenced by llvm::orc::shared::SPSSerializationTraits< SPSAllocGroup, AllocGroup >::serialize().
|
friend |
Definition at line 188 of file MemoryFlags.h.
|
friend |
Definition at line 132 of file MemoryFlags.h.
|
friend |
Definition at line 136 of file MemoryFlags.h.
|
friend |
Definition at line 128 of file MemoryFlags.h.
|
staticconstexpr |
Definition at line 103 of file MemoryFlags.h.
Referenced by llvm::jitlink::SimpleSegmentAlloc::Create().