MLIR  21.0.0git
Functions | Variables
PtrTypes.cpp File Reference
#include "mlir/Dialect/Ptr/IR/PtrTypes.h"
#include "mlir/Dialect/Ptr/IR/PtrAttrs.h"
#include "llvm/ADT/TypeSwitch.h"

Go to the source code of this file.

Functions

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

Variables

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

Function Documentation

◆ getPointerSpec()

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

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

Definition at line 30 of file PtrTypes.cpp.

References mlir::get(), kDefaultPointerAlignmentBits, and kDefaultPointerSizeBits.

Variable Documentation

◆ kBitsInByte

constexpr static const unsigned kBitsInByte = 8
staticconstexpr

Definition at line 25 of file PtrTypes.cpp.

◆ kDefaultPointerAlignmentBits

constexpr static const unsigned kDefaultPointerAlignmentBits = 8
staticconstexpr

Definition at line 26 of file PtrTypes.cpp.

Referenced by getPointerSpec().

◆ kDefaultPointerSizeBits

constexpr static const unsigned kDefaultPointerSizeBits = 64
staticconstexpr

Definition at line 24 of file PtrTypes.cpp.

Referenced by getPointerSpec().