[Mlir-commits] [mlir] [MLIR][Presburger] Generating functions and quasi-polynomials for Barvinok's algorithm (PR #75702)

Arjun P llvmlistbot at llvm.org
Tue Dec 19 09:06:10 PST 2023


================
@@ -71,6 +72,27 @@ inline void EXPECT_EQ_FRAC_MATRIX(FracMatrix a, FracMatrix b) {
       EXPECT_EQ(a(row, col), b(row, col));
 }
 
+inline void EXPECT_EQ_QUASIPOLYNOMIAL(QuasiPolynomial a, QuasiPolynomial b) {
----------------
Superty wrote:

make it clear that only coefficients are checked. BTW, it seems like you are just checking all the members. You can technically just do a == b I would guess, but this seems useful to give more precise error message on test failures so let this be.

https://github.com/llvm/llvm-project/pull/75702


More information about the Mlir-commits mailing list