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::PermuteOp Class Reference
Inheritance diagram for mlir::tt::ttnn::PermuteOp:

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
 
::mlir::StringAttr getMemoryConfigAttrName ()
 
::mlir::StringAttr getPadValueAttrName ()
 
::mlir::StringAttr getPermutationAttrName ()
 
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
 
::mlir::Operation::operand_range getODSOperands (unsigned index)
 
::mlir::TypedValue<::mlir::RankedTensorType > getInput ()
 
::mlir::OpOperand & getInputMutable ()
 
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::DenseI64ArrayAttr getPermutationAttr ()
 
::llvm::ArrayRef< int64_t > getPermutation ()
 
::mlir::tt::ttnn::MemoryConfigAttr getMemoryConfigAttr ()
 
::std::optional<::mlir::tt::ttnn::MemoryConfigAttrgetMemoryConfig ()
 
::mlir::FloatAttr getPadValueAttr ()
 
::llvm::APFloat getPadValue ()
 
void setPermutationAttr (::mlir::DenseI64ArrayAttr attr)
 
void setPermutation (::llvm::ArrayRef< int64_t > attrValue)
 
void setMemoryConfigAttr (::mlir::tt::ttnn::MemoryConfigAttr attr)
 
void setPadValueAttr (::mlir::FloatAttr attr)
 
void setPadValue (::std::optional<::llvm::APFloat > attrValue)
 
::mlir::Attribute removeMemoryConfigAttr ()
 
::mlir::Attribute removePadValueAttr ()
 
::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 getMemoryConfigAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getPadValueAttrName (::mlir::OperationName name)
 
::mlir::StringAttr getPermutationAttrName (::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::Value input, ::mlir::DenseI64ArrayAttr permutation, ::mlir::tt::ttnn::MemoryConfigAttr memory_config, ::mlir::FloatAttr pad_value)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value input, ::mlir::DenseI64ArrayAttr permutation, ::mlir::tt::ttnn::MemoryConfigAttr memory_config, ::mlir::FloatAttr pad_value)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::mlir::Value input, ::llvm::ArrayRef< int64_t > permutation, ::mlir::tt::ttnn::MemoryConfigAttr memory_config, ::llvm::APFloat pad_value)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value input, ::llvm::ArrayRef< int64_t > permutation, ::mlir::tt::ttnn::MemoryConfigAttr memory_config, ::llvm::APFloat pad_value)
 
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::PermuteOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute> >

◆ GenericAdaptor

template<typename RangeT >
using mlir::tt::ttnn::PermuteOp::GenericAdaptor = PermuteOpGenericAdaptor<RangeT>

◆ Properties

Member Function Documentation

◆ build() [1/5]

void mlir::tt::ttnn::PermuteOp::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::PermuteOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::Type  result,
::mlir::Value  input,
::llvm::ArrayRef< int64_t >  permutation,
::mlir::tt::ttnn::MemoryConfigAttr  memory_config,
::llvm::APFloat  pad_value 
)
static

◆ build() [3/5]

void mlir::tt::ttnn::PermuteOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::Type  result,
::mlir::Value  input,
::mlir::DenseI64ArrayAttr  permutation,
::mlir::tt::ttnn::MemoryConfigAttr  memory_config,
::mlir::FloatAttr  pad_value 
)
static

◆ build() [4/5]

void mlir::tt::ttnn::PermuteOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::TypeRange  resultTypes,
::mlir::Value  input,
::llvm::ArrayRef< int64_t >  permutation,
::mlir::tt::ttnn::MemoryConfigAttr  memory_config,
::llvm::APFloat  pad_value 
)
static

◆ build() [5/5]

void mlir::tt::ttnn::PermuteOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::TypeRange  resultTypes,
::mlir::Value  input,
::mlir::DenseI64ArrayAttr  permutation,
::mlir::tt::ttnn::MemoryConfigAttr  memory_config,
::mlir::FloatAttr  pad_value 
)
static

◆ computePropertiesHash()

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

◆ getAttributeNameForIndex() [1/2]

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

◆ getAttributeNameForIndex() [2/2]

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

◆ getAttributeNames()

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

◆ getEffects()

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

◆ getInherentAttr()

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

◆ getInput()

::mlir::TypedValue<::mlir::RankedTensorType> mlir::tt::ttnn::PermuteOp::getInput ( )
inline

◆ getInputMutable()

::mlir::OpOperand& mlir::tt::ttnn::PermuteOp::getInputMutable ( )
inline

◆ getMemoryConfig()

std::optional<::mlir::tt::ttnn::MemoryConfigAttr > mlir::tt::ttnn::PermuteOp::getMemoryConfig ( )

◆ getMemoryConfigAttr()

::mlir::tt::ttnn::MemoryConfigAttr mlir::tt::ttnn::PermuteOp::getMemoryConfigAttr ( )
inline

◆ getMemoryConfigAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttnn::PermuteOp::getMemoryConfigAttrName ( )
inline

◆ getMemoryConfigAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttnn::PermuteOp::getMemoryConfigAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getODSOperandIndexAndLength()

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

◆ getODSOperands()

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

◆ getODSResultIndexAndLength()

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

◆ getODSResults()

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

◆ getOperationName()

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

◆ getPadValue()

llvm::APFloat mlir::tt::ttnn::PermuteOp::getPadValue ( )

◆ getPadValueAttr()

::mlir::FloatAttr mlir::tt::ttnn::PermuteOp::getPadValueAttr ( )
inline

◆ getPadValueAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttnn::PermuteOp::getPadValueAttrName ( )
inline

◆ getPadValueAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttnn::PermuteOp::getPadValueAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getPermutation()

llvm::ArrayRef< int64_t > mlir::tt::ttnn::PermuteOp::getPermutation ( )

◆ getPermutationAttr()

::mlir::DenseI64ArrayAttr mlir::tt::ttnn::PermuteOp::getPermutationAttr ( )
inline

◆ getPermutationAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttnn::PermuteOp::getPermutationAttrName ( )
inline

◆ getPermutationAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttnn::PermuteOp::getPermutationAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getPropertiesAsAttr()

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

◆ getResult()

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

◆ populateInherentAttrs()

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

◆ readProperties()

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

◆ removeMemoryConfigAttr()

::mlir::Attribute mlir::tt::ttnn::PermuteOp::removeMemoryConfigAttr ( )
inline

◆ removePadValueAttr()

::mlir::Attribute mlir::tt::ttnn::PermuteOp::removePadValueAttr ( )
inline

◆ setInherentAttr()

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

◆ setMemoryConfigAttr()

void mlir::tt::ttnn::PermuteOp::setMemoryConfigAttr ( ::mlir::tt::ttnn::MemoryConfigAttr  attr)
inline

◆ setPadValue()

void mlir::tt::ttnn::PermuteOp::setPadValue ( ::std::optional<::llvm::APFloat >  attrValue)

◆ setPadValueAttr()

void mlir::tt::ttnn::PermuteOp::setPadValueAttr ( ::mlir::FloatAttr  attr)
inline

◆ setPermutation()

void mlir::tt::ttnn::PermuteOp::setPermutation ( ::llvm::ArrayRef< int64_t >  attrValue)

◆ setPermutationAttr()

void mlir::tt::ttnn::PermuteOp::setPermutationAttr ( ::mlir::DenseI64ArrayAttr  attr)
inline

◆ setPropertiesFromAttr()

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

◆ verify()

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

◆ verifyInherentAttrs()

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

◆ verifyInvariants()

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

◆ verifyInvariantsImpl()

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

◆ writeProperties()

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

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