[Mlir-commits] [mlir] [MLIR][Python] implement __iter__ for OpResultList (PR #163444)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 14 13:26:01 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD mlir/test/python/dialects/memref.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- memref.py	2025-10-14 20:24:02.000000 +0000
+++ memref.py	2025-10-14 20:25:34.118626 +0000
@@ -248,10 +248,11 @@
             mem3 = memref.alloc(T.memref(*shape, T.i32()), [], [])
             check_strides_offset(memref.subview(mem3, (0, 0), (4, 4), (1, 1)), golden_mem[0:4, 0:4])
             check_strides_offset(memref.subview(mem3, (4, 4), (4, 4), (1, 1)), golden_mem[4:8, 4:8])
             # fmt: on
 
+
 # CHECK-LABEL: TEST: testExtractStridedMetadataOp
 @run
 def testExtractStridedMetadataOp():
     S = ShapedType.get_dynamic_size()
     shape = [S] * 4
@@ -263,6 +264,5 @@
         )
         module = Module.create()
         with InsertionPoint(module.body):
             A = memref.alloc(dynamc_memref_t, [], [])
             A_base, A_offset, A_sizes, A_strides = memref.extract_strided_metadata(A)
-

``````````

</details>


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


More information about the Mlir-commits mailing list