TT-MLIR
|
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::MetalLayoutAttr > | getLayout () |
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) |
using mlir::tt::ttir::ToLayoutOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute> > |
using mlir::tt::ttir::ToLayoutOp::GenericAdaptor = ToLayoutOpGenericAdaptor<RangeT> |
::llvm::LogicalResult mlir::tt::ttir::ToLayoutOp::bufferize | ( | ::mlir::RewriterBase & | rewriter, |
const ::mlir::bufferization::BufferizationOptions & | options | ||
) |
bool mlir::tt::ttir::ToLayoutOp::bufferizesToMemoryRead | ( | ::mlir::OpOperand & | opOperand, |
const ::mlir::bufferization::AnalysisState & | state | ||
) |
bool mlir::tt::ttir::ToLayoutOp::bufferizesToMemoryWrite | ( | ::mlir::OpOperand & | opOperand, |
const ::mlir::bufferization::AnalysisState & | state | ||
) |
|
static |
|
static |
|
static |
CompoundComponents mlir::tt::ttir::ToLayoutOp::compoundComponents | ( | ) |
|
static |
::llvm::LogicalResult mlir::tt::ttir::ToLayoutOp::fold | ( | FoldAdaptor | adaptor, |
::llvm::SmallVectorImpl<::mlir::OpFoldResult > & | results | ||
) |
bufferization::AliasingValueList mlir::tt::ttir::ToLayoutOp::getAliasingValues | ( | ::mlir::OpOperand & | opOperand, |
const ::mlir::bufferization::AnalysisState & | state | ||
) |
|
inlinestaticprivate |
|
inlineprivate |
|
inline |
::mlir::FailureOr<::mlir::BaseMemRefType> mlir::tt::ttir::ToLayoutOp::getBufferType | ( | ::mlir::Value | value, |
const ::mlir::bufferization::BufferizationOptions & | options, | ||
::llvm::SmallVector<::mlir::Value > & | invocationStack | ||
) |
|
static |
|
inline |
void mlir::tt::ttir::ToLayoutOp::getEffects | ( | ::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect >> & | effects | ) |
|
static |
|
inline |
MetalLayoutAttr mlir::tt::ttir::ToLayoutOp::getInputLayout | ( | ) |
|
inline |
std::optional<::mlir::tt::MetalLayoutAttr > mlir::tt::ttir::ToLayoutOp::getLayout | ( | ) |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
std::pair< unsigned, unsigned > mlir::tt::ttir::ToLayoutOp::getODSResultIndexAndLength | ( | unsigned | index | ) |
|
inline |
|
inlinestatic |
|
inline |
MetalLayoutAttr mlir::tt::ttir::ToLayoutOp::getOutputLayout | ( | ) |
|
inline |
|
static |
|
inline |
|
inline |
|
static |
|
static |
void mlir::tt::ttir::ToLayoutOp::print | ( | ::mlir::OpAsmPrinter & | _odsPrinter | ) |
|
static |
|
inline |
|
static |
|
inline |
|
static |
::llvm::LogicalResult mlir::tt::ttir::ToLayoutOp::verify | ( | ) |
|
static |
llvm::LogicalResult mlir::tt::ttir::ToLayoutOp::verifyInvariants | ( | ) |
llvm::LogicalResult mlir::tt::ttir::ToLayoutOp::verifyInvariantsImpl | ( | ) |
void mlir::tt::ttir::ToLayoutOp::writeProperties | ( | ::mlir::DialectBytecodeWriter & | writer | ) |