[Mlir-commits] [mlir] [mlir][LLVM] Make struct types immutable (PR #116035)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Nov 13 04:43:18 PST 2024


Markus =?utf-8?q?Böck?= <markus.boeck02 at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/116035 at github.com>


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 36f21eedcfd06ff97ead9625adbf6d8153edd233...89444327a4c0397c0312ff4840d95ea898930328 mlir/test/python/dialects/llvm.py
``````````

</details>

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

``````````diff
--- llvm.py	2024-11-13 12:39:45.000000 +0000
+++ llvm.py	2024-11-13 12:42:52.601063 +0000
@@ -40,16 +40,12 @@
     print(llvm.StructType.get_opaque("foo"))
     print(llvm.StructType.get_opaque("bar"))
     # CHECK: !llvm.struct<"foo", opaque>
     # CHECK: !llvm.struct<"bar", opaque>
 
-    assert llvm.StructType.get("foo", []) == llvm.StructType.get(
-        "foo", []
-    )
-    assert llvm.StructType.get("foo", []) != llvm.StructType.get(
-        "bar", []
-    )
+    assert llvm.StructType.get("foo", []) == llvm.StructType.get("foo", [])
+    assert llvm.StructType.get("foo", []) != llvm.StructType.get("bar", [])
 
     foo_struct = llvm.StructType.get_opaque("foo")
     print(foo_struct.name)
     print(foo_struct.body)
     assert foo_struct.opaque

``````````

</details>


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


More information about the Mlir-commits mailing list