MLIR 22.0.0git
VectorRewritePatterns.h File Reference
#include <optional>
#include <utility>
#include "mlir/Dialect/Vector/IR/VectorOps.h"
#include "mlir/Dialect/Vector/Utils/VectorUtils.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Dialect/Vector/Transforms/VectorTransformsEnums.h.inc"

Go to the source code of this file.

Classes

struct  mlir::vector::UnrollVectorOptions
 Options that control the vector unrolling. More...

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::arith
namespace  mlir::vector

Functions

void mlir::vector::populateVectorContractCanonicalizeMatmulToMMT (RewritePatternSet &patterns, std::function< LogicalResult(vector::ContractionOp)> constraint=[](vector::ContractionOp) { return success();}, PatternBenefit=1)
 Canonicalization of a vector.contraction a, b, c with row-major matmul semantics to a contraction with MMT semantics (matrix matrix multiplication with the RHS transposed).
void mlir::vector::populateVectorReductionToContractPatterns (RewritePatternSet &patterns, PatternBenefit benefit=1)
 Collect patterns to convert reduction op to vector.contract and fold transpose/broadcast ops into the contract.
void mlir::vector::populateVectorTransferFullPartialPatterns (RewritePatternSet &patterns, const VectorTransformsOptions &options)
 Populate patterns with the following patterns.
void mlir::vector::populateDropInnerMostUnitDimsXferOpPatterns (RewritePatternSet &patterns, PatternBenefit benefit=1)
 Collect a set of patterns to collapse the most inner unit dims in xfer Ops.
void mlir::vector::populateSinkVectorOpsPatterns (RewritePatternSet &patterns, PatternBenefit benefit=1)
 Patterns that remove redundant Vector Ops by re-ordering them with e.g.