llvm-project/mlir/unittests/Analysis/Presburger
Groverkss 8c867f7827 [MLIR][Presburger] Improve unittest parsing
This patch adds better functions for parsing MultiAffineFunctions and
PWMAFunctions in Presburger unittests.

A PWMAFunction can now be parsed as:

```
PWMAFunction result = parsePWMAF({
    {"(x, y) : (x >= 10, x <= 20, y >= 1)", "(x, y) -> (x + y)"},
    {"(x, y) : (x >= 21)", "(x, y) -> (x + y)"},
    {"(x, y) : (x <= 9)", "(x, y) -> (x - y)"},
    {"(x, y) : (x >= 10, x <= 20, y <= 0)", "(x, y) -> (x - y)"},
});
```

which is much more readable than the old format since the output can be
described as an AffineMap, instead of coefficients.

This patch also adds support for parsing divisions in MultiAffineFunctions
and PWMAFunctions which was previously not possible.

Reviewed By: arjunp

Differential Revision: https://reviews.llvm.org/D133654
2022-09-15 19:28:49 +01:00
..
CMakeLists.txt [MLIR][Presburger] Improve unittest parsing 2022-09-15 19:28:49 +01:00
IntegerPolyhedronTest.cpp [MLIR][Presburger] Improve unittest parsing 2022-09-15 19:28:49 +01:00
IntegerRelationTest.cpp [MLIR][Presburger] Improve unittest parsing 2022-09-15 19:28:49 +01:00
LinearTransformTest.cpp [MLIR][Presburger] use arbitrary-precision arithmetic with MPInt instead of int64_t 2022-09-14 15:47:41 +01:00
MPIntTest.cpp [MLIR][Presburger] SlowMPInt::gcd: fix crash when sizes differ 2022-08-04 19:15:50 +01:00
MatrixTest.cpp [MLIR][Presburger] Add hermite normal form computation to Matrix 2022-09-14 16:39:05 +01:00
PWMAFunctionTest.cpp [MLIR][Presburger] Improve unittest parsing 2022-09-15 19:28:49 +01:00
Parser.h [MLIR][Presburger] Improve unittest parsing 2022-09-15 19:28:49 +01:00
ParserTest.cpp [MLIR][Presburger] Improve unittest parsing 2022-09-15 19:28:49 +01:00
PresburgerSetTest.cpp [MLIR][Presburger] Improve unittest parsing 2022-09-15 19:28:49 +01:00
PresburgerSpaceTest.cpp [MLIR][Presburger] Rename attachments to identifiers in PresburgerSpace 2022-07-05 16:23:44 +01:00
SimplexTest.cpp [MLIR][Presburger] Improve unittest parsing 2022-09-15 19:28:49 +01:00
Utils.h [MLIR][Presburger] Improve unittest parsing 2022-09-15 19:28:49 +01:00