[mlir] Move tblgen code generation to use functional forms of cast/isa
authorTres Popp <tpopp@google.com>
Thu, 25 May 2023 13:56:16 +0000 (15:56 +0200)
committerTres Popp <tpopp@google.com>
Fri, 26 May 2023 05:47:03 +0000 (07:47 +0200)
commit6de63b82cc1d1a98151aa19fa8f65bd6888789b1
tree89d51f13a7d2db994bc16d53488a0d812779c77a
parent1b8465aac4368c64d3e78ebd94fb8ca048b9e801
[mlir] Move tblgen code generation to use functional forms of cast/isa

Summary:
The method forms are deprecated. This updates the rest of the tblgen
uses of methods where a function call is available.

Context:
- https://mlir.llvm.org/deprecation/ at "Use the free function variants for dyn_cast/cast/isa/…"
- Original discussion at https://discourse.llvm.org/t/preferred-casting-style-going-forward/68443

Reviewers: rriddle
mlir/test/mlir-linalg-ods-gen/test-linalg-ods-yaml-gen.yaml
mlir/test/mlir-tblgen/attr-or-type-format.td
mlir/test/mlir-tblgen/op-attribute.td
mlir/test/mlir-tblgen/op-result.td
mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
mlir/tools/mlir-tblgen/EnumsGen.cpp
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
mlir/tools/mlir-tblgen/OpFormatGen.cpp
mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp