[all-commits] [llvm/llvm-project] 9b6bd7: [mlir][IR] Add listener notifications for pattern ...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Sat Mar 9 19:13:11 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9b6bd7093ccb07ba8d6987220b2703549af02933
https://github.com/llvm/llvm-project/commit/9b6bd7093ccb07ba8d6987220b2703549af02933
Author: Matthias Springer <me at m-sp.org>
Date: 2024-03-10 (Sun, 10 Mar 2024)
Changed paths:
M mlir/include/mlir/IR/PatternMatch.h
M mlir/lib/Transforms/Utils/DialectConversion.cpp
M mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
Log Message:
-----------
[mlir][IR] Add listener notifications for pattern begin/end (#84131)
This commit adds two new notifications to `RewriterBase::Listener`:
* `notifyPatternBegin`: Called when a pattern application begins during
a greedy pattern rewrite or dialect conversion.
* `notifyPatternEnd`: Called when a pattern application finishes during
a greedy pattern rewrite or dialect conversion.
The listener infrastructure already provides a `notifyMatchFailure`
callback that notifies about the reason for a pattern match failure. The
two new notifications provide additional information about pattern
applications.
This change is in preparation of improving the handle update mechanism
in the `apply_conversion_patterns` transform op.
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