[mlir] Add example of `printAlias` to test dialect (NFC) (#79232)
commitdf1e01b316b174b5aa10727bd2ee0ec1082a9f65
authorJeff Niu <jeff@modular.com>
Wed, 24 Jan 2024 00:29:57 +0000 (23 16:29 -0800)
committerGitHub <noreply@github.com>
Wed, 24 Jan 2024 00:29:57 +0000 (23 16:29 -0800)
tree6c3d4a39da2353f12f2ad126329726c95548b8d4
parent03a61d34ebf4f8eeaa6861bec3ab39c75bb41778
[mlir] Add example of `printAlias` to test dialect (NFC) (#79232)

Follow-up from previous pull request. Motivate the API change with an
attribute that decides between sugaring a sub-attribute or using an
alias
mlir/test/IR/print-attr-type-aliases.mlir
mlir/test/lib/Dialect/Test/TestAttrDefs.td
mlir/test/lib/Dialect/Test/TestAttributes.cpp