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

Public Types

using Adaptor = AllocOpAdaptor
 
template<typename RangeT >
using GenericAdaptor = AllocOpGenericAdaptor< RangeT >
 
using FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > >
 
using Properties = FoldAdaptor::Properties
 

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
 
::mlir::StringAttr getAddressAttrName ()
 
::mlir::StringAttr getBufferTypeAttrName ()
 
::mlir::StringAttr getSizeAttrName ()
 
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
 
::mlir::Operation::operand_range getODSOperands (unsigned index)
 
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
 
::mlir::Operation::result_range getODSResults (unsigned index)
 
::mlir::TypedValue<::mlir::RankedTensorType > getResult ()
 
void writeProperties (::mlir::DialectBytecodeWriter &writer)
 
::mlir::IntegerAttr getAddressAttr ()
 
uint64_t getAddress ()
 
::mlir::IntegerAttr getSizeAttr ()
 
uint64_t getSize ()
 
::mlir::tt::ttnn::BufferTypeAttr getBufferTypeAttr ()
 
::mlir::tt::ttnn::BufferType getBufferType ()
 
void setAddressAttr (::mlir::IntegerAttr attr)
 
void setAddress (uint64_t attrValue)
 
void setSizeAttr (::mlir::IntegerAttr attr)
 
void setSize (uint64_t attrValue)
 
void setBufferTypeAttr (::mlir::tt::ttnn::BufferTypeAttr attr)
 
void setBufferType (::mlir::tt::ttnn::BufferType attrValue)
 
::llvm::LogicalResult verifyInvariantsImpl ()
 
::llvm::LogicalResult verifyInvariants ()
 
::llvm::LogicalResult verify ()
 

Static Public Member Functions

::mlir::StringAttr getAddressAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getBufferTypeAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getSizeAttrName (::mlir::OperationName name)
 
static constexpr ::llvm::StringLiteral getOperationName ()
 
::llvm::LogicalResult setPropertiesFromAttr (Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
 
::mlir::Attribute getPropertiesAsAttr (::mlir::MLIRContext *ctx, const Properties &prop)
 
static llvm::hash_code computePropertiesHash (const Properties &prop)
 
static std::optional< mlir::Attribute > getInherentAttr (::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
 
static void setInherentAttr (Properties &prop, llvm::StringRef name, mlir::Attribute value)
 
static void populateInherentAttrs (::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
 
::llvm::LogicalResult verifyInherentAttrs (::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
 
::llvm::LogicalResult readProperties (::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::mlir::IntegerAttr address, ::mlir::IntegerAttr size, ::mlir::tt::ttnn::BufferTypeAttr buffer_type)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::IntegerAttr address, ::mlir::IntegerAttr size, ::mlir::tt::ttnn::BufferTypeAttr buffer_type)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, uint64_t address, uint64_t size, ::mlir::tt::ttnn::BufferType buffer_type)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, uint64_t address, uint64_t size, ::mlir::tt::ttnn::BufferType buffer_type)
 
static void build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
 

Private Member Functions

::mlir::StringAttr getAttributeNameForIndex (unsigned index)
 

Static Private Member Functions

::mlir::StringAttr getAttributeNameForIndex (::mlir::OperationName name, unsigned index)
 

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

using mlir::tt::ttnn::AllocOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute> >

◆ GenericAdaptor

template<typename RangeT >
using mlir::tt::ttnn::AllocOp::GenericAdaptor = AllocOpGenericAdaptor<RangeT>

◆ Properties

Member Function Documentation

◆ build() [1/5]

void mlir::tt::ttnn::AllocOp::build ( ::mlir::OpBuilder &  ,
::mlir::OperationState &  odsState,
::mlir::TypeRange  resultTypes,
::mlir::ValueRange  operands,
::llvm::ArrayRef<::mlir::NamedAttribute >  attributes = {} 
)
static

◆ build() [2/5]

void mlir::tt::ttnn::AllocOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::Type  result,
::mlir::IntegerAttr  address,
::mlir::IntegerAttr  size,
::mlir::tt::ttnn::BufferTypeAttr  buffer_type 
)
static

◆ build() [3/5]

void mlir::tt::ttnn::AllocOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::Type  result,
uint64_t  address,
uint64_t  size,
::mlir::tt::ttnn::BufferType  buffer_type 
)
static

◆ build() [4/5]

void mlir::tt::ttnn::AllocOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::TypeRange  resultTypes,
::mlir::IntegerAttr  address,
::mlir::IntegerAttr  size,
::mlir::tt::ttnn::BufferTypeAttr  buffer_type 
)
static

◆ build() [5/5]

void mlir::tt::ttnn::AllocOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::TypeRange  resultTypes,
uint64_t  address,
uint64_t  size,
::mlir::tt::ttnn::BufferType  buffer_type 
)
static

◆ computePropertiesHash()

llvm::hash_code mlir::tt::ttnn::AllocOp::computePropertiesHash ( const Properties prop)
static

◆ getAddress()

uint64_t mlir::tt::ttnn::AllocOp::getAddress ( )

◆ getAddressAttr()

::mlir::IntegerAttr mlir::tt::ttnn::AllocOp::getAddressAttr ( )
inline

◆ getAddressAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttnn::AllocOp::getAddressAttrName ( )
inline

◆ getAddressAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttnn::AllocOp::getAddressAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getAttributeNameForIndex() [1/2]

