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

Amy Wang llvmlistbot at llvm.org
Wed Sep 11 16:46:28 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;
----------------
kaitingwang wrote:

Fixed with an example.

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


More information about the Mlir-commits mailing list