[mlir][ods] Support default-valued attributes in optional groups
authorrkayaith <rkayaith@gmail.com>
Fri, 14 Oct 2022 18:21:44 +0000 (14:21 -0400)
committerrkayaith <rkayaith@gmail.com>
Sun, 16 Oct 2022 22:01:39 +0000 (18:01 -0400)
commit7f2d9c21b49c8515769fba113631df0f492d6279
tree28080e2246b30bac4c3cc779a1da48cd8e89bab6
parentaec0c1009fc4f87fc0c0f47d30eb2a7c12c5c27c
[mlir][ods] Support default-valued attributes in optional groups

Add support for default-valued attributes as optional-group anchors. The
attribute is considered present if it holds a non-default value.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D134993
mlir/test/lib/Dialect/Test/TestOps.td
mlir/test/mlir-tblgen/op-format-invalid.td
mlir/test/mlir-tblgen/op-format.mlir
mlir/test/mlir-tblgen/op-format.td
mlir/tools/mlir-tblgen/OpFormatGen.cpp