#include "mlir/Dialect/Ptr/IR/PtrTypes.h"
#include "mlir/Dialect/Ptr/IR/PtrAttrs.h"
#include "llvm/ADT/TypeSwitch.h"
usingnamespacemlir;
usingnamespacemlir::ptr;
constexpr const static unsigned kDefaultPointerSizeBits = …;
constexpr const static unsigned kBitsInByte = …;
constexpr const static unsigned kDefaultPointerAlignment = …;
static Attribute getDefaultMemorySpace(PtrType ptr) { … }
static SpecAttr getPointerSpec(DataLayoutEntryListRef params, PtrType type) { … }
bool PtrType::areCompatible(DataLayoutEntryListRef oldLayout,
DataLayoutEntryListRef newLayout) const { … }
uint64_t PtrType::getABIAlignment(const DataLayout &dataLayout,
DataLayoutEntryListRef params) const { … }
std::optional<uint64_t>
PtrType::getIndexBitwidth(const DataLayout &dataLayout,
DataLayoutEntryListRef params) const { … }
llvm::TypeSize PtrType::getTypeSizeInBits(const DataLayout &dataLayout,
DataLayoutEntryListRef params) const { … }
uint64_t PtrType::getPreferredAlignment(const DataLayout &dataLayout,
DataLayoutEntryListRef params) const { … }
LogicalResult PtrType::verifyEntries(DataLayoutEntryListRef entries,
Location loc) const { … }