TT-MLIR
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::tt::ttnn::detail::MemoryConfigAttrStorage Struct Reference
Inheritance diagram for mlir::tt::ttnn::detail::MemoryConfigAttrStorage:

Public Types

using KeyTy = std::tuple< TensorMemoryLayoutAttr, BufferTypeAttr, ShardSpecAttr >
 

Public Member Functions

 MemoryConfigAttrStorage (TensorMemoryLayoutAttr tensorMemoryLayout, BufferTypeAttr bufferType, ShardSpecAttr shardSpec)
 
KeyTy getAsKey () const
 
bool operator== (const KeyTy &tblgenKey) const
 

Static Public Member Functions

::llvm::hash_code hashKey (const KeyTy &tblgenKey)
 
static MemoryConfigAttrStorageconstruct (::mlir::AttributeStorageAllocator &allocator, KeyTy &&tblgenKey)
 

Public Attributes

TensorMemoryLayoutAttr tensorMemoryLayout
 
BufferTypeAttr bufferType
 
ShardSpecAttr shardSpec
 

Member Typedef Documentation

◆ KeyTy

Constructor & Destructor Documentation

◆ MemoryConfigAttrStorage()

mlir::tt::ttnn::detail::MemoryConfigAttrStorage::MemoryConfigAttrStorage ( TensorMemoryLayoutAttr  tensorMemoryLayout,
BufferTypeAttr  bufferType,
ShardSpecAttr  shardSpec 
)
inline

Member Function Documentation

◆ construct()

static MemoryConfigAttrStorage* mlir::tt::ttnn::detail::MemoryConfigAttrStorage::construct ( ::mlir::AttributeStorageAllocator &  allocator,
KeyTy &&  tblgenKey 
)
inlinestatic

◆ getAsKey()

KeyTy mlir::tt::ttnn::detail::MemoryConfigAttrStorage::getAsKey ( ) const
inline

◆ hashKey()

::llvm::hash_code mlir::tt::ttnn::detail::MemoryConfigAttrStorage::hashKey ( const KeyTy tblgenKey)
inlinestatic

◆ operator==()

bool mlir::tt::ttnn::detail::MemoryConfigAttrStorage::operator== ( const KeyTy tblgenKey) const
inline

Member Data Documentation

◆ bufferType

BufferTypeAttr mlir::tt::ttnn::detail::MemoryConfigAttrStorage::bufferType

◆ shardSpec

ShardSpecAttr mlir::tt::ttnn::detail::MemoryConfigAttrStorage::shardSpec

◆ tensorMemoryLayout

TensorMemoryLayoutAttr mlir::tt::ttnn::detail::MemoryConfigAttrStorage::tensorMemoryLayout

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