Commit 6f5ef386 authored by Matthias Springer's avatar Matthias Springer
Browse files

[mlir][Transforms][NFC] `GreedyPatternRewriteDriver`: Use composition instead of inheritance

This commit simplifies the design of the `GreedyPatternRewriterDriver` class. This class used to inherit from both `PatternRewriter` and `RewriterBase::Listener` and then attached itself as a listener.

In the new design, the class has a `PatternRewriter` field instead of inheriting from `PatternRewriter`, which is generally perferred in object-oriented programming.
parent 8b8a38a7
Pipeline #2435 failed with stages
in 0 seconds
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment