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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
 
::mlir::StringAttr getCbPortsAttrName ()
 
::mlir::StringAttr getKernelConfigsAttrName ()
 
::mlir::StringAttr getOperandSegmentSizesAttrName ()
 
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
 
::mlir::Operation::operand_range getODSOperands (unsigned index)
 
::mlir::Operation::operand_range getBuffers ()
 
::mlir::Operation::operand_range getCbs ()
 
::mlir::MutableOperandRange getBuffersMutable ()
 
::mlir::MutableOperandRange getCbsMutable ()
 
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
 
::mlir::Operation::result_range getODSResults (unsigned index)
 
void writeProperties (::mlir::DialectBytecodeWriter &writer)
 
::mlir::DenseI64ArrayAttr getCbPortsAttr ()
 
::llvm::ArrayRef< int64_t > getCbPorts ()
 
::mlir::ArrayAttr getKernelConfigsAttr ()
 
::mlir::ArrayAttr getKernelConfigs ()
 
void setCbPortsAttr (::mlir::DenseI64ArrayAttr attr)
 
void setCbPorts (::llvm::ArrayRef< int64_t > attrValue)
 
void setKernelConfigsAttr (::mlir::ArrayAttr attr)
 
::llvm::LogicalResult verifyInvariantsImpl ()
 
::llvm::LogicalResult verifyInvariants ()
 
::llvm::LogicalResult verify ()
 
void getEffects (::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect >> &effects)
 

Static Public Member Functions

::mlir::StringAttr getCbPortsAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getKernelConfigsAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getOperandSegmentSizesAttrName (::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::ValueRange buffers, ::mlir::ValueRange cbs, ::mlir::DenseI64ArrayAttr cb_ports, ::mlir::ArrayAttr kernelConfigs)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange buffers, ::mlir::ValueRange cbs, ::mlir::DenseI64ArrayAttr cb_ports, ::mlir::ArrayAttr kernelConfigs)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::ValueRange buffers, ::mlir::ValueRange cbs, ::llvm::ArrayRef< int64_t > cb_ports, ::mlir::ArrayAttr kernelConfigs)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange buffers, ::mlir::ValueRange cbs, ::llvm::ArrayRef< int64_t > cb_ports, ::mlir::ArrayAttr kernelConfigs)
 
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::ttmetal::EnqueueProgramOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute> >

◆ GenericAdaptor

◆ Properties

Member Function Documentation

◆ build() [1/5]

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

◆ build() [2/5]

void mlir::tt::ttmetal::EnqueueProgramOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::TypeRange  resultTypes,
::mlir::ValueRange  buffers,
::mlir::ValueRange  cbs,
::llvm::ArrayRef< int64_t >  cb_ports,
::mlir::ArrayAttr  kernelConfigs 
)
static

◆ build() [3/5]

void mlir::tt::ttmetal::EnqueueProgramOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::TypeRange  resultTypes,
::mlir::ValueRange  buffers,
::mlir::ValueRange  cbs,
::mlir::DenseI64ArrayAttr  cb_ports,
::mlir::ArrayAttr  kernelConfigs 
)
static

◆ build() [4/5]

void mlir::tt::ttmetal::EnqueueProgramOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::ValueRange  buffers,
::mlir::ValueRange  cbs,
::llvm::ArrayRef< int64_t >  cb_ports,
::mlir::ArrayAttr  kernelConfigs 
)
static

◆ build() [5/5]

void mlir::tt::ttmetal::EnqueueProgramOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::ValueRange  buffers,
::mlir::ValueRange  cbs,
::mlir::DenseI64ArrayAttr  cb_ports,
::mlir::ArrayAttr  kernelConfigs 
)
static

◆ computePropertiesHash()

llvm::hash_code mlir::tt::ttmetal::EnqueueProgramOp::computePropertiesHash ( const Properties prop)
static

◆ getAttributeNameForIndex() [1/2]

::mlir::StringAttr mlir::tt::ttmetal::EnqueueProgramOp::getAttributeNameForIndex ( ::mlir::OperationName  name,
unsigned  index 
)
inlinestaticprivate

◆ getAttributeNameForIndex() [2/2]

::mlir::StringAttr mlir::tt::ttmetal::EnqueueProgramOp::getAttributeNameForIndex ( unsigned  index)
inlineprivate

◆ getAttributeNames()

static ::llvm::ArrayRef<::llvm::StringRef> mlir::tt::ttmetal::EnqueueProgramOp::getAttributeNames ( )
inline

◆ getBuffers()

::mlir::Operation::operand_range mlir::tt::ttmetal::EnqueueProgramOp::getBuffers ( )
inline

