[Mlir-commits] [mlir] [mlir][affine] Define `affine.linearize_index` (PR #114480)

Jakub Kuderski llvmlistbot at llvm.org
Mon Nov 4 09:25:38 PST 2024


================
@@ -45,6 +46,24 @@ struct LowerDelinearizeIndexOps
   }
 };
 
+/// Lowers `affine.linearize_index` into a sequence of multiplications and
+/// additions.
+struct LowerLinearizeIndexOps
+    : public OpRewritePattern<AffineLinearizeIndexOp> {
+  using OpRewritePattern<AffineLinearizeIndexOp>::OpRewritePattern;
----------------
kuhar wrote:

```suggestion
struct LowerLinearizeIndexOps final
    : OpRewritePattern<AffineLinearizeIndexOp> {
  using OpRewritePattern::OpRewritePattern;
```

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


More information about the Mlir-commits mailing list