MLIR 22.0.0git
FoldTensorSubsetOps.cpp File Reference

Go to the source code of this file.

Classes

class  mlir::tensor::impl::FoldTensorSubsetOpsPassBase< DerivedT >
struct  InsertSliceOfInsertSliceFolder< OpTy >

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::tensor
namespace  mlir::tensor::impl

Macros

#define GEN_PASS_DEF_FOLDTENSORSUBSETOPSPASS
#define GEN_PASS_REGISTRATION_FOLDTENSORSUBSETOPSPASS

Functions

std::unique_ptr<::mlir::Passmlir::tensor::createFoldTensorSubsetOpsPass ()
std::unique_ptr<::mlir::Passmlir::tensor::impl::createFoldTensorSubsetOpsPass ()
void mlir::tensor::registerFoldTensorSubsetOpsPass ()
void mlir::tensor::registerFoldTensorSubsetOpsPassPass ()
void mlir::tensor::registerTensorPasses ()
static Value getTensorOperand (vector::TransferReadOp op)
static Value getTensorOperand (tensor::InsertSliceOp op)
template<typename XferOp, typename ExtractOrInsertOp>
static LogicalResult preconditionsFoldExtractOrInsertWithTransferOp (RewriterBase &rewriter, XferOp xferOp, ExtractOrInsertOp extractOrInsertSliceOp)

Macro Definition Documentation

◆ GEN_PASS_DEF_FOLDTENSORSUBSETOPSPASS

#define GEN_PASS_DEF_FOLDTENSORSUBSETOPSPASS

Definition at line 28 of file FoldTensorSubsetOps.cpp.

◆ GEN_PASS_REGISTRATION_FOLDTENSORSUBSETOPSPASS

#define GEN_PASS_REGISTRATION_FOLDTENSORSUBSETOPSPASS

Function Documentation

◆ getTensorOperand() [1/2]

Value getTensorOperand ( tensor::InsertSliceOp op)
static

Definition at line 39 of file FoldTensorSubsetOps.cpp.

◆ getTensorOperand() [2/2]

Value getTensorOperand ( vector::TransferReadOp op)
static

Definition at line 35 of file FoldTensorSubsetOps.cpp.

◆ preconditionsFoldExtractOrInsertWithTransferOp()

template<typename XferOp, typename ExtractOrInsertOp>
LogicalResult preconditionsFoldExtractOrInsertWithTransferOp ( RewriterBase & rewriter,
XferOp xferOp,
ExtractOrInsertOp extractOrInsertSliceOp )
static

Definition at line 76 of file FoldTensorSubsetOps.cpp.

References mlir::RewriterBase::notifyMatchFailure().