[mlir] Add CastInfo for mlir classes subclassing from PointerUnion
authorTres Popp <tpopp@google.com>
Tue, 23 May 2023 09:52:31 +0000 (11:52 +0200)
committerTres Popp <tpopp@google.com>
Fri, 26 May 2023 05:47:03 +0000 (07:47 +0200)
commit1b8465aac4368c64d3e78ebd94fb8ca048b9e801
tree73d9511838f51ca79bf8864b3ec5c791a8abe145
parent00c7bdf80cb0d174f2f852e6b56569858120e118
[mlir] Add CastInfo for mlir classes subclassing from PointerUnion

This is required to use the function variants of cast/isa/dyn_cast/etc
on them.

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
mlir/include/mlir/Analysis/DataFlowFramework.h
mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h
mlir/include/mlir/IR/OpDefinition.h
mlir/include/mlir/IR/Unit.h
mlir/include/mlir/Interfaces/CallInterfaces.h