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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
 
::mlir::StringAttr getBaseDilationsAttrName ()
 
::mlir::StringAttr getOperandConstraintsAttrName ()
 
::mlir::StringAttr getPaddingAttrName ()
 
::mlir::StringAttr getPoolingMethodAttrName ()
 
::mlir::StringAttr getWindowDilationsAttrName ()
 
::mlir::StringAttr getWindowDimensionsAttrName ()
 
::mlir::StringAttr getWindowStridesAttrName ()
 
::mlir::StringAttr getOperandSegmentSizesAttrName ()
 
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
 
::mlir::Operation::operand_range getODSOperands (unsigned index)
 
::mlir::Operation::operand_range getInputs ()
 
::mlir::Operation::operand_range getOutputs ()
 
::mlir::MutableOperandRange getInputsMutable ()
 
::mlir::MutableOperandRange getOutputsMutable ()
 
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
 
::mlir::Operation::result_range getODSResults (unsigned index)
 
void writeProperties (::mlir::DialectBytecodeWriter &writer)
 
::mlir::tt::ttir::PoolingMethodAttr getPoolingMethodAttr ()
 
::mlir::tt::ttir::PoolingMethod getPoolingMethod ()
 
::mlir::DenseI64ArrayAttr getWindowDimensionsAttr ()
 
::llvm::ArrayRef< int64_t > getWindowDimensions ()
 
::mlir::DenseI64ArrayAttr getWindowStridesAttr ()
 
::llvm::ArrayRef< int64_t > getWindowStrides ()
 
::mlir::DenseI64ArrayAttr getBaseDilationsAttr ()
 
::llvm::ArrayRef< int64_t > getBaseDilations ()
 
::mlir::DenseI64ArrayAttr getWindowDilationsAttr ()
 
::llvm::ArrayRef< int64_t > getWindowDilations ()
 
::mlir::DenseI64ArrayAttr getPaddingAttr ()
 
::llvm::ArrayRef< int64_t > getPadding ()
 
::mlir::ArrayAttr getOperandConstraintsAttr ()
 
::mlir::ArrayAttr getOperandConstraints ()
 
void setPoolingMethodAttr (::mlir::tt::ttir::PoolingMethodAttr attr)
 
void setPoolingMethod (::mlir::tt::ttir::PoolingMethod attrValue)
 
void setWindowDimensionsAttr (::mlir::DenseI64ArrayAttr attr)
 
void setWindowDimensions (::llvm::ArrayRef< int64_t > attrValue)
 
void setWindowStridesAttr (::mlir::DenseI64ArrayAttr attr)
 
void setWindowStrides (::llvm::ArrayRef< int64_t > attrValue)
 
void setBaseDilationsAttr (::mlir::DenseI64ArrayAttr attr)
 
void setBaseDilations (::llvm::ArrayRef< int64_t > attrValue)
 
void setWindowDilationsAttr (::mlir::DenseI64ArrayAttr attr)
 
void setWindowDilations (::llvm::ArrayRef< int64_t > attrValue)
 
void setPaddingAttr (::mlir::DenseI64ArrayAttr attr)
 
void setPadding (::llvm::ArrayRef< int64_t > attrValue)
 
void setOperandConstraintsAttr (::mlir::ArrayAttr attr)
 
::llvm::LogicalResult verifyInvariantsImpl ()
 
::llvm::LogicalResult verifyInvariants ()
 
::llvm::LogicalResult verify ()
 
MutableOperandRange getDpsInitsMutable ()
 

Static Public Member Functions

::mlir::StringAttr getBaseDilationsAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getOperandConstraintsAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getPaddingAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getPoolingMethodAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getWindowDilationsAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getWindowDimensionsAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getWindowStridesAttrName (::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::TypeRange resultType0, ::mlir::ValueRange inputs, ::mlir::ValueRange outputs, ::mlir::tt::ttir::PoolingMethodAttr pooling_method, ::mlir::DenseI64ArrayAttr window_dimensions, ::mlir::DenseI64ArrayAttr window_strides, ::mlir::DenseI64ArrayAttr base_dilations, ::mlir::DenseI64ArrayAttr window_dilations, ::mlir::DenseI64ArrayAttr padding, ::mlir::ArrayAttr operand_constraints)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultType0, ::mlir::ValueRange inputs, ::mlir::ValueRange outputs, ::mlir::tt::ttir::PoolingMethod pooling_method, ::llvm::ArrayRef< int64_t > window_dimensions, ::llvm::ArrayRef< int64_t > window_strides, ::llvm::ArrayRef< int64_t > base_dilations, ::llvm::ArrayRef< int64_t > window_dilations, ::llvm::ArrayRef< int64_t > padding, ::mlir::ArrayAttr operand_constraints)
 
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::ttir::PoolingOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute> >

◆ GenericAdaptor

template<typename RangeT >
using mlir::tt::ttir::PoolingOp::GenericAdaptor = PoolingOpGenericAdaptor<RangeT>

◆ Properties

Member Function Documentation

