LLVM API Documentation

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

#include <DataLayout.h>

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

List of all members.

Public Member Functions

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

Static Public Member Functions

static PointerAlignElem get (uint32_t AddressSpace, unsigned ABIAlign, unsigned PrefAlign, uint32_t TypeByteWidth)
 Initializer.

Public Attributes

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

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 81 of file DataLayout.h.


Member Function Documentation

PointerAlignElem PointerAlignElem::get ( uint32_t  AddressSpace,
unsigned  ABIAlign,
unsigned  PrefAlign,
uint32_t  TypeByteWidth 
) [static]

Initializer.

Definition at line 129 of file DataLayout.cpp.

References ABIAlign, AddressSpace, PrefAlign, and TypeByteWidth.

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

Equality predicate.

Definition at line 141 of file DataLayout.cpp.

References ABIAlign, AddressSpace, PrefAlign, and TypeByteWidth.


Member Data Documentation

ABI alignment for this type/bitw.

Definition at line 82 of file DataLayout.h.

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

Pref. alignment for this type/bitw.

Definition at line 83 of file DataLayout.h.

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

Type byte width.

Definition at line 84 of file DataLayout.h.

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


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