Dimensions/symbols are shifted, starting from the specified offset. This allows for inserting new dims/syms into an AffineMap at an arbitrary position (not just at the beginning).
Depends On D108185
| Paths 
 |  Differential  D107730  
[mlir][IR] Add optional offset `offset` parameter to shiftDims/shiftSymbols AbandonedPublic Authored by springerm on Aug 8 2021, 11:05 PM. 
Details 
 Summary Dimensions/symbols are shifted, starting from the specified offset. This allows for inserting new dims/syms into an AffineMap at an arbitrary position (not just at the beginning). Depends On D108185 
Diff Detail 
 Event Timelinespringerm added a child revision: D107222: [mlir][scf] Simplify affine.min ops after loop peeling.Aug 8 2021, 11:07 PM Comment Actions It would be nice to fold this into the commit that uses the new functionality so that we don't go with untested code for a long time. springerm added a parent revision: D107725: [mlir][Analysis][NFC] Split FlatAffineConstraints class. springerm removed a parent revision: D107729: [mlir][Analysis][NFC] Reimplement FlatAffineConstraints::addLowerOrUpperBound. springerm added a parent revision: D107947: [mlir][Analysis][NFC] Clean up FlatAffineValueConstraints. springerm removed a parent revision: D107725: [mlir][Analysis][NFC] Split FlatAffineConstraints class. springerm marked 2 inline comments as done.Comment Actions address comments 
 springerm added a parent revision: D108185: [mlir][Analysis][NFC] FlatAffineConstraints: Use BoundType enum in functions. springerm removed a parent revision: D107947: [mlir][Analysis][NFC] Clean up FlatAffineValueConstraints. This revision is now accepted and ready to land.Aug 18 2021, 4:56 AM 
Revision Contents 
 
 
 
Diff 365085 mlir/include/mlir/IR/AffineExpr.h
 mlir/include/mlir/IR/AffineMap.h
 mlir/lib/IR/AffineExpr.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nit: can we align dims[ across lines?