[Mlir-commits] [mlir] [mlir][Transforms][NFC] `GreedyPatternRewriteDriver`: Use composition instead of inheritance (PR #92785)

Markus Böck llvmlistbot at llvm.org
Mon Jun 3 01:51:23 PDT 2024


================
@@ -784,6 +784,7 @@ class IRRewriter : public RewriterBase {
 /// place.
 class PatternRewriter : public RewriterBase {
 public:
+  PatternRewriter(MLIRContext *ctx) : RewriterBase(ctx) {}
----------------
zero9178 wrote:

```suggestion
  explicit PatternRewriter(MLIRContext *ctx) : RewriterBase(ctx) {}
```

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


More information about the Mlir-commits mailing list