[Mlir-commits] [mlir] [mlir][vector] Make the in_bounds attribute mandatory (PR #97049)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jul 5 12:40:36 PDT 2024
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 e975ff0a223e79842b693e0ec4d3cac87963869a...03274b08d54c2c0627f90814e8f3226fdf8b6f54 mlir/test/python/dialects/vector.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- vector.py 2024-07-05 19:36:41.000000 +0000
+++ vector.py 2024-07-05 19:40:10.338736 +0000
@@ -49,16 +49,20 @@
"transfer_read", ([memref_type, index_type, F32Type.get(), mask_type], [])
)
with InsertionPoint(f.add_entry_block()):
A, zero, padding, mask = f.arguments
vector.TransferReadOp(
- vector_type, A, [zero, zero], identity_map_attr, padding,
- [False, False], mask=mask
+ vector_type,
+ A,
+ [zero, zero],
+ identity_map_attr,
+ padding,
+ [False, False],
+ mask=mask,
)
vector.TransferReadOp(
- vector_type, A, [zero, zero], identity_map_attr, padding,
- [False, False]
+ vector_type, A, [zero, zero], identity_map_attr, padding, [False, False]
)
func.ReturnOp([])
# CHECK: @transfer_read(%[[MEM:.*]]: memref<?x?xf32>, %[[IDX:.*]]: index,
# CHECK: %[[PAD:.*]]: f32, %[[MASK:.*]]: vector<2x3xi1>)
``````````
</details>
https://github.com/llvm/llvm-project/pull/97049
More information about the Mlir-commits
mailing list