[all-commits] [llvm/llvm-project] 8498c9: [mlir][GreedyPatternRewriter] Add out param to det...

JoelWee via All-commits all-commits at lists.llvm.org
Thu Jun 29 03:55:49 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8498c9e9489f57c6eb59b464d2409b4974a22a02
      https://github.com/llvm/llvm-project/commit/8498c9e9489f57c6eb59b464d2409b4974a22a02
  Author: Joel Wee <joelwee at google.com>
  Date:   2023-06-29 (Thu, 29 Jun 2023)

  Changed paths:
    M mlir/include/mlir/Transforms/GreedyPatternRewriteDriver.h
    M mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp

  Log Message:
  -----------
  [mlir][GreedyPatternRewriter] Add out param to detect changes in IR in `applyPatternsAndFoldGreedily`

This allows users of `applyPatternsAndFoldGreedily` to detect if any MLIR changes have occurred. An example use-case is where we expect the `applyPatternsAndFoldGreedily` to change the IR and want to validate that it indeed does change it.

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




More information about the All-commits mailing list