◆ build() [1/3]

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

◆ build() [2/3]

void mlir::tt::ttir::PoolingOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::TypeRange  resultType0,
::mlir::ValueRange  inputs,
::mlir::ValueRange  outputs,
::mlir::tt::ttir::PoolingMethod  pooling_method,
::llvm::ArrayRef< int64_t >  window_dimensions,
::llvm::ArrayRef< int64_t >  window_strides,
::llvm::ArrayRef< int64_t >  base_dilations,
::llvm::ArrayRef< int64_t >  window_dilations,
::llvm::ArrayRef< int64_t >  padding,
::mlir::ArrayAttr  operand_constraints 
)
static

◆ build() [3/3]

void mlir::tt::ttir::PoolingOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::TypeRange  resultType0,
::mlir::ValueRange  inputs,
::mlir::ValueRange  outputs,
::mlir::tt::ttir::PoolingMethodAttr  pooling_method,
::mlir::DenseI64ArrayAttr  window_dimensions,
::mlir::DenseI64ArrayAttr  window_strides,
::mlir::DenseI64ArrayAttr  base_dilations,
::mlir::DenseI64ArrayAttr  window_dilations,
::mlir::DenseI64ArrayAttr  padding,
::mlir::ArrayAttr  operand_constraints 
)
static

◆ computePropertiesHash()

llvm::hash_code mlir::tt::ttir::PoolingOp::computePropertiesHash ( const Properties prop)
static

