[mlir][ods] Allow references to the self type
authorJeff Niu <jeff@modular.com>
Fri, 30 Sep 2022 23:08:01 +0000 (16:08 -0700)
committerJeff Niu <jeff@modular.com>
Fri, 30 Sep 2022 23:34:01 +0000 (16:34 -0700)
commit0d21596c1da5fd6b1c2d523937a7fe8903ad8589
treefb4af7b4dbd18e182877e48f236caff13fda9100
parent189900eb149bb55ae3787346f57c1ccbdc50fb3c
[mlir][ods] Allow references to the self type

The self type always "bound" since it is provided to the attribute
parser hook. Allow custom directives to reference it.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D134997
mlir/test/mlir-tblgen/attr-or-type-format.td
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp