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

Public Types

using KeyTy = std::tuple< CoreRangeSetAttr, ShapeAttr, ShardOrientationAttr, ShardModeAttr, ShapeAttr >
 

Public Member Functions

 ShardSpecAttrStorage (CoreRangeSetAttr coreRangeSet, ShapeAttr shape, ShardOrientationAttr shardOrientation, ShardModeAttr shardMode, ShapeAttr physical_shard_shape)
 
KeyTy getAsKey () const
 
bool operator== (const KeyTy &tblgenKey) const
 

Static Public Member Functions

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

Public Attributes

CoreRangeSetAttr coreRangeSet
 
ShapeAttr shape
 
ShardOrientationAttr shardOrientation
 
ShardModeAttr shardMode
 
ShapeAttr physical_shard_shape
 

Member Typedef Documentation

◆ KeyTy

Constructor & Destructor Documentation

◆ ShardSpecAttrStorage()

mlir::tt::ttnn::detail::ShardSpecAttrStorage::ShardSpecAttrStorage ( CoreRangeSetAttr  coreRangeSet,
ShapeAttr  shape,
ShardOrientationAttr  shardOrientation,
ShardModeAttr  shardMode,
ShapeAttr  physical_shard_shape 
)
inline

Member Function Documentation

◆ construct()

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

◆ getAsKey()

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

◆ hashKey()

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

◆ operator==()

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

Member Data Documentation

◆ coreRangeSet

CoreRangeSetAttr mlir::tt::ttnn::detail::ShardSpecAttrStorage::coreRangeSet

◆ physical_shard_shape

ShapeAttr mlir::tt::ttnn::detail::ShardSpecAttrStorage::physical_shard_shape

◆ shape

ShapeAttr mlir::tt::ttnn::detail::ShardSpecAttrStorage::shape

◆ shardMode

ShardModeAttr mlir::tt::ttnn::detail::ShardSpecAttrStorage::shardMode

◆ shardOrientation

ShardOrientationAttr mlir::tt::ttnn::detail::ShardSpecAttrStorage::shardOrientation

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