llvm::AlignOf< T > Struct Template Reference

AlignOf - A templated class that contains an enum value representing the alignment of the template argument. More...

#include <AlignOf.h>

List of all members.

Public Types

enum  { Alignment }
enum  { Alignment_GreaterEqual_2Bytes = Alignment >= 2 ? 1 : 0 }
enum  { Alignment_GreaterEqual_4Bytes = Alignment >= 4 ? 1 : 0 }
enum  { Alignment_GreaterEqual_8Bytes = Alignment >= 8 ? 1 : 0 }
enum  { Alignment_GreaterEqual_16Bytes = Alignment >= 16 ? 1 : 0 }
enum  { Alignment_LessEqual_2Bytes = Alignment <= 2 ? 1 : 0 }
enum  { Alignment_LessEqual_4Bytes = Alignment <= 4 ? 1 : 0 }
enum  { Alignment_LessEqual_8Bytes = Alignment <= 8 ? 1 : 0 }
enum  { Alignment_LessEqual_16Bytes = Alignment <= 16 ? 1 : 0 }

Detailed Description

template<typename T>
struct llvm::AlignOf< T >

AlignOf - A templated class that contains an enum value representing the alignment of the template argument.

For example, AlignOf<int>::Alignment represents the alignment of type "int". The alignment calculated is the minimum alignment, and not necessarily the "desired" alignment returned by GCC's __alignof__ (for example). Note that because the alignment is an enum value, it can be used as a compile-time constant (e.g., for template instantiation).


Member Enumeration Documentation

template<typename T >
anonymous enum
Enumerator:
Alignment 
template<typename T >
anonymous enum
Enumerator:
Alignment_GreaterEqual_2Bytes 
template<typename T >
anonymous enum
Enumerator:
Alignment_GreaterEqual_4Bytes 
template<typename T >
anonymous enum
Enumerator:
Alignment_GreaterEqual_8Bytes 
template<typename T >
anonymous enum
Enumerator:
Alignment_GreaterEqual_16Bytes 
template<typename T >
anonymous enum
Enumerator:
Alignment_LessEqual_2Bytes 
template<typename T >
anonymous enum
Enumerator:
Alignment_LessEqual_4Bytes 
template<typename T >
anonymous enum
Enumerator:
Alignment_LessEqual_8Bytes 
template<typename T >
anonymous enum
Enumerator:
Alignment_LessEqual_16Bytes 

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

Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1