Reimplement this function in terms of composeMatchingMap.
Also fix a bug in composeMatchingMap where local dims of this could be missing in localCst.
Depends On D107729
Paths
| Differential D107813
[mlir][Analysis][NFC] Reimplement FlatAffineConstraints::composeMap ClosedPublic Authored by springerm on Aug 10 2021, 4:27 AM.
Details Summary Reimplement this function in terms of composeMatchingMap. Also fix a bug in composeMatchingMap where local dims of this could be missing in localCst. Depends On D107729
Diff Detail
Event TimelineHerald added subscribers: wrengr, Chia-hungDuan, dcaballe and 18 others. · View Herald TranscriptAug 10 2021, 4:27 AM Comment Actions A test, somewhere in https://github.com/llvm/llvm-project/blob/main/mlir/unittests/Analysis/AffineStructuresTest.cpp, would be welcome.
This revision is now accepted and ready to land.Aug 10 2021, 8:00 AM Comment Actions
The main part of this commit is the alignment of the affine map with this constraint set and reusing composeMatchingMap. This cannot be tested AffineStructuresTest.cpp because I need real IR, in particular Values to test the association of columns with those values. However, the function is (indirectly) covered by other unit tests such as Dialect/Affine/dma-generate.mlir. Is there a way to create "fake" Values in unit tests? (Without writing any IR.) Many functions in this file could be covered by a very small and concise unit test then. This revision was landed with ongoing or failed builds.Aug 10 2021, 11:56 PM Closed by commit rG9e6e08149c5f: [mlir][Analysis][NFC] Reimplement FlatAffineConstraints::composeMap (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 365675 mlir/include/mlir/Analysis/AffineStructures.h
mlir/lib/Analysis/AffineStructures.cpp
|
Nit: this doesn't look particularly helpful as doxygen (///) documentation, the function declaration already has a proper comment. Let's just drop this one.