[mlir] Don't include the attribute self type in a `params` directive
authorRiver Riddle <riddleriver@gmail.com>
Wed, 9 Nov 2022 20:39:04 +0000 (12:39 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Sat, 12 Nov 2022 22:38:45 +0000 (14:38 -0800)
commitdf5ea69105189e71b47aaa96a9060863c4101109
tree3b17e8dcf7f4372356082941c3b4ccacfe1d1967
parent01f924d0e37a5deae51df0d77e10a15b63aa0c0f
[mlir] Don't include the attribute self type in a `params` directive

The self type is handled separately from normal parameters, and
the use of the params directive currently breaks attributes that
want to use it (e.g. in a struct directive).

Differential Revision: https://reviews.llvm.org/D137732
mlir/docs/AttributesAndTypes.md
mlir/test/lib/Dialect/Test/TestAttrDefs.td
mlir/test/mlir-tblgen/attr-or-type-format-roundtrip.mlir
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp