LLVM  12.0.0git
Static Public Member Functions | Static Public Attributes | List of all members
llvm::PointerLikeTypeTraits< T * > Struct Template Reference

#include "llvm/Support/PointerLikeTypeTraits.h"

Collaboration diagram for llvm::PointerLikeTypeTraits< T * >:
Collaboration graph
[legend]

Static Public Member Functions

static void * getAsVoidPointer (T *P)
 
static TgetFromVoidPointer (void *P)
 

Static Public Attributes

static constexpr int NumLowBitsAvailable
 

Detailed Description

template<typename T>
struct llvm::PointerLikeTypeTraits< T * >

Definition at line 56 of file PointerLikeTypeTraits.h.

Member Function Documentation

◆ getAsVoidPointer()

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

Definition at line 57 of file PointerLikeTypeTraits.h.

References P.

◆ getFromVoidPointer()

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

Definition at line 58 of file PointerLikeTypeTraits.h.

References P.

Member Data Documentation

◆ NumLowBitsAvailable

template<typename T >
constexpr int llvm::PointerLikeTypeTraits< T * >::NumLowBitsAvailable
static
Initial value:
=
detail::ConstantLog2<alignof(T)>::value

Definition at line 60 of file PointerLikeTypeTraits.h.


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