[mlir][Linalg] NFC: Expose some utility functions used for promotion.
authorMaheshRavishankar <ravishankarm@google.com>
Mon, 23 Nov 2020 18:34:48 +0000 (10:34 -0800)
committerMaheshRavishankar <ravishankarm@google.com>
Mon, 23 Nov 2020 18:35:42 +0000 (10:35 -0800)
commit11ea2e2448a5f071a04463f94b7bccfe0a32d264
tree9b20b03a6009abcaf6cc486af30d28daf8d64d1b
parent47eb5ce19ab10bcfe00af04e6a6e39613e2cb3c9
[mlir][Linalg] NFC: Expose some utility functions used for promotion.

Exposing some utility functions from Linalg to allow for promotion of
fused views outside of the core tile+fuse logic.
This is an alternative to patch D91322 which adds the promotion logic
to the tileAndFuse method. Downside with that approach is that it is
not easily customizable based on needs.

Differential Revision: https://reviews.llvm.org/D91503
mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp