LLVM  6.0.0svn
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::PointerAlignElem Struct Reference

Layout pointer alignment element. More...

#include "llvm/IR/DataLayout.h"

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

Public Member Functions

bool operator== (const PointerAlignElem &rhs) const
 

Static Public Member Functions

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

Public Attributes

unsigned ABIAlign
 
unsigned PrefAlign
 
uint32_t TypeByteWidth
 
uint32_t AddressSpace
 

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

Member Function Documentation

◆ get()

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

Initializer.

Definition at line 131 of file DataLayout.cpp.

References ABIAlign, AddressSpace, assert(), PrefAlign, and TypeByteWidth.

Referenced by llvm::DataLayout::operator==().

◆ operator==()

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

Definition at line 143 of file DataLayout.cpp.

References ABIAlign, AddressSpace, PrefAlign, and TypeByteWidth.

Member Data Documentation

◆ ABIAlign

unsigned llvm::PointerAlignElem::ABIAlign

Definition at line 91 of file DataLayout.h.

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

◆ AddressSpace

uint32_t llvm::PointerAlignElem::AddressSpace

Definition at line 94 of file DataLayout.h.

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

◆ PrefAlign

unsigned llvm::PointerAlignElem::PrefAlign

Definition at line 92 of file DataLayout.h.

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

◆ TypeByteWidth

uint32_t llvm::PointerAlignElem::TypeByteWidth

Definition at line 93 of file DataLayout.h.

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


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