[mlir][ods] AttrOrTypeDef format: parse types
authorMogball <jeffniu22@gmail.com>
Sun, 14 Nov 2021 23:01:59 +0000 (23:01 +0000)
committerMogball <jeffniu22@gmail.com>
Sun, 14 Nov 2021 23:24:29 +0000 (23:24 +0000)
commitd259594be968b9a07bb937c27ba041ed14276bab
tree642923cd81a81995fbc8fd91b445216d8528cbc7
parent0b158c6c7df8c459d1c12121949fef9d68e59ed2
[mlir][ods] AttrOrTypeDef format: parse types

Add template specialization to `FieldParser` for parsing types.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D113867
mlir/include/mlir/IR/DialectImplementation.h
mlir/test/lib/Dialect/Test/TestAttrDefs.td
mlir/test/mlir-tblgen/attr-or-type-format-roundtrip.mlir
mlir/test/mlir-tblgen/attr-or-type-format.mlir