[Mlir-commits] [mlir] [mlir][OpPrintingFlags] Allow to disable ElementsAttr hex printing (PR #85766)

Andrei Golubev llvmlistbot at llvm.org
Mon Apr 8 10:02:37 PDT 2024


================
@@ -212,6 +212,10 @@ OpPrintingFlags::OpPrintingFlags()
     return;
   if (clOptions->elideElementsAttrIfLarger.getNumOccurrences())
     elementsAttrElementLimit = clOptions->elideElementsAttrIfLarger;
+  if (clOptions->printElementsAttrWithHexIfLarger.getNumOccurrences()) {
+    elementsAttrHexElementLimit =
+        clOptions->printElementsAttrWithHexIfLarger.getValue();
+  }
----------------
andrey-golubev wrote:

np. dropped the braces.

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


More information about the Mlir-commits mailing list