[MLIR] rewrite AffineStructures and Presburger tests to use the parser
authorChristian Ulmann <culmann@student.ethz.ch>
Mon, 20 Dec 2021 14:36:25 +0000 (20:06 +0530)
committerArjun P <arjunpitchanathan@gmail.com>
Mon, 20 Dec 2021 14:41:12 +0000 (20:11 +0530)
commit85cb53c790361b97d39461c9c0c45d4c69ce3d6a
tree8de19193a56c1622e9e26245825182f9a04c9274
parent8b997adc64ce09bbc981ba52954d4e1baa012cce
[MLIR] rewrite AffineStructures and Presburger tests to use the parser

This commit rewrites most existing unittests involving FlatAffineConstraints
to use the parsing utility. This helps to make the tests more understandable.

This relands commit b0e8667b1dbdb45bdc2738e4bec1c69fe3790a27, which was
reverted in 6963be12761f9d78a49c6d43e7ac13862a8f7270, with a fix to a unittest
which was incorrectly rewritten before.

Reviewed By: arjunp

Differential Revision: https://reviews.llvm.org/D115920
mlir/unittests/Analysis/AffineStructuresTest.cpp
mlir/unittests/Analysis/PresburgerSetTest.cpp