[Mlir-commits] [mlir] [mlir][vector] Add support for multi-dim reduction vector distribution (PR #71193)

Lei Zhang llvmlistbot at llvm.org
Thu Nov 9 22:48:01 PST 2023


================
@@ -1477,9 +1485,8 @@ struct WarpOpInsert : public OpRewritePattern<WarpExecuteOnLane0Op> {
 /// ```
 struct WarpOpScfForOp : public OpRewritePattern<WarpExecuteOnLane0Op> {
 
-  WarpOpScfForOp(MLIRContext *ctx, DistributionMapFn fn, PatternBenefit b = 1)
-      : OpRewritePattern<WarpExecuteOnLane0Op>(ctx, b),
-        distributionMapFn(std::move(fn)) {}
+  WarpOpScfForOp(MLIRContext *ctx, PatternBenefit b = 1)
----------------
antiagainst wrote:

This can just be using `OpRewritePattern::OpRewritePattern` now?

https://github.com/llvm/llvm-project/pull/71193


More information about the Mlir-commits mailing list