[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:39 PST 2025
================
@@ -453,6 +453,35 @@ bool TestConstMemorySpaceAttr::isValidPtrIntCast(
return false;
}
+//===----------------------------------------------------------------------===//
+// TestAttrNewlineAndIndent
+//===----------------------------------------------------------------------===//
+
+Attribute TestAttrNewlineAndIndentAttr::parse(::mlir::AsmParser &parser,
+ ::mlir::Type type) {
+ Type indentType;
+ if (parser.parseLess()) {
----------------
jpienaar wrote:
Use shortcut logic for these.
https://github.com/llvm/llvm-project/pull/87948
More information about the Mlir-commits
mailing list