Emit the boilerplate for Attribute printer/parser dialect dispatching from ODS
authorMehdi Amini <joker.eph@gmail.com>
Sat, 6 Nov 2021 07:14:17 +0000 (07:14 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 10 Nov 2021 00:38:19 +0000 (00:38 +0000)
commitfd6b404183ce1faa47a20a345d1f7d3486070f4f
tree8af86ab0c01b0717aa4776b58de3f3885b32ab62
parent9d506ae0f607db876e8bfcd1169d24c92156ae48
Emit the boilerplate for Attribute printer/parser dialect dispatching from ODS

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

Differential Revision: https://reviews.llvm.org/D113329
mlir/include/mlir/IR/OpBase.td
mlir/include/mlir/TableGen/Dialect.h
mlir/lib/TableGen/Dialect.cpp
mlir/test/lib/Dialect/Test/TestAttributes.cpp
mlir/test/lib/Dialect/Test/TestOps.td
mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
mlir/tools/mlir-tblgen/DialectGen.cpp