[Mlir-commits] [mlir] [mlir][py] ability to downcast AffineExpr after #172892 (PR #174808)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Wed Jan 7 09:29:13 PST 2026


================
@@ -593,6 +614,7 @@ void populateIRAffine(nb::module_ &m) {
              return PyAffineExpr(self.getContext(),
                                  mlirAffineExprCompose(self, other));
            })
+      .def_prop_ro("maybe_downcast", &PyAffineExpr::maybeDownCast)
----------------
ftynse wrote:

Changed to `.def`

https://github.com/llvm/llvm-project/pull/174808


More information about the Mlir-commits mailing list