[all-commits] [llvm/llvm-project] 3ecc2a: [mlir][Linalg] Allow transformation filter to matc...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Tue Nov 2 16:00:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ecc2a63eb04b962b67ba16d33f46197d04e5724
      https://github.com/llvm/llvm-project/commit/3ecc2a63eb04b962b67ba16d33f46197d04e5724
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2021-11-02 (Tue, 02 Nov 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp

  Log Message:
  -----------
  [mlir][Linalg] Allow transformation filter to match by default.

The current setup of LinalgTransformationFilter allows a
transformation to trigger when either
1) The StringAttr is not set and no filter identifier is specified.
2) The StringAttr is set and its value matches (one of) the provided
identifier.
This misses the case where the transformation should trigger either
when the attribute is not set or its value matches (one of) the
provided identifier. Since `Identifier` does not allow empty strings,
add a boolean option to match when the attribute is not set. This
option is by default off.

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




More information about the All-commits mailing list