This has a broad impact on diagnostics that attach an operation. Ops
with one or more regions will now be printed on a new line. It was
confusing and hard to read with a trailing first line for ops
with regions.
Before:
<unknown>:0: note: see current operation: affine.for %arg3 = 0 to 8192 { affine.for %arg4 = 0 to 8192 step 512 { affine.for %arg5 = 0 to 8192 step 128 { ...
After:
<unknown>:0: note: see current operation: affine.for %arg3 = 0 to 8192 { affine.for %arg4 = 0 to 8192 step 512 { affine.for %arg5 = 0 to 8192 step 128 { ...
I'm not really a fan of this method, can you remove it from this diff? There is already something similar in https://github.com/llvm/llvm-project/blob/1a1c59f9958609438c13af73444061d85caa749c/mlir/include/mlir/Support/DebugStringHelper.h#L28 which could just be changed to invoke "print()" and have an optional set of additional arguments to that.