LLVM
15.0.0git
|
A pair of memory protections and allocation policies. More...
#include "llvm/ExecutionEngine/JITLink/MemoryFlags.h"
Public Member Functions | |
AllocGroup ()=default | |
Create a default AllocGroup. More... | |
AllocGroup (MemProt MP) | |
Create an AllocGroup from a MemProt only – uses MemoryDeallocationPolicy::Standard. More... | |
AllocGroup (MemProt MP, MemDeallocPolicy MDP) | |
Create an AllocGroup from a MemProt and a MemoryDeallocationPolicy. More... | |
MemProt | getMemProt () const |
Returns the MemProt for this group. More... | |
MemDeallocPolicy | getMemDeallocPolicy () const |
Returns the MemoryDeallocationPolicy for this group. More... | |
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 87 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 105 of file MemoryFlags.h.
|
inline |
Create an AllocGroup from a MemProt and a MemoryDeallocationPolicy.
Definition at line 108 of file MemoryFlags.h.
|
inline |
Returns the MemoryDeallocationPolicy for this group.
Definition at line 118 of file MemoryFlags.h.
Referenced by llvm::jitlink::operator<<().
|
inline |
Returns the MemProt for this group.
Definition at line 113 of file MemoryFlags.h.
Referenced by llvm::jitlink::operator<<().
|
friend |
Definition at line 88 of file MemoryFlags.h.
|
friend |
Definition at line 126 of file MemoryFlags.h.
|
friend |
Definition at line 130 of file MemoryFlags.h.
|
friend |
Definition at line 122 of file MemoryFlags.h.
|
staticconstexpr |
Definition at line 97 of file MemoryFlags.h.
Referenced by llvm::jitlink::SimpleSegmentAlloc::Create().