The check for formatting enum attributes was missing a call to get the base attribute, which is necessary to strip off the top-level OptionalAttr<> wrapper.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D92713
[mlir][OpFormatGen] Add support for optional enum attributes ClosedPublic Authored by rriddle on Dec 4 2020, 6:57 PM.
Details Summary The check for formatting enum attributes was missing a call to get the base attribute, which is necessary to strip off the top-level OptionalAttr<> wrapper.
Diff Detail
Event TimelineHerald added subscribers: teijeong, rdzhabarov, tatianashp and 13 others. · View Herald TranscriptDec 4 2020, 6:57 PM This revision is now accepted and ready to land.Dec 4 2020, 6:59 PM Closed by commit rG7924fb34f33a: [mlir][OpFormatGen] Add support for optional enum attributes (authored by rriddle). · Explain WhyDec 4 2020, 9:01 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 309715 mlir/test/Target/llvmir.mlir
mlir/test/lib/Dialect/Test/TestOps.td
mlir/test/mlir-tblgen/op-format.mlir
mlir/tools/mlir-tblgen/OpFormatGen.cpp
|