[MLIR] NFC. Expose/move MDG out of Affine fusion into Affine Analysis
authorUday Bondhugula <uday@polymagelabs.com>
Wed, 29 Mar 2023 18:27:13 +0000 (23:57 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Wed, 29 Mar 2023 18:41:13 +0000 (00:11 +0530)
commitc910570fd22139299f219d3a5087e55968d8840d
treec9eda2c4efa76a6e64ba1e3dc470a5850e50d74e
parentf2b15b9ed9c70f7f42cf2c134be15a5fed52d6c0
[MLIR] NFC. Expose/move MDG out of Affine fusion into Affine Analysis

Move out MemRefDependenceGraph analysis structure out of LoopFusion into
the Affine Analysis library. This had been a long pending TODO. Moving
MDG out allows its use in other affine passes as well as allows building
custom affine fusion passes downstream while reusing upstream fusion
utilties. The file LoopFusion.cpp had also become lengthy and this
change makes things more modular. This change is a pure NFC and is a
code movement.

NFC.

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D147105
mlir/include/mlir/Dialect/Affine/Analysis/Utils.h
mlir/lib/Dialect/Affine/Analysis/Utils.cpp
mlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp