Supports whitespace elements: and \\n as well as the "empty" whitespace `` that removes an otherwise printed space.
Depends on D118208
Paths
| Differential D118210
[mlir][ods] Attribute and type formats: support whitespaces ClosedPublic Authored by Mogball on Jan 25 2022, 6:48 PM.
Details Summary Supports whitespace elements: and \\n as well as the "empty" whitespace `` that removes an otherwise printed space. Depends on D118208
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 19 others. · View Herald TranscriptJan 25 2022, 6:48 PM Mogball added a child revision: D118544: [mlir][ods] Default-valued parameters in attribute or type defs.Jan 29 2022, 3:38 PM rriddle added inline comments.
This revision is now accepted and ready to land.Jan 31 2022, 1:13 AM This revision was landed with ongoing or failed builds.Feb 8 2022, 3:27 PM Closed by commit rG740e8326444d: [mlir][ods] Attribute and type formats: support whitespaces (authored by Mogball). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 403108 mlir/test/lib/Dialect/Test/TestTypeDefs.td
mlir/test/mlir-tblgen/attr-or-type-format-roundtrip.mlir
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
|
This should require $_printer.printNewline() just like operation formats, though I think that requires me to finish my patch for removing the nested printing awkwardness. Would be good to add a FIXME here that this should be driven by the printer.