[mlir][Linalg] NFC - Refactor and simplify Promotion
authorNicolas Vasilache <ntv@google.com>
Mon, 11 May 2020 14:39:16 +0000 (10:39 -0400)
committerNicolas Vasilache <ntv@google.com>
Mon, 11 May 2020 14:44:45 +0000 (10:44 -0400)
commit8dbbb223834d1715bc9869aa409a4b0f52816da3
treec57d369b0704bb46bfe58a90409582c36e5432c2
parent728cf6d86b4f20144ac10517afb0cb978beac124
[mlir][Linalg] NFC - Refactor and simplify Promotion

Summary: This revision introduces LinalgPromotionOptions to more easily control the application of promotion patterns. It also simplifies the different entry points into Promotion in preparation for some behavior change in subsequent revisions.

Differential Revision: https://reviews.llvm.org/D79489
mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
mlir/test/lib/Transforms/TestLinalgTransforms.cpp