[all-commits] [llvm/llvm-project] b85493: [mlir][Transforms][NFC] Remove `SplitBlockRewrite`
Matthias Springer via All-commits
all-commits at lists.llvm.org
Tue Feb 27 06:11:38 PST 2024
Branch: refs/heads/users/matthias-springer/remove_split_block_rewrite
Home: https://github.com/llvm/llvm-project
Commit: b85493382a41792ddba2654b7d789a55a564d1c0
https://github.com/llvm/llvm-project/commit/b85493382a41792ddba2654b7d789a55a564d1c0
Author: Matthias Springer <springerm at google.com>
Date: 2024-02-27 (Tue, 27 Feb 2024)
Changed paths:
M mlir/include/mlir/IR/PatternMatch.h
M mlir/include/mlir/Transforms/DialectConversion.h
M mlir/lib/Transforms/Utils/DialectConversion.cpp
Log Message:
-----------
[mlir][Transforms][NFC] Remove `SplitBlockRewrite`
When splitting a block during a dialect conversion, a `SplitBlockRewrite` object is stored in the dialect conversion state. This commit removes `SplitBlockRewrite`. Instead, a combination of `CreateBlockRewrite` and multiple `MoveOperationRewrite` is used.
This change simplifies the internal state of the dialect conversion and is also needed to properly support listeners.
`RewriteBase::splitBlock` is now no longer virtual. All necessary information for committing/rolling back a split block rewrite can be deduced from `Listener::notifyBlockInserted` and `Listener::notifyOperationInserted` (which is also called when moving an operation).
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