[Mlir-commits] [mlir] [MLIR][VectorToLLVM] Handle scalable dim in createVectorLengthValue() (PR #93361)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri May 24 18:17:37 PDT 2024
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 77369a7f1a81f7991a3df2dad1bc8e277bc7559d e6156c2fe895e64eb367def898ac5ac46ab99e71 -- mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
index 18bd966052..abb522d808 100644
--- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
+++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
@@ -541,8 +541,8 @@ static Value createVectorLengthValue(ConversionPatternRewriter &rewriter,
// Create VScale*vShape[0] and return it as vector length.
Value vScale = rewriter.create<vector::VectorScaleOp>(loc);
- vScale = rewriter.create<arith::IndexCastOp>(
- loc, rewriter.getI32Type(), vScale);
+ vScale =
+ rewriter.create<arith::IndexCastOp>(loc, rewriter.getI32Type(), vScale);
vLen = rewriter.create<arith::MulIOp>(loc, vLen, vScale);
return vLen;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/93361
More information about the Mlir-commits
mailing list