[Mlir-commits] [mlir] [MLIR][Presburger] Make printing aligned to assist in debugging (PR #107648)

Kunwar Grover llvmlistbot at llvm.org
Tue Sep 10 04:03:46 PDT 2024


================
@@ -292,6 +294,48 @@ std::vector<Fraction> multiplyPolynomials(ArrayRef<Fraction> a,
 
 bool isRangeZero(ArrayRef<Fraction> arr);
 
+struct PrintTableMetrics {
+  // If unknown, set to 0 and pass the struct into updatePrintMetrics.
+  unsigned maxPreIndent;
+  unsigned maxPostIndent;
+  // The substring expected prior to alignment.
+  std::string preAlign;
----------------
Groverkss wrote:

can you write out an example of what this is here? I can't tell from the current description.

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


More information about the Mlir-commits mailing list