◆ getAttributeNameForIndex() [1/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getAttributeNameForIndex ( ::mlir::OperationName  name,
unsigned  index 
)
inlinestaticprivate

◆ getAttributeNameForIndex() [2/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getAttributeNameForIndex ( unsigned  index)
inlineprivate

◆ getAttributeNames()

static ::llvm::ArrayRef<::llvm::StringRef> mlir::tt::ttir::PoolingOp::getAttributeNames ( )
inline

◆ getBaseDilations()

llvm::ArrayRef< int64_t > mlir::tt::ttir::PoolingOp::getBaseDilations ( )

◆ getBaseDilationsAttr()

::mlir::DenseI64ArrayAttr mlir::tt::ttir::PoolingOp::getBaseDilationsAttr ( )
inline

◆ getBaseDilationsAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getBaseDilationsAttrName ( )
inline

◆ getBaseDilationsAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getBaseDilationsAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getDpsInitsMutable()

MutableOperandRange mlir::tt::ttir::PoolingOp::getDpsInitsMutable ( )
inline

◆ getInherentAttr()

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

◆ getInputs()

::mlir::Operation::operand_range mlir::tt::ttir::PoolingOp::getInputs ( )
inline

◆ getInputsMutable()

mlir::MutableOperandRange mlir::tt::ttir::PoolingOp::getInputsMutable ( )

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > mlir::tt::ttir::PoolingOp::getODSOperandIndexAndLength ( unsigned  index)

◆ getODSOperands()

::mlir::Operation::operand_range mlir::tt::ttir::PoolingOp::getODSOperands ( unsigned  index)
inline

◆ getODSResultIndexAndLength()

std::pair< unsigned, unsigned > mlir::tt::ttir::PoolingOp::getODSResultIndexAndLength ( unsigned  index)

◆ getODSResults()

::mlir::Operation::result_range mlir::tt::ttir::PoolingOp::getODSResults ( unsigned  index)
inline

◆ getOperandConstraints()

mlir::ArrayAttr mlir::tt::ttir::PoolingOp::getOperandConstraints ( )

◆ getOperandConstraintsAttr()

::mlir::ArrayAttr mlir::tt::ttir::PoolingOp::getOperandConstraintsAttr ( )
inline

◆ getOperandConstraintsAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getOperandConstraintsAttrName ( )
inline

◆ getOperandConstraintsAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getOperandConstraintsAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getOperandSegmentSizesAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getOperandSegmentSizesAttrName ( )
inline

◆ getOperandSegmentSizesAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getOperandSegmentSizesAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getOperationName()

static constexpr ::llvm::StringLiteral mlir::tt::ttir::PoolingOp::getOperationName ( )
inlinestatic

◆ getOutputs()

::mlir::Operation::operand_range mlir::tt::ttir::PoolingOp::getOutputs ( )
inline

◆ getOutputsMutable()

mlir::MutableOperandRange mlir::tt::ttir::PoolingOp::getOutputsMutable ( )

◆ getPadding()

llvm::ArrayRef< int64_t > mlir::tt::ttir::PoolingOp::getPadding ( )

◆ getPaddingAttr()

::mlir::DenseI64ArrayAttr mlir::tt::ttir::PoolingOp::getPaddingAttr ( )
inline

◆ getPaddingAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getPaddingAttrName ( )
inline

◆ getPaddingAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getPaddingAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getPoolingMethod()

mlir::tt::ttir::PoolingMethod mlir::tt::ttir::PoolingOp::getPoolingMethod ( )

◆ getPoolingMethodAttr()

::mlir::tt::ttir::PoolingMethodAttr mlir::tt::ttir::PoolingOp::getPoolingMethodAttr ( )
inline

◆ getPoolingMethodAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getPoolingMethodAttrName ( )
inline

◆ getPoolingMethodAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getPoolingMethodAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getPropertiesAsAttr()

mlir::Attribute mlir::tt::ttir::PoolingOp::getPropertiesAsAttr ( ::mlir::MLIRContext *  ctx,
const Properties prop 
)
static

◆ getWindowDilations()

llvm::ArrayRef< int64_t > mlir::tt::ttir::PoolingOp::getWindowDilations ( )

◆ getWindowDilationsAttr()

::mlir::DenseI64ArrayAttr mlir::tt::ttir::PoolingOp::getWindowDilationsAttr ( )
inline

◆ getWindowDilationsAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getWindowDilationsAttrName ( )
inline

◆ getWindowDilationsAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getWindowDilationsAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getWindowDimensions()

llvm::ArrayRef< int64_t > mlir::tt::ttir::PoolingOp::getWindowDimensions ( )

◆ getWindowDimensionsAttr()

::mlir::DenseI64ArrayAttr mlir::tt::ttir::PoolingOp::getWindowDimensionsAttr ( )
inline

◆ getWindowDimensionsAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getWindowDimensionsAttrName ( )
inline

◆ getWindowDimensionsAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getWindowDimensionsAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getWindowStrides()

llvm::ArrayRef< int64_t > mlir::tt::ttir::PoolingOp::getWindowStrides ( )

◆ getWindowStridesAttr()

::mlir::DenseI64ArrayAttr mlir::tt::ttir::PoolingOp::getWindowStridesAttr ( )
inline

◆ getWindowStridesAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getWindowStridesAttrName ( )
inline

◆ getWindowStridesAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttir::PoolingOp::getWindowStridesAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ populateInherentAttrs()

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

◆ readProperties()

llvm::LogicalResult mlir::tt::ttir::PoolingOp::readProperties ( ::mlir::DialectBytecodeReader &  reader,
::mlir::OperationState &  state 
)
static

◆ setBaseDilations()

void mlir::tt::ttir::PoolingOp::setBaseDilations ( ::llvm::ArrayRef< int64_t >  attrValue)

◆ setBaseDilationsAttr()

void mlir::tt::ttir::PoolingOp::setBaseDilationsAttr ( ::mlir::DenseI64ArrayAttr  attr)
inline

◆ setInherentAttr()

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

◆ setOperandConstraintsAttr()

void mlir::tt::ttir::PoolingOp::setOperandConstraintsAttr ( ::mlir::ArrayAttr  attr)
inline

◆ setPadding()

void mlir::tt::ttir::PoolingOp::setPadding ( ::llvm::ArrayRef< int64_t >  attrValue)

◆ setPaddingAttr()

void mlir::tt::ttir::PoolingOp::setPaddingAttr ( ::mlir::DenseI64ArrayAttr  attr)
inline

◆ setPoolingMethod()

void mlir::tt::ttir::PoolingOp::setPoolingMethod ( ::mlir::tt::ttir::PoolingMethod  attrValue)

◆ setPoolingMethodAttr()

void mlir::tt::ttir::PoolingOp::setPoolingMethodAttr ( ::mlir::tt::ttir::PoolingMethodAttr  attr)
inline

◆ setPropertiesFromAttr()

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

◆ setWindowDilations()

void mlir::tt::ttir::PoolingOp::setWindowDilations ( ::llvm::ArrayRef< int64_t >  attrValue)

◆ setWindowDilationsAttr()

void mlir::tt::ttir::PoolingOp::setWindowDilationsAttr ( ::mlir::DenseI64ArrayAttr  attr)
inline

◆ setWindowDimensions()

void mlir::tt::ttir::PoolingOp::setWindowDimensions ( ::llvm::ArrayRef< int64_t >  attrValue)

◆ setWindowDimensionsAttr()

void mlir::tt::ttir::PoolingOp::setWindowDimensionsAttr ( ::mlir::DenseI64ArrayAttr  attr)
inline

◆ setWindowStrides()

void mlir::tt::ttir::PoolingOp::setWindowStrides ( ::llvm::ArrayRef< int64_t >  attrValue)

◆ setWindowStridesAttr()

void mlir::tt::ttir::PoolingOp::setWindowStridesAttr ( ::mlir::DenseI64ArrayAttr  attr)
inline

◆ verify()

::llvm::LogicalResult mlir::tt::ttir::PoolingOp::verify ( )

◆ verifyInherentAttrs()

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

◆ verifyInvariants()

llvm::LogicalResult mlir::tt::ttir::PoolingOp::verifyInvariants ( )

◆ verifyInvariantsImpl()

llvm::LogicalResult mlir::tt::ttir::PoolingOp::verifyInvariantsImpl ( )

◆ writeProperties()

void mlir::tt::ttir::PoolingOp::writeProperties ( ::mlir::DialectBytecodeWriter &  writer)

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