[llvm] [mlir] [mlir][Python] create MLIRPythonSupport (PR #171775)

Maksim Levental via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 27 10:26:02 PST 2025


================
@@ -1413,8 +924,9 @@ nb::object PyOperation::create(std::string_view name,
   // Construct the operation.
   PyMlirContext::ErrorCapture errors(location.getContext());
   MlirOperation operation = mlirOperationCreate(&state);
-  if (!operation.ptr)
+  if (!operation.ptr) {
----------------
makslevental wrote:

done

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


More information about the llvm-commits mailing list