[mlir][Affine] Move/expose hasNoInterveningEffect
authorMaksim Levental <maksim.levental@gmail.com>
Thu, 29 Sep 2022 16:08:36 +0000 (11:08 -0500)
committermax <maksim.levental@gmail.com>
Thu, 29 Sep 2022 16:10:17 +0000 (11:10 -0500)
commite753bc87458eb950e2a51200bb4dcc16cc775d82
tree015512796daf960030933ff14c4d4fcbb3a6298d
parent8bfba17b409000deae6436f92080d0c96bf5ea3b
[mlir][Affine] Move/expose hasNoInterveningEffect

Expose [[ https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/Affine/Utils/Utils.cpp#L661 | Dialect/Affine/Utils/Utils.cpp#hasNoInterveningEffect ]] for downstream use (particular use case is a lazy implementation of [[ https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/Affine/Utils/Utils.cpp#L845 | forwardStoreToLoad ]] in CIRCT). This exposes hasNoInterveningEffect and instantiates for the necessary types.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D134374
mlir/include/mlir/Dialect/Affine/Utils.h
mlir/lib/Dialect/Affine/Utils/Utils.cpp