Page MenuHomePhabricator

Emit the boilerplate for Type printer/parser dialect dispatching from ODS
ClosedPublic

Authored by mehdi_amini on Nov 5 2021, 10:30 PM.

Details

Summary

Add a new useDefaultTypePrinterParser boolean settings on the dialect
(default to false for now) that emits the boilerplate to dispatch type
parsing/printing to the auto-generated method.
We will likely turn this on by default in the future.

Depends On D113329

Diff Detail

Event Timeline

mehdi_amini created this revision.Nov 5 2021, 10:30 PM
mehdi_amini requested review of this revision.Nov 5 2021, 10:30 PM
rriddle accepted this revision.Nov 7 2021, 1:18 PM
This revision is now accepted and ready to land.Nov 7 2021, 1:18 PM
rriddle added inline comments.Nov 7 2021, 1:19 PM
mlir/include/mlir/IR/OpBase.td
306
mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
534
549
mehdi_amini marked 3 inline comments as done.Nov 9 2021, 4:41 PM