[Mlir-commits] [mlir] [MLIR][Presburger] Implement function to evaluate the number of terms in a generating function. (PR #78078)

Arjun P llvmlistbot at llvm.org
Sun Jan 14 08:31:24 PST 2024


================
@@ -99,6 +99,10 @@ QuasiPolynomial getCoefficientInRationalFunction(unsigned power,
                                                  ArrayRef<QuasiPolynomial> num,
                                                  ArrayRef<Fraction> den);
 
+/// Substitute the generating function with the unit vector
+/// to find the number of terms.
+QuasiPolynomial substituteWithUnitVector(GeneratingFunction);
----------------
Superty wrote:

If it counts the number of terms I would just call it computeNumTerms. Substituting is an implementation that neither needs to be part of the name nor in the header/API doc 

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


More information about the Mlir-commits mailing list