[all-commits] [llvm/llvm-project] da784a: [mlir][IR] Add `RewriterBase::moveBlockBefore` and...

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed Jan 31 02:25:23 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da784a25557e29996bd33638d51d569ddf989faf
      https://github.com/llvm/llvm-project/commit/da784a25557e29996bd33638d51d569ddf989faf
  Author: Matthias Springer <me at m-sp.org>
  Date:   2024-01-31 (Wed, 31 Jan 2024)

  Changed paths:
    M mlir/include/mlir/IR/Block.h
    M mlir/include/mlir/IR/PatternMatch.h
    M mlir/lib/IR/Block.cpp
    M mlir/lib/IR/PatternMatch.cpp
    M mlir/test/Transforms/test-strict-pattern-driver.mlir
    M mlir/test/lib/Dialect/Test/TestPatterns.cpp

  Log Message:
  -----------
  [mlir][IR] Add `RewriterBase::moveBlockBefore` and fix bug in `moveOpBefore` (#79579)

This commit adds a new method to the rewriter API: `moveBlockBefore`.
This op is utilized by `inlineRegionBefore` and covered by dialect
conversion test cases.

Also fixes a bug in `moveOpBefore`, where the previous op location was
not passed correctly. Adds a test case to
`test-strict-pattern-driver.mlir`.




More information about the All-commits mailing list