[all-commits] [llvm/llvm-project] 2f23f9: [Canonicalize] Fully parameterize the pass based o...

Chris Lattner via All-commits all-commits at lists.llvm.org
Tue May 25 13:23:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f23f9e641e3830948cd2357a8fa52798df8ffcb
      https://github.com/llvm/llvm-project/commit/2f23f9e641e3830948cd2357a8fa52798df8ffcb
  Author: Chris Lattner <clattner at nondot.org>
  Date:   2021-05-25 (Tue, 25 May 2021)

  Changed paths:
    M mlir/include/mlir/Transforms/GreedyPatternRewriteDriver.h
    M mlir/include/mlir/Transforms/Passes.h
    M mlir/include/mlir/Transforms/Passes.td
    M mlir/lib/Transforms/Canonicalizer.cpp

  Log Message:
  -----------
  [Canonicalize] Fully parameterize the pass based on config options. NFC.

This allows C++ clients of the Canonicalize pass to specify their own
Config option struct to control how Canonicalize works, increasing reusability.

This also allows controlling these settings for the default Canonicalize pass
using command line options.  This is useful for testing and for playing with
things on the command line.

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




More information about the All-commits mailing list