[llvm] [mlir][python] generate value builders (PR #68308)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 5 09:27:20 PDT 2023
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 0ca7e609fc5ebdd9c95f6cba3c608cae4b575846..a27d4bbf1f254330bd16c47f0d7158628b1d03cf mlir/python/mlir/dialects/_ods_common.py mlir/python/mlir/dialects/_scf_ops_ext.py mlir/test/python/dialects/scf.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- test/python/dialects/scf.py 2023-10-05 16:14:24.000000 +0000
+++ test/python/dialects/scf.py 2023-10-05 16:27:13.513757 +0000
@@ -63,10 +63,11 @@
def range_loop(lb, ub, step):
for i in range_(lb, ub, step):
add = arith.addi(i, i)
scf.yield_([])
return
+
# CHECK: func.func @range_loop(%[[ARG0:.*]]: index, %[[ARG1:.*]]: index, %[[ARG2:.*]]: index) {
# CHECK: scf.for %[[IV:.*]] = %[[ARG0]] to %[[ARG1]] step %[[ARG2]]
# CHECK: %0 = arith.addi %[[IV]], %[[IV]] : index
# CHECK: }
``````````
</details>
https://github.com/llvm/llvm-project/pull/68308
More information about the llvm-commits
mailing list