[Mlir-commits] [mlir] Enable printing newlines and indents in attribute and type printers (PR #87948)
Lukasz Mielicki
llvmlistbot at llvm.org
Mon Oct 20 06:12:19 PDT 2025
lmielick wrote:
@jpienaar, @joker-eph did you have a chance to examine the examples provided? It's a custom dialect where moving attributes out of line with aliases goes against readability as each of such operations is unique and should be considered stand-alone.
Explicit indentation seems to be the only option for us and possibly in similar cases.
One could argue that operation syntax should rather be terse and newlines are supported there. While any tool can be misused, perhaps making the attribute syntax capabilities consistent with operation IR formatting capabilities is in the realm of possibility?
https://github.com/llvm/llvm-project/pull/87948
More information about the Mlir-commits
mailing list