diff options
author | Matthias Springer <springerm@google.com> | 2021-08-17 10:08:08 +0900 |
---|---|---|
committer | Matthias Springer <springerm@google.com> | 2021-08-17 10:09:17 +0900 |
commit | 4c4ab673f10f558fa55ec97ece95ddfe109b2212 (patch) | |
tree | 6107d740fe32a8dfcc4894c95537f7c0855a9003 /mlir/lib/Transforms/LoopFusion.cpp | |
parent | f27fee623d0124c64a73374d0256819396647864 (diff) | |
download | llvm-4c4ab673f10f558fa55ec97ece95ddfe109b2212.zip llvm-4c4ab673f10f558fa55ec97ece95ddfe109b2212.tar.gz llvm-4c4ab673f10f558fa55ec97ece95ddfe109b2212.tar.bz2 |
[mlir][Analysis][NFC] Split FlatAffineConstraints class
* Extract "value" functionality of `FlatAffineConstraints` into a new derived `FlatAffineValueConstraints` class. Current users of `FlatAffineConstraints` can use `FlatAffineValueConstraints` without additional code changes, thus NFC.
* `FlatAffineConstraints` no longer associates dimensions with SSA Values. All functionality that requires this, is moved to `FlatAffineValueConstraints`.
* `FlatAffineConstraints` no longer makes assumptions about where Values associated with dimensions are coming from.
Differential Revision: https://reviews.llvm.org/D107725
Diffstat (limited to 'mlir/lib/Transforms/LoopFusion.cpp')
-rw-r--r-- | mlir/lib/Transforms/LoopFusion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopFusion.cpp b/mlir/lib/Transforms/LoopFusion.cpp index 955230d..7026ad0 100644 --- a/mlir/lib/Transforms/LoopFusion.cpp +++ b/mlir/lib/Transforms/LoopFusion.cpp @@ -916,7 +916,7 @@ static Value createPrivateMemRef(AffineForOp forOp, Operation *srcStoreOpInst, assert(numElements.hasValue() && "non-constant number of elts in local buffer"); - const FlatAffineConstraints *cst = region.getConstraints(); + const FlatAffineValueConstraints *cst = region.getConstraints(); // 'outerIVs' holds the values that this memory region is symbolic/parametric // on; this would correspond to loop IVs surrounding the level at which the // slice is being materialized. |