[Mlir-commits] [mlir] Enable printing newlines and indents in attribute and type printers (PR #87948)
Jacques Pienaar
llvmlistbot at llvm.org
Wed Dec 31 03:35:38 PST 2025
================
@@ -130,6 +130,18 @@ class AsmPrinter {
/// Return the raw output stream used by this printer.
virtual raw_ostream &getStream() const;
+ /// Print a newline and indent the printer to the start of the current
+ /// operation/attribute/type.
+ /// Note: For attributes and types this method should only be used in
+ /// custom dialects. Usage in MLIR dialects is disallowed.
----------------
jpienaar wrote:
```suggestion
/// custom dialects. Usage in upstream MLIR dialects is currently disallowed.
```
https://github.com/llvm/llvm-project/pull/87948
More information about the Mlir-commits
mailing list