MLIR  20.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 Attribute getDefaultMemorySpace (PtrType ptr)
 
static SpecAttr getPointerSpec (DataLayoutEntryListRef params, PtrType type)
 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 kDefaultPointerAlignment = 8
 

Function Documentation

◆ getDefaultMemorySpace()

static Attribute getDefaultMemorySpace ( PtrType  ptr)
static

Definition at line 28 of file PtrTypes.cpp.

Referenced by getPointerSpec().

◆ getPointerSpec()

static SpecAttr getPointerSpec ( DataLayoutEntryListRef  params,
PtrType  type 
)
static

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

Definition at line 32 of file PtrTypes.cpp.

References mlir::get(), getDefaultMemorySpace(), kDefaultPointerAlignment, and kDefaultPointerSizeBits.

Variable Documentation

◆ kBitsInByte

constexpr static const unsigned kBitsInByte = 8
staticconstexpr

Definition at line 25 of file PtrTypes.cpp.

◆ kDefaultPointerAlignment

constexpr static const unsigned kDefaultPointerAlignment = 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().