[Mlir-commits] [mlir] [mlir][linalg] Generate `vector.transfer_read` for contiguous `tensor.extract` loads (PR #76436)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Dec 27 05:12:28 PST 2023


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 8190369e83c717ec6393e3b9ed62b6b70f9ab174 b7ac2ca6217b6e9653cab1c9e527a31d6ccddbb3 -- mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
index c840606c25..9e231d0e3d 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -846,7 +846,7 @@ static bool isLoopInvariantIdx(LinalgOp &linalgOp, Value &val) {
 //    %e1 = tensor.extract %arg0[.., %val1] : tensor<3x3xf32> would return false
 // TODO: Relax this requirement to cover cases for contiguous access where inner
 // dimensions of the tensor vary using linalg.generic while outer dimensions are
-// kept constant. 
+// kept constant.
 // Ex. %c0 = arith.constant 0 : index
 //     %val1 = linalg.index 0 : index
 //     %e1 = tensor.extract %arg0[%c0, %val1] : tensor<3x3xf32>

``````````

</details>


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


More information about the Mlir-commits mailing list