[Mlir-commits] [mlir] [MLIR][Presburger] Helper functions to compute the constant term of a generating function (PR #77819)

Arjun P llvmlistbot at llvm.org
Fri Jan 12 04:02:58 PST 2024


================
@@ -128,6 +128,20 @@ inline void EXPECT_EQ_REPR_QUASIPOLYNOMIAL(QuasiPolynomial a,
   }
 }
 
+// Check the constant term of the quasipolynomial against a constant.
+inline void EXPECT_CONSTANT_TERM_QUASIPOLYNOMIAL(QuasiPolynomial qp,
----------------
Superty wrote:

Just write a function in QuasiPolynomial to get its constant and use normal EXPECT_EQ?

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


More information about the Mlir-commits mailing list