[Mlir-commits] [mlir] [mlir][vector] Restrict vector.insert/vector.extract (PR #121458)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jan 6 01:05:03 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

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

``````````bash
git-clang-format --diff f99b1907570aa1ac3c8c0ff886563766bbdbc1c8 473bd0f2a5edbf753b33edf5589d74378c67f31a --extensions cpp -- mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp mlir/lib/Dialect/Vector/IR/VectorOps.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp b/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
index 24501305ee..1085c8f8ee 100644
--- a/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
+++ b/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
@@ -1360,9 +1360,11 @@ struct UnrollTransferReadConversion
               unpackedReadRes =
                   dyn_cast<MemRefType>(xferOp.getSource().getType())
                       ? b.create<memref::LoadOp>(loc, xferOp.getSource(),
-                                                 xferIndices).getResult()
+                                                 xferIndices)
+                            .getResult()
                       : b.create<tensor::ExtractOp>(loc, xferOp.getSource(),
-                                                 xferIndices).getResult();
+                                                    xferIndices)
+                            .getResult();
             }
             return b.create<vector::InsertOp>(loc, unpackedReadRes, vec,
                                               insertionIndices);

``````````

</details>


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


More information about the Mlir-commits mailing list