LLVM API Documentation

Public Member Functions | Static Public Member Functions | Public Attributes
llvm::LayoutAlignElem Struct Reference

#include <DataLayout.h>

Collaboration diagram for llvm::LayoutAlignElem:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool operator== (const LayoutAlignElem &rhs) const
 Equality predicate.

Static Public Member Functions

static LayoutAlignElem get (AlignTypeEnum align_type, unsigned abi_align, unsigned pref_align, uint32_t bit_width)
 Initializer.

Public Attributes

unsigned AlignType: 8
 Alignment type (AlignTypeEnum)
unsigned TypeBitWidth: 24
 Type bit width.
unsigned ABIAlign: 16
 ABI alignment for this type/bitw.
unsigned PrefAlign: 16
 Pref. alignment for this type/bitw.

Detailed Description

Layout alignment element.

Stores the alignment data associated with a given alignment type (integer, vector, float) and type bit width.

Note:
The unusual order of elements in the structure attempts to reduce padding and make the structure slightly more cache friendly.

Definition at line 62 of file DataLayout.h.


Member Function Documentation

LayoutAlignElem LayoutAlignElem::get ( AlignTypeEnum  align_type,
unsigned  abi_align,
unsigned  pref_align,
uint32_t  bit_width 
) [static]

Initializer.

Definition at line 102 of file DataLayout.cpp.

References ABIAlign, AlignType, PrefAlign, and TypeBitWidth.

bool LayoutAlignElem::operator== ( const LayoutAlignElem rhs) const

Equality predicate.

Definition at line 114 of file DataLayout.cpp.

References ABIAlign, AlignType, PrefAlign, and TypeBitWidth.


Member Data Documentation

ABI alignment for this type/bitw.

Definition at line 65 of file DataLayout.h.

Referenced by get(), and operator==().

Alignment type (AlignTypeEnum)

Definition at line 63 of file DataLayout.h.

Referenced by get(), and operator==().

Pref. alignment for this type/bitw.

Definition at line 66 of file DataLayout.h.

Referenced by get(), and operator==().

Type bit width.

Definition at line 64 of file DataLayout.h.

Referenced by get(), and operator==().


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