[Mlir-commits] [mlir] Enable printing newlines and indents in attribute and type printers (PR #87948)

Mehdi Amini llvmlistbot at llvm.org
Sat Jun 8 14:19:44 PDT 2024


joker-eph wrote:

To address my concerns, I think you'd need to have the control be contextual to the operation. That is by default printing the attribute would not have any line break, but the operation assembly format could opt-in into this.

That can be achieved by having a flag on the AsmPrinter for example to allow the line break and the operation setting/unsetting the flag on specific attributes.


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


More information about the Mlir-commits mailing list