[all-commits] [llvm/llvm-project] 6f5ef3: [mlir][Transforms][NFC] `GreedyPatternRewriteDrive...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Mon May 20 09:45:52 PDT 2024
Branch: refs/heads/users/matthias-springer/greedy_pattern_composition
Home: https://github.com/llvm/llvm-project
Commit: 6f5ef386997e1ed02643c485d7af3d12eafd602e
https://github.com/llvm/llvm-project/commit/6f5ef386997e1ed02643c485d7af3d12eafd602e
Author: Matthias Springer <mspringer at nvidia.com>
Date: 2024-05-20 (Mon, 20 May 2024)
Changed paths:
M mlir/include/mlir/IR/PatternMatch.h
M mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list