LLVM  4.0.0
Public Types | Static Public Member Functions | List of all members
llvm::PointerLikeTypeTraits< void * > Class Template Reference

#include <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)
 

Detailed Description

template<>
class llvm::PointerLikeTypeTraits< void * >

Definition at line 48 of file PointerLikeTypeTraits.h.

Member Enumeration Documentation

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 60 of file PointerLikeTypeTraits.h.

Member Function Documentation

static void* llvm::PointerLikeTypeTraits< void * >::getAsVoidPointer ( void *  P)
inlinestatic

Definition at line 50 of file PointerLikeTypeTraits.h.

References P.

static void* llvm::PointerLikeTypeTraits< void * >::getFromVoidPointer ( void *  P)
inlinestatic

Definition at line 51 of file PointerLikeTypeTraits.h.

References P.


The documentation for this class was generated from the following file: