LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::PointerAlignElem Struct Reference

#include <DataLayout.h>

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

Public Member Functions

bool operator== (const PointerAlignElem &rhs) const
 Equality predicate. More...
 

Static Public Member Functions

static PointerAlignElem get (uint32_t addr_space, unsigned abi_align, unsigned pref_align, uint32_t bit_width)
 Initializer. More...
 

Public Attributes

unsigned ABIAlign
 ABI alignment for this type/bitw. More...
 
unsigned PrefAlign
 Pref. alignment for this type/bitw. More...
 
uint32_t TypeBitWidth
 Type bit width. More...
 
uint32_t AddressSpace
 Address space for the pointer type. More...
 

Detailed Description

Layout pointer alignment element.

Stores the alignment data associated with a given pointer and address space.

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

Definition at line 78 of file DataLayout.h.

Member Function Documentation

PointerAlignElem PointerAlignElem::get ( uint32_t  addr_space,
unsigned  abi_align,
unsigned  pref_align,
uint32_t  bit_width 
)
static

Initializer.

Definition at line 128 of file DataLayout.cpp.

References ABIAlign, AddressSpace, PrefAlign, and TypeBitWidth.

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

Equality predicate.

Definition at line 140 of file DataLayout.cpp.

References ABIAlign, AddressSpace, PrefAlign, and TypeBitWidth.

Member Data Documentation

unsigned llvm::PointerAlignElem::ABIAlign

ABI alignment for this type/bitw.

Definition at line 79 of file DataLayout.h.

Referenced by get(), llvm::DataLayout::getStringRepresentation(), and operator==().

uint32_t llvm::PointerAlignElem::AddressSpace

Address space for the pointer type.

Definition at line 82 of file DataLayout.h.

Referenced by get(), llvm::DataLayout::getStringRepresentation(), and operator==().

unsigned llvm::PointerAlignElem::PrefAlign

Pref. alignment for this type/bitw.

Definition at line 80 of file DataLayout.h.

Referenced by get(), llvm::DataLayout::getStringRepresentation(), and operator==().

uint32_t llvm::PointerAlignElem::TypeBitWidth

Type bit width.

Definition at line 81 of file DataLayout.h.

Referenced by get(), llvm::DataLayout::getStringRepresentation(), and operator==().


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