[Mlir-commits] [mlir] [MLIR][CAPI][Python] Add support for querying memory effect instances (PR #213459)

Maksim Levental llvmlistbot at llvm.org
Sun Aug 2 12:38:43 PDT 2026


================
@@ -546,21 +565,22 @@ static void populateDialectTransformSubmodule(nb::module_ &m) {
   PyPatternDescriptorOpInterface::bind(m);
 
   m.def("only_reads_handle", onlyReadsHandle,
-        "Mark operands as only reading handles.", nb::arg("operands"),
-        nb::arg("effects"));
+        "Returns effects marking operands as only reading handles.",
----------------
makslevental wrote:

ok in that case:
```suggestion
        "Returns `OnlyReadsHandle` effects corresponding to operands which have been marked as having those effects.",
```

and similar please for the ones below.

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


More information about the Mlir-commits mailing list