[mlir][TypeDefGen] Remove the need to define parser/printer for singleton types
authorRiver Riddle <riddleriver@gmail.com>
Wed, 6 Jan 2021 22:54:39 +0000 (14:54 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Wed, 6 Jan 2021 23:00:14 +0000 (15:00 -0800)
commit41d919aa29468ac072755b8449b8a38ff26f6979
treed478b25f58a13b721a4a363c91697093c71866ce
parenta1265690cf614bde8a7fd1d503c5f13c184dc786
[mlir][TypeDefGen] Remove the need to define parser/printer for singleton types

This allows for singleton types without an explicit parser/printer to simply use
the mnemonic as the assembly format, removing the need for these types to provide the parser/printer
fields.

Differential Revision: https://reviews.llvm.org/D94194
mlir/test/lib/Dialect/Test/TestTypeDefs.td
mlir/tools/mlir-tblgen/TypeDefGen.cpp