[MLIR] ODS TypeDefs: getChecked() and internal enhancements
authorJohn Demme <john.demme@microsoft.com>
Mon, 19 Oct 2020 01:07:44 +0000 (01:07 +0000)
committerJohn Demme <john.demme@microsoft.com>
Mon, 19 Oct 2020 01:10:05 +0000 (01:10 +0000)
commitf402e682d0ef5598eeffc9a21a691b03e602ff58
treea8eaa47ddbffa57e551934009e7c11b989c05f1a
parent03c267b20cadf5871c30dee95076247fd7fe38e2
[MLIR] ODS TypeDefs: getChecked() and internal enhancements

Have the ODS TypeDef generator write the getChecked() definition.
Also add to TypeParamCommaFormatter a `JustParams` format and
refactor around that.

Reviewed By: rriddle

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