LLVM  15.0.0git
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 getInBits (uint32_t AddressSpace, Align ABIAlign, Align PrefAlign, uint32_t TypeBitWidth, uint32_t IndexBitWidth)
 Initializer. More...
 

Public Attributes

Align ABIAlign
 
Align PrefAlign
 
uint32_t TypeBitWidth
 
uint32_t AddressSpace
 
uint32_t IndexBitWidth
 

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

Member Function Documentation

◆ getInBits()

PointerAlignElem PointerAlignElem::getInBits ( uint32_t  AddressSpace,
Align  ABIAlign,
Align  PrefAlign,
uint32_t  TypeBitWidth,
uint32_t  IndexBitWidth 
)
static

Initializer.

Definition at line 128 of file DataLayout.cpp.

References ABIAlign, AddressSpace, assert(), IndexBitWidth, PrefAlign, and TypeBitWidth.

◆ operator==()

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

Definition at line 143 of file DataLayout.cpp.

References ABIAlign, AddressSpace, IndexBitWidth, PrefAlign, and TypeBitWidth.

Member Data Documentation

◆ ABIAlign

Align llvm::PointerAlignElem::ABIAlign

Definition at line 93 of file DataLayout.h.

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

◆ AddressSpace

uint32_t llvm::PointerAlignElem::AddressSpace

Definition at line 96 of file DataLayout.h.

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

◆ IndexBitWidth

uint32_t llvm::PointerAlignElem::IndexBitWidth

Definition at line 97 of file DataLayout.h.

Referenced by getInBits(), llvm::DataLayout::getIndexSizeInBits(), and operator==().

◆ PrefAlign

Align llvm::PointerAlignElem::PrefAlign

Definition at line 94 of file DataLayout.h.

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

◆ TypeBitWidth

uint32_t llvm::PointerAlignElem::TypeBitWidth

Definition at line 95 of file DataLayout.h.

Referenced by getInBits(), llvm::DataLayout::getPointerSizeInBits(), and operator==().


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