[Mlir-commits] [mlir] [mlir] Remove extra whitespace during printout in prop-dict (#145695) (PR #145908)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jun 26 07:53:20 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Manas (weirdsmiley)
<details>
<summary>Changes</summary>
Using character representation and removal of extra whitespace keeps printout consistent across cases.
---
Full diff: https://github.com/llvm/llvm-project/pull/145908.diff
1 Files Affected:
- (modified) mlir/lib/IR/AsmPrinter.cpp (+1-1)
``````````diff
diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp
index c7cc6a02ad208..d9bd6444dda79 100644
--- a/mlir/lib/IR/AsmPrinter.cpp
+++ b/mlir/lib/IR/AsmPrinter.cpp
@@ -2848,7 +2848,7 @@ void AsmPrinter::Impl::printOptionalAttrDict(ArrayRef<NamedAttribute> attrs,
os << " attributes";
// Otherwise, print them all out in braces.
- os << " {";
+ os << '{';
interleaveComma(filteredAttrs,
[&](NamedAttribute attr) { printNamedAttribute(attr); });
os << '}';
``````````
</details>
https://github.com/llvm/llvm-project/pull/145908
More information about the Mlir-commits
mailing list