[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:37 PST 2025


================
@@ -565,6 +565,11 @@ For Attributes, these methods will have the form:
 
 - `void MyAttr::print(AsmPrinter &p) const`
 
+It is possible to use newlines and indents in custom `print` methods.
+However, multiline Types or Attributes are not recommended nor allowed in the MLIR dialects.
----------------
jpienaar wrote:

in the upstream

or

in the core

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


More information about the Mlir-commits mailing list