[all-commits] [llvm/llvm-project] 9b2eb3: [mlir][Transforms][NFC] Remove `SplitBlockRewrite`

Matthias Springer via All-commits all-commits at lists.llvm.org
Fri Feb 23 07:37:38 PST 2024


  Branch: refs/heads/users/matthias-springer/remove_split_block_rewrite
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b2eb3746277bab4c04d64f384b3545a77fe11e6
      https://github.com/llvm/llvm-project/commit/9b2eb3746277bab4c04d64f384b3545a77fe11e6
  Author: Matthias Springer <springerm at google.com>
  Date:   2024-02-23 (Fri, 23 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