[MLIR] FlatAffineConstraints: Use Matrix objects to store the constraints
authorArjun P <arjunpitchanathan@gmail.com>
Thu, 1 Jul 2021 14:42:56 +0000 (20:12 +0530)
committerArjun P <arjunpitchanathan@gmail.com>
Thu, 1 Jul 2021 16:35:31 +0000 (22:05 +0530)
commitc605dfcfc0c1c1605d254b00536351e2e8a87e19
tree953efc55999fd67b6a616d6fbc7788d4d68a223c
parent369216ab3132623e98c8c974ded915803f080dcf
[MLIR] FlatAffineConstraints: Use Matrix objects to store the constraints

This results in significant deduplication of code. This patch is not expected to change any functionality, it's just some simplification in preparation for future work. Also slightly simplified some code that was being touched anyway and added some unit tests for some functions that were touched.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D105152
mlir/include/mlir/Analysis/AffineStructures.h
mlir/include/mlir/Analysis/Presburger/Matrix.h
mlir/lib/Analysis/AffineStructures.cpp
mlir/lib/Analysis/Presburger/Matrix.cpp
mlir/unittests/Analysis/AffineStructuresTest.cpp
mlir/unittests/Analysis/Presburger/MatrixTest.cpp