[mlir][Linalg] NFC - Cleanup Linalg Declarative Transformations
authorNicolas Vasilache <ntv@google.com>
Thu, 2 Jan 2020 14:54:47 +0000 (09:54 -0500)
committerNicolas Vasilache <ntv@google.com>
Thu, 2 Jan 2020 15:11:37 +0000 (10:11 -0500)
commita9d9aadcdfa28aef8b276af416aaa69686ee9b69
tree345f99bc56294c2f73267e6055a2e46538700864
parent87a004d0f8c2fe5c4577d81b4306c35e77f21f9a
[mlir][Linalg] NFC - Cleanup Linalg Declarative Transformations

Summary:
This is part of an ongoing cleanup and uniformization work.

This diff performs 3 types of cleanups:
1. Uniformize transformation names.
2. Replace all pattern operands that need not be captured by `$_`
3. Replace all usage of pattern captured op by the normalized `op` name (instead of positional parameters such as `$0`)

Reviewers: ftynse

Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72081
mlir/include/mlir/Dialect/Linalg/Transforms/LinalgTransformPatterns.td
mlir/include/mlir/Dialect/Linalg/Transforms/LinalgTransforms.h
mlir/lib/Dialect/Linalg/Transforms/LinalgTransforms.cpp
mlir/test/lib/DeclarativeTransforms/TestLinalgTransformPatterns.td