[Mlir-commits] [mlir] [mlir][Python] use canonical Python `isinstance` instead of `Type.isinstance` (PR #172892)
Maksim Levental
llvmlistbot at llvm.org
Fri Dec 19 13:12:49 PST 2025
makslevental wrote:
`isinstance` on `mlir_type_subclass`, `mlir_attribute_subclass` remains for now primarily because I don't want to fix the tests here and now ([`PDLType`](https://github.com/llvm/llvm-project/blob/ce57789d8e5dc109dc9bd330232b31a22a80ad3a/mlir/include/mlir/Dialect/PDL/IR/PDLTypes.h#L25) and [`QuantizedType`](https://github.com/llvm/llvm-project/blob/69aa6a0bdd5adb2d48d3cfbea1a50135d68e0453/mlir/include/mlir/Dialect/Quant/IR/QuantTypes.h#L50) don't have static typeids 🤦 so they can't be made to work with downcasting).
https://github.com/llvm/llvm-project/pull/172892
More information about the Mlir-commits
mailing list