::mlir::StringAttr mlir::tt::ttnn::AllocOp::getAttributeNameForIndex ( ::mlir::OperationName  name,
unsigned  index 
)
inlinestaticprivate

◆ getAttributeNameForIndex() [2/2]

::mlir::StringAttr mlir::tt::ttnn::AllocOp::getAttributeNameForIndex ( unsigned  index)
inlineprivate

◆ getAttributeNames()

static ::llvm::ArrayRef<::llvm::StringRef> mlir::tt::ttnn::AllocOp::getAttributeNames ( )
inline

◆ getBufferType()

mlir::tt::ttnn::BufferType mlir::tt::ttnn::AllocOp::getBufferType ( )

◆ getBufferTypeAttr()

::mlir::tt::ttnn::BufferTypeAttr mlir::tt::ttnn::AllocOp::getBufferTypeAttr ( )
inline

◆ getBufferTypeAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttnn::AllocOp::getBufferTypeAttrName ( )
inline

◆ getBufferTypeAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttnn::AllocOp::getBufferTypeAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getInherentAttr()

std::optional< mlir::Attribute > mlir::tt::ttnn::AllocOp::getInherentAttr ( ::mlir::MLIRContext *  ctx,
const Properties prop,
llvm::StringRef  name 
)
static

◆ getODSOperandIndexAndLength()

std::pair<unsigned, unsigned> mlir::tt::ttnn::AllocOp::getODSOperandIndexAndLength ( unsigned  index)
inline

◆ getODSOperands()

::mlir::Operation::operand_range mlir::tt::ttnn::AllocOp::getODSOperands ( unsigned  index)
inline

◆ getODSResultIndexAndLength()

std::pair<unsigned, unsigned> mlir::tt::ttnn::AllocOp::getODSResultIndexAndLength ( unsigned  index)
inline

◆ getODSResults()

::mlir::Operation::result_range mlir::tt::ttnn::AllocOp::getODSResults ( unsigned  index)
inline

◆ getOperationName()

static constexpr ::llvm::StringLiteral mlir::tt::ttnn::AllocOp::getOperationName ( )
inlinestatic

◆ getPropertiesAsAttr()

mlir::Attribute mlir::tt::ttnn::AllocOp::getPropertiesAsAttr ( ::mlir::MLIRContext *  ctx,
const Properties prop 
)
static

◆ getResult()

::mlir::TypedValue<::mlir::RankedTensorType> mlir::tt::ttnn::AllocOp::getResult ( )
inline

◆ getSize()

uint64_t mlir::tt::ttnn::AllocOp::getSize ( )

◆ getSizeAttr()

::mlir::IntegerAttr mlir::tt::ttnn::AllocOp::getSizeAttr ( )
inline

◆ getSizeAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttnn::AllocOp::getSizeAttrName ( )
inline

◆ getSizeAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttnn::AllocOp::getSizeAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ populateInherentAttrs()

void mlir::tt::ttnn::AllocOp::populateInherentAttrs ( ::mlir::MLIRContext *  ctx,
const Properties prop,
::mlir::NamedAttrList &  attrs 
)
static

◆ readProperties()

llvm::LogicalResult mlir::tt::ttnn::AllocOp::readProperties ( ::mlir::DialectBytecodeReader &  reader,
::mlir::OperationState &  state 
)
static

◆ setAddress()

void mlir::tt::ttnn::AllocOp::setAddress ( uint64_t  attrValue)

◆ setAddressAttr()

void mlir::tt::ttnn::AllocOp::setAddressAttr ( ::mlir::IntegerAttr  attr)
inline

◆ setBufferType()

void mlir::tt::ttnn::AllocOp::setBufferType ( ::mlir::tt::ttnn::BufferType  attrValue)

◆ setBufferTypeAttr()

void mlir::tt::ttnn::AllocOp::setBufferTypeAttr ( ::mlir::tt::ttnn::BufferTypeAttr  attr)
inline

◆ setInherentAttr()

void mlir::tt::ttnn::AllocOp::setInherentAttr ( Properties prop,
llvm::StringRef  name,
mlir::Attribute  value 
)
static

◆ setPropertiesFromAttr()

llvm::LogicalResult mlir::tt::ttnn::AllocOp::setPropertiesFromAttr ( Properties prop,
::mlir::Attribute  attr,
::llvm::function_ref<::mlir::InFlightDiagnostic()>  emitError 
)
static

◆ setSize()

void mlir::tt::ttnn::AllocOp::setSize ( uint64_t  attrValue)

◆ setSizeAttr()

void mlir::tt::ttnn::AllocOp::setSizeAttr ( ::mlir::IntegerAttr  attr)
inline

◆ verify()

::llvm::LogicalResult mlir::tt::ttnn::AllocOp::verify ( )

◆ verifyInherentAttrs()

llvm::LogicalResult mlir::tt::ttnn::AllocOp::verifyInherentAttrs ( ::mlir::OperationName  opName,
::mlir::NamedAttrList &  attrs,
llvm::function_ref<::mlir::InFlightDiagnostic()>  emitError 
)
static

◆ verifyInvariants()

llvm::LogicalResult mlir::tt::ttnn::AllocOp::verifyInvariants ( )

◆ verifyInvariantsImpl()

llvm::LogicalResult mlir::tt::ttnn::AllocOp::verifyInvariantsImpl ( )

◆ writeProperties()

void mlir::tt::ttnn::AllocOp::writeProperties ( ::mlir::DialectBytecodeWriter &  writer)

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