[all-commits] [llvm/llvm-project] c60c43: [mlir][Transforms][WIP] RewriteAction

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Feb 12 01:10:05 PST 2024


  Branch: refs/heads/users/matthias-springer/dialect_conversion_move_op_before
  Home:   https://github.com/llvm/llvm-project
  Commit: c60c43bcd2296715ceca83a3f9666433883ec303
      https://github.com/llvm/llvm-project/commit/c60c43bcd2296715ceca83a3f9666433883ec303
  Author: Matthias Springer <springerm at google.com>
  Date:   2024-02-12 (Mon, 12 Feb 2024)

  Changed paths:
    M mlir/lib/Transforms/Utils/DialectConversion.cpp

  Log Message:
  -----------
  [mlir][Transforms][WIP] RewriteAction

BEGIN_PUBLIC
No public commit message needed for presubmit.
END_PUBLIC


  Commit: ebfaca6b688394233b0d6a22f77b8b7cccaf67a8
      https://github.com/llvm/llvm-project/commit/ebfaca6b688394233b0d6a22f77b8b7cccaf67a8
  Author: Matthias Springer <springerm at google.com>
  Date:   2024-02-12 (Mon, 12 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
    M mlir/test/Transforms/test-legalizer.mlir
    M mlir/test/lib/Dialect/Test/TestPatterns.cpp

  Log Message:
  -----------
  [mlir][Transforms] Support `moveOpBefore`/`After` in dialect conversion

Add a new rewrite action for "operation movements". This action can roll back `moveOpBefore` and `moveOpAfter`.

`RewriterBase::moveOpBefore` and `RewriterBase::moveOpAfter` is no longer virtual. (The dialect conversion can gather all required information for rollbacks from listener notifications.)

BEGIN_PUBLIC
No public commit message needed for presubmit.
END_PUBLIC


Compare: https://github.com/llvm/llvm-project/compare/7503c0cb484c...ebfaca6b6883


More information about the All-commits mailing list