LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::TargetAlignElem Struct Reference

#include <TargetData.h>

Collaboration diagram for llvm::TargetAlignElem:

Collaboration graph
[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

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

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

output stream operator

Definition at line 118 of file TargetData.cpp.

References ABIAlign, AlignType, PrefAlign, and TypeBitWidth.

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

Initializer.

Definition at line 98 of file TargetData.cpp.

References ABIAlign, AlignType, PrefAlign, and TypeBitWidth.

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

Equality predicate.

Definition at line 110 of file TargetData.cpp.

References ABIAlign, AlignType, PrefAlign, and TypeBitWidth.


Member Data Documentation

unsigned char llvm::TargetAlignElem::ABIAlign
 

Definition at line 53 of file TargetData.h.

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

AlignTypeEnum llvm::TargetAlignElem::AlignType
 

Definition at line 52 of file TargetData.h.

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

unsigned char llvm::TargetAlignElem::PrefAlign
 

Definition at line 54 of file TargetData.h.

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

uint32_t llvm::TargetAlignElem::TypeBitWidth
 

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:


This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.