This matches the '(print|parse)OptionalAttrDictWithKeyword' functionality provided by the assembly parser/printer.
Depends On D74681
Paths
| Differential D74682
[mlir][DeclarativeParser] Add an 'attr-dict-with-keyword' directive ClosedPublic Authored by rriddle on Feb 15 2020, 11:24 PM.
Details Summary This matches the '(print|parse)OptionalAttrDictWithKeyword' functionality provided by the assembly parser/printer. Depends On D74681
Diff Detail
Event Timeline
Comment Actions LGTM, Seems a bit too specialized but OK matches current behavior and not too invasive. This revision is now accepted and ready to land.Feb 21 2020, 9:55 AM Closed by commit rGca4ea51c0af2: [mlir][DeclarativeParser] Add an 'attr-dict-with-keyword' directive (authored by rriddle). · Explain WhyFeb 21 2020, 3:25 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 244854 mlir/docs/OpDefinitions.md
mlir/test/lib/TestDialect/TestOps.td
mlir/test/mlir-tblgen/op-format-spec.td
mlir/test/mlir-tblgen/op-format.mlir
mlir/tools/mlir-tblgen/OpFormatGen.cpp
|
I'm not sure I follow this, so attributes is just some string? Why do we need to treat attributes special vs just have "attributes attr-dic" ?