[all-commits] [llvm/llvm-project] 189033: [mlir][Transforms][NFC] CSE: Add non-pass entry point

Matthias Springer via All-commits all-commits at lists.llvm.org
Thu Jun 29 07:42:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 189033e6bede96de0d74e61715fcd1b48d95e247
      https://github.com/llvm/llvm-project/commit/189033e6bede96de0d74e61715fcd1b48d95e247
  Author: Matthias Springer <me at m-sp.org>
  Date:   2023-06-29 (Thu, 29 Jun 2023)

  Changed paths:
    M mlir/include/mlir/IR/PatternMatch.h
    A mlir/include/mlir/Transforms/CSE.h
    M mlir/lib/Transforms/CSE.cpp

  Log Message:
  -----------
  [mlir][Transforms][NFC] CSE: Add non-pass entry point

Add an additional entry point so that CSE can be used without a pass. This allows CSE to be used from the Transform dialect without invalidating all handles.

* All IR modifications are done with a rewriter.
* The C++ entry point takes a `RewriterBase &`, which may have a listener attached to it. This allows users to track all IR modifications.

Differential Revision: https://reviews.llvm.org/D145226




More information about the All-commits mailing list