LLVM API Documentation

llvm::TargetAlignElem Struct Reference

#include <TargetData.h>

Collaboration diagram for llvm::TargetAlignElem:
[legend]

List of all members.

Public Member Functions

bool operator== (const TargetAlignElem &rhs) const
 Equality predicate.
std::ostream & dump (std::ostream &os) const
 output stream operator

Static Public Member Functions

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

Public Attributes

AlignTypeEnum AlignType: 8
unsigned char ABIAlign
unsigned char PrefAlign
uint32_t TypeBitWidth


Detailed Description

Target alignment element.

Stores the alignment data associated with a given alignment type (pointer, 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 51 of file TargetData.h.


Member Function Documentation

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

Initializer.

Definition at line 99 of file TargetData.cpp.

References ABIAlign, AlignType, PrefAlign, and TypeBitWidth.

bool TargetAlignElem::operator== ( const TargetAlignElem &  rhs  )  const

Equality predicate.

Definition at line 111 of file TargetData.cpp.

References ABIAlign, AlignType, PrefAlign, and TypeBitWidth.

std::ostream & TargetAlignElem::dump ( std::ostream &  os  )  const

output stream operator

Definition at line 119 of file TargetData.cpp.

References ABIAlign, AlignType, PrefAlign, and TypeBitWidth.


Member Data Documentation

Definition at line 52 of file TargetData.h.

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

Definition at line 53 of file TargetData.h.

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

Definition at line 54 of file TargetData.h.

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

Definition at line 55 of file TargetData.h.

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


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