◆ getBuffersMutable()

mlir::MutableOperandRange mlir::tt::ttmetal::EnqueueProgramOp::getBuffersMutable ( )

◆ getCbPorts()

llvm::ArrayRef< int64_t > mlir::tt::ttmetal::EnqueueProgramOp::getCbPorts ( )

◆ getCbPortsAttr()

::mlir::DenseI64ArrayAttr mlir::tt::ttmetal::EnqueueProgramOp::getCbPortsAttr ( )
inline

◆ getCbPortsAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttmetal::EnqueueProgramOp::getCbPortsAttrName ( )
inline

◆ getCbPortsAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttmetal::EnqueueProgramOp::getCbPortsAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getCbs()

::mlir::Operation::operand_range mlir::tt::ttmetal::EnqueueProgramOp::getCbs ( )
inline

◆ getCbsMutable()

mlir::MutableOperandRange mlir::tt::ttmetal::EnqueueProgramOp::getCbsMutable ( )

◆ getEffects()

void mlir::tt::ttmetal::EnqueueProgramOp::getEffects ( ::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect >> &  effects)

◆ getInherentAttr()

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

◆ getKernelConfigs()

mlir::ArrayAttr mlir::tt::ttmetal::EnqueueProgramOp::getKernelConfigs ( )

◆ getKernelConfigsAttr()

::mlir::ArrayAttr mlir::tt::ttmetal::EnqueueProgramOp::getKernelConfigsAttr ( )
inline

◆ getKernelConfigsAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttmetal::EnqueueProgramOp::getKernelConfigsAttrName ( )
inline

◆ getKernelConfigsAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttmetal::EnqueueProgramOp::getKernelConfigsAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > mlir::tt::ttmetal::EnqueueProgramOp::getODSOperandIndexAndLength ( unsigned  index)

◆ getODSOperands()

::mlir::Operation::operand_range mlir::tt::ttmetal::EnqueueProgramOp::getODSOperands ( unsigned  index)
inline

◆ getODSResultIndexAndLength()

std::pair<unsigned, unsigned> mlir::tt::ttmetal::EnqueueProgramOp::getODSResultIndexAndLength ( unsigned  index)
inline

◆ getODSResults()

::mlir::Operation::result_range mlir::tt::ttmetal::EnqueueProgramOp::getODSResults ( unsigned  index)
inline

◆ getOperandSegmentSizesAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttmetal::EnqueueProgramOp::getOperandSegmentSizesAttrName ( )
inline

◆ getOperandSegmentSizesAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttmetal::EnqueueProgramOp::getOperandSegmentSizesAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getOperationName()

static constexpr ::llvm::StringLiteral mlir::tt::ttmetal::EnqueueProgramOp::getOperationName ( )
inlinestatic

◆ getPropertiesAsAttr()

mlir::Attribute mlir::tt::ttmetal::EnqueueProgramOp::getPropertiesAsAttr ( ::mlir::MLIRContext *  ctx,
const Properties prop 
)
static

◆ populateInherentAttrs()

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

◆ readProperties()

llvm::LogicalResult mlir::tt::ttmetal::EnqueueProgramOp::readProperties ( ::mlir::DialectBytecodeReader &  reader,
::mlir::OperationState &  state 
)
static

◆ setCbPorts()

void mlir::tt::ttmetal::EnqueueProgramOp::setCbPorts ( ::llvm::ArrayRef< int64_t >  attrValue)

◆ setCbPortsAttr()

void mlir::tt::ttmetal::EnqueueProgramOp::setCbPortsAttr ( ::mlir::DenseI64ArrayAttr  attr)
inline

◆ setInherentAttr()

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

◆ setKernelConfigsAttr()

void mlir::tt::ttmetal::EnqueueProgramOp::setKernelConfigsAttr ( ::mlir::ArrayAttr  attr)
inline

◆ setPropertiesFromAttr()

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

◆ verify()

::llvm::LogicalResult mlir::tt::ttmetal::EnqueueProgramOp::verify ( )

◆ verifyInherentAttrs()

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

◆ verifyInvariants()

llvm::LogicalResult mlir::tt::ttmetal::EnqueueProgramOp::verifyInvariants ( )

◆ verifyInvariantsImpl()

llvm::LogicalResult mlir::tt::ttmetal::EnqueueProgramOp::verifyInvariantsImpl ( )

◆ writeProperties()

void mlir::tt::ttmetal::EnqueueProgramOp::writeProperties ( ::mlir::DialectBytecodeWriter &  writer)

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