[mlir] Update Attributes to use the new casting infra
authorRiver Riddle <riddleriver@gmail.com>
Tue, 20 Sep 2022 23:42:59 +0000 (16:42 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Wed, 21 Sep 2022 06:45:33 +0000 (23:45 -0700)
commitecb17da819b9a9a83a5c9051466f1ae8c3b01713
tree3b5282857d1b0dfd625a614d43a189eabd41de40
parent539fa1df4634dad7d99e4485e4fc3a82ff1a5481
[mlir] Update Attributes to use the new casting infra

This allows for using the llvm namespace cast methods instead
of the ones on the Attribute class. The Attribute class methods
are kept for now, but we'll want to remove these eventually
(with a really long lead time).

Differential Revision: https://reviews.llvm.org/D134327
mlir/include/mlir/IR/Attributes.h