[Mlir-commits] [mlir] [MLIR][Python] add/fix docstrings in IRCore (PR #167063)

Maksim Levental llvmlistbot at llvm.org
Fri Nov 7 23:59:44 PST 2025


================
@@ -3692,7 +3869,22 @@ void mlir::python::populateIRCore(nb::module_ &m) {
           nb::arg("operands") = nb::none(), nb::arg("attributes") = nb::none(),
           nb::arg("successors") = nb::none(), nb::arg("regions") = 0,
           nb::arg("loc") = nb::none(), nb::arg("ip") = nb::none(),
-          nb::arg("infer_type") = false, kOperationCreateDocstring)
+          nb::arg("infer_type") = false,
+          R"(
+            Creates a new operation.
+
+            Args:
+              name: Operation name (e.g. "dialect.operation").
----------------
makslevental wrote:

This one you're right on - I'll take another pass and change to ticks.

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


More information about the Mlir-commits mailing list