[Mlir-commits] [mlir] [mlir][OpPrintingFlags] Allow to disable ElementsAttr hex printing (PR #85766)
Mehdi Amini
llvmlistbot at llvm.org
Fri Apr 5 09:13:14 PDT 2024
================
@@ -212,6 +212,10 @@ OpPrintingFlags::OpPrintingFlags()
return;
if (clOptions->elideElementsAttrIfLarger.getNumOccurrences())
elementsAttrElementLimit = clOptions->elideElementsAttrIfLarger;
+ if (clOptions->printElementsAttrWithHexIfLarger.getNumOccurrences()) {
+ elementsAttrHexElementLimit =
+ clOptions->printElementsAttrWithHexIfLarger.getValue();
+ }
----------------
joker-eph wrote:
Nit: remove trivial braces
(edit: sorry I wrote it a while ago but didn't flush)
https://github.com/llvm/llvm-project/pull/85766
More information about the Mlir-commits
mailing list