LLVM
8.0.1
|
#include "llvm/Support/PointerLikeTypeTraits.h"
Public Types | |
enum | { NumLowBitsAvailable = 2 } |
Note, we assume here that void* is related to raw malloc'ed memory and that malloc returns objects at least 4-byte aligned. More... | |
Static Public Member Functions | |
static void * | getAsVoidPointer (void *P) |
static void * | getFromVoidPointer (void *P) |
Definition at line 63 of file PointerLikeTypeTraits.h.
anonymous enum |
Note, we assume here that void* is related to raw malloc'ed memory and that malloc returns objects at least 4-byte aligned.
However, this may be wrong, or pointers may be from something other than malloc. In this case, you should specify a real typed pointer or avoid this template.
All clients should use assertions to do a run-time check to ensure that this is actually true.
Enumerator | |
---|---|
NumLowBitsAvailable |
Definition at line 74 of file PointerLikeTypeTraits.h.
|
inlinestatic |
Definition at line 64 of file PointerLikeTypeTraits.h.
References P.
|
inlinestatic |
Definition at line 65 of file PointerLikeTypeTraits.h.
References P.