This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Allow transformation filter to match by default.
ClosedPublic

Authored by mravishankar on Nov 2 2021, 2:32 PM.

Details

Summary

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.

Diff Detail

Event Timeline

mravishankar created this revision.Nov 2 2021, 2:32 PM
mravishankar requested review of this revision.Nov 2 2021, 2:32 PM
nicolasvasilache accepted this revision.Nov 2 2021, 2:53 PM
This revision is now accepted and ready to land.Nov 2 2021, 2:53 PM