TT-MLIR
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
mlir::tt::ttnn::MemoryConfigAttr Class Reference
Inheritance diagram for mlir::tt::ttnn::MemoryConfigAttr:

Public Member Functions

::llvm::ArrayRef< int64_t > getShardShapeArray () const
 
void print (::mlir::AsmPrinter &odsPrinter) const
 
TensorMemoryLayoutAttr getTensorMemoryLayout () const
 
BufferTypeAttr getBufferType () const
 
ShardSpecAttr getShardSpec () const
 

Static Public Member Functions

static MemoryConfigAttr get (::mlir::MLIRContext *context, TensorMemoryLayoutAttr tensorMemoryLayout, BufferTypeAttr bufferType, ShardSpecAttr shardSpec)
 
static constexpr ::llvm::StringLiteral getMnemonic ()
 
::mlir::Attribute parse (::mlir::AsmParser &odsParser, ::mlir::Type odsType)
 

Static Public Attributes

static constexpr ::llvm::StringLiteral name = "ttnn.memory_config"
 
static constexpr ::llvm::StringLiteral dialectName = "ttnn"
 

Member Function Documentation

◆ get()

MemoryConfigAttr mlir::tt::ttnn::MemoryConfigAttr::get ( ::mlir::MLIRContext *  context,
TensorMemoryLayoutAttr  tensorMemoryLayout,
BufferTypeAttr  bufferType,
ShardSpecAttr  shardSpec 
)
static

◆ getBufferType()

BufferTypeAttr mlir::tt::ttnn::MemoryConfigAttr::getBufferType ( ) const

◆ getMnemonic()

static constexpr ::llvm::StringLiteral mlir::tt::ttnn::MemoryConfigAttr::getMnemonic ( )
inlinestatic

◆ getShardShapeArray()

::llvm::ArrayRef<int64_t> mlir::tt::ttnn::MemoryConfigAttr::getShardShapeArray ( ) const
inline

◆ getShardSpec()

ShardSpecAttr mlir::tt::ttnn::MemoryConfigAttr::getShardSpec ( ) const

◆ getTensorMemoryLayout()

TensorMemoryLayoutAttr mlir::tt::ttnn::MemoryConfigAttr::getTensorMemoryLayout ( ) const

◆ parse()

mlir::Attribute mlir::tt::ttnn::MemoryConfigAttr::parse ( ::mlir::AsmParser &  odsParser,
::mlir::Type  odsType 
)
static

◆ print()

void mlir::tt::ttnn::MemoryConfigAttr::print ( ::mlir::AsmPrinter &  odsPrinter) const

Member Data Documentation

◆ dialectName

constexpr ::llvm::StringLiteral mlir::tt::ttnn::MemoryConfigAttr::dialectName = "ttnn"
static

◆ name

constexpr ::llvm::StringLiteral mlir::tt::ttnn::MemoryConfigAttr::name = "ttnn.memory_config"
static

The documentation for this class was generated from the following files: