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

Classes

struct  CompoundComponents
 

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
 
::mlir::StringAttr getLayoutAttrName ()
 
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
 
::mlir::Operation::operand_range getODSOperands (unsigned index)
 
::mlir::TypedValue<::mlir::Type > getInput ()
 
::mlir::TypedValue<::mlir::Type > getOutput ()
 
::mlir::OpOperand & getInputMutable ()
 
::mlir::OpOperand & getOutputMutable ()
 
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
 
::mlir::Operation::result_range getODSResults (unsigned index)
 
::mlir::Operation::result_range getResults ()
 
void writeProperties (::mlir::DialectBytecodeWriter &writer)
 
::mlir::tt::MetalLayoutAttr getLayoutAttr ()
 
::std::optional<::mlir::tt::MetalLayoutAttrgetLayout ()
 
void setLayoutAttr (::mlir::tt::MetalLayoutAttr attr)
 
::mlir::Attribute removeLayoutAttr ()
 
::llvm::LogicalResult verifyInvariantsImpl ()
 
::llvm::LogicalResult verifyInvariants ()
 
::llvm::LogicalResult verify ()
 
::llvm::LogicalResult fold (FoldAdaptor adaptor, ::llvm::SmallVectorImpl<::mlir::OpFoldResult > &results)
 
bool bufferizesToMemoryRead (::mlir::OpOperand &opOperand, const ::mlir::bufferization::AnalysisState &state)
 
bool bufferizesToMemoryWrite (::mlir::OpOperand &opOperand, const ::mlir::bufferization::AnalysisState &state)
 
::mlir::bufferization::AliasingValueList getAliasingValues (::mlir::OpOperand &opOperand, const ::mlir::bufferization::AnalysisState &state)
 
::llvm::LogicalResult bufferize (::mlir::RewriterBase &rewriter, const ::mlir::bufferization::BufferizationOptions &options)
 
::mlir::FailureOr<::mlir::BaseMemRefType > getBufferType (::mlir::Value value, const ::mlir::bufferization::BufferizationOptions &options, ::llvm::SmallVector<::mlir::Value > &invocationStack)
 
void getEffects (::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect >> &effects)
 
void print (::mlir::OpAsmPrinter &_odsPrinter)
 
MutableOperandRange getDpsInitsMutable ()
 
CompoundComponents compoundComponents ()
 
bool isCompound ()
 
MetalLayoutAttr getInputLayout ()
 
MetalLayoutAttr getOutputLayout ()
 

Static Public Member Functions

::mlir::StringAttr getLayoutAttrName (::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, Value input, Value output, MetalLayoutAttr layout=nullptr)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange results, ::mlir::Value input, ::mlir::Value output, ::mlir::tt::MetalLayoutAttr layout)
 
static void build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
 
static void getCanonicalizationPatterns (::mlir::RewritePatternSet &results, ::mlir::MLIRContext *context)
 
::mlir::ParseResult parse (::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
 

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::ToLayoutOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute> >

◆ GenericAdaptor

template<typename RangeT >
using mlir::tt::ttir::ToLayoutOp::GenericAdaptor = ToLayoutOpGenericAdaptor<RangeT>

◆ Properties

Member Function Documentation

◆ bufferize()

::llvm::LogicalResult mlir::tt::ttir::ToLayoutOp::bufferize ( ::mlir::RewriterBase &  rewriter,
const ::mlir::bufferization::BufferizationOptions &  options 
)

◆ bufferizesToMemoryRead()

bool mlir::tt::ttir::ToLayoutOp::bufferizesToMemoryRead ( ::mlir::OpOperand &  opOperand,
const ::mlir::bufferization::AnalysisState &  state 
)

◆ bufferizesToMemoryWrite()

bool mlir::tt::ttir::ToLayoutOp::bufferizesToMemoryWrite ( ::mlir::OpOperand &  opOperand,
const ::mlir::bufferization::AnalysisState &  state 
)

◆ build() [1/3]

void mlir::tt::ttir::ToLayoutOp::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::ToLayoutOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
::mlir::TypeRange  results,
::mlir::Value  input,
::mlir::Value  output,
::mlir::tt::MetalLayoutAttr  layout 
)
static

◆ build() [3/3]

void mlir::tt::ttir::ToLayoutOp::build ( ::mlir::OpBuilder &  odsBuilder,
::mlir::OperationState &  odsState,
Value  input,
Value  output,
MetalLayoutAttr  layout = nullptr 
)
static

◆ compoundComponents()

CompoundComponents mlir::tt::ttir::ToLayoutOp::compoundComponents ( )

◆ computePropertiesHash()

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

◆ fold()

::llvm::LogicalResult mlir::tt::ttir::ToLayoutOp::fold ( FoldAdaptor  adaptor,
::llvm::SmallVectorImpl<::mlir::OpFoldResult > &  results 
)

◆ getAliasingValues()

bufferization::AliasingValueList mlir::tt::ttir::ToLayoutOp::getAliasingValues ( ::mlir::OpOperand &  opOperand,
const ::mlir::bufferization::AnalysisState &  state 
)

◆ getAttributeNameForIndex() [1/2]

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

◆ getAttributeNameForIndex() [2/2]

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

◆ getAttributeNames()

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

◆ getBufferType()

::mlir::FailureOr<::mlir::BaseMemRefType> mlir::tt::ttir::ToLayoutOp::getBufferType ( ::mlir::Value  value,
const ::mlir::bufferization::BufferizationOptions &  options,
::llvm::SmallVector<::mlir::Value > &  invocationStack 
)

◆ getCanonicalizationPatterns()

static void mlir::tt::ttir::ToLayoutOp::getCanonicalizationPatterns ( ::mlir::RewritePatternSet &  results,
::mlir::MLIRContext *  context 
)
static

◆ getDpsInitsMutable()

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

◆ getEffects()

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

◆ getInherentAttr()

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

◆ getInput()

::mlir::TypedValue<::mlir::Type> mlir::tt::ttir::ToLayoutOp::getInput ( )
inline

◆ getInputLayout()

MetalLayoutAttr mlir::tt::ttir::ToLayoutOp::getInputLayout ( )

◆ getInputMutable()

::mlir::OpOperand& mlir::tt::ttir::ToLayoutOp::getInputMutable ( )
inline

◆ getLayout()

std::optional<::mlir::tt::MetalLayoutAttr > mlir::tt::ttir::ToLayoutOp::getLayout ( )

◆ getLayoutAttr()

::mlir::tt::MetalLayoutAttr mlir::tt::ttir::ToLayoutOp::getLayoutAttr ( )
inline

◆ getLayoutAttrName() [1/2]

::mlir::StringAttr mlir::tt::ttir::ToLayoutOp::getLayoutAttrName ( )
inline

◆ getLayoutAttrName() [2/2]

::mlir::StringAttr mlir::tt::ttir::ToLayoutOp::getLayoutAttrName ( ::mlir::OperationName  name)
inlinestatic

◆ getODSOperandIndexAndLength()

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

◆ getODSOperands()

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

◆ getODSResultIndexAndLength()

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

◆ getODSResults()

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

◆ getOperationName()

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

◆ getOutput()

::mlir::TypedValue<::mlir::Type> mlir::tt::ttir::ToLayoutOp::getOutput ( )
inline

◆ getOutputLayout()

MetalLayoutAttr mlir::tt::ttir::ToLayoutOp::getOutputLayout ( )

◆ getOutputMutable()

::mlir::OpOperand& mlir::tt::ttir::ToLayoutOp::getOutputMutable ( )
inline

◆ getPropertiesAsAttr()

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

◆ getResults()

::mlir::Operation::result_range mlir::tt::ttir::ToLayoutOp::getResults ( )
inline

◆ isCompound()

bool mlir::tt::ttir::ToLayoutOp::isCompound ( )
inline

◆ parse()

mlir::ParseResult mlir::tt::ttir::ToLayoutOp::parse ( ::mlir::OpAsmParser &  parser,
::mlir::OperationState &  result 
)
static

◆ populateInherentAttrs()

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

◆ print()

void mlir::tt::ttir::ToLayoutOp::print ( ::mlir::OpAsmPrinter &  _odsPrinter)

◆ readProperties()

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

◆ removeLayoutAttr()

::mlir::Attribute mlir::tt::ttir::ToLayoutOp::removeLayoutAttr ( )
inline

◆ setInherentAttr()

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

◆ setLayoutAttr()

void mlir::tt::ttir::ToLayoutOp::setLayoutAttr ( ::mlir::tt::MetalLayoutAttr  attr)
inline

◆ setPropertiesFromAttr()

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

◆ verify()

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

◆ verifyInherentAttrs()

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

◆ verifyInvariants()

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

◆ verifyInvariantsImpl()

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

◆ writeProperties()

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

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