MLIR 22.0.0git
PtrTypes.cpp File Reference

Go to the source code of this file.

Functions

static SpecAttr getPointerSpec (DataLayoutEntryListRef params, PtrType type, MemorySpaceAttrInterface defaultMemorySpace)
 Searches the data layout for the pointer spec, returns nullptr if it is not found.

Variables

constexpr static const unsigned kDefaultPointerSizeBits = 64
constexpr static const unsigned kBitsInByte = 8
constexpr static const unsigned kDefaultPointerAlignmentBits = 8

Function Documentation

◆ getPointerSpec()

SpecAttr getPointerSpec ( DataLayoutEntryListRef params,
PtrType type,
MemorySpaceAttrInterface defaultMemorySpace )
static

Searches the data layout for the pointer spec, returns nullptr if it is not found.

Definition at line 29 of file PtrTypes.cpp.

References kDefaultPointerAlignmentBits, and kDefaultPointerSizeBits.

Variable Documentation

◆ kBitsInByte

const unsigned kBitsInByte = 8
staticconstexpr

Definition at line 24 of file PtrTypes.cpp.

◆ kDefaultPointerAlignmentBits

const unsigned kDefaultPointerAlignmentBits = 8
staticconstexpr

Definition at line 25 of file PtrTypes.cpp.

Referenced by getPointerSpec().

◆ kDefaultPointerSizeBits

const unsigned kDefaultPointerSizeBits = 64
staticconstexpr

Definition at line 23 of file PtrTypes.cpp.