[Mlir-commits] [mlir] [mlir] Fix MemRefType alignment in ConvertVectorToLLVM (PR #137389)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Apr 25 15:11:23 PDT 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 HEAD~1 HEAD --extensions cpp -- 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 888ca37e7..0b03096d7 100644
--- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
+++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
@@ -72,8 +72,8 @@ LogicalResult getMemRefAlignment(const LLVMTypeConverter &typeConverter,
                                  MemRefType memrefType, unsigned &align) {
   // Align MemRefTypes to the alignment of a VectorType with the same
   // size and dtype.
-  Type convertedVecType = typeConverter.convertType(
-      VectorType::get(memrefType.getNumElements(), memrefType.getElementType()));
+  Type convertedVecType = typeConverter.convertType(VectorType::get(
+      memrefType.getNumElements(), memrefType.getElementType()));
   if (!convertedVecType)
     return failure();
 

``````````

</details>


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


More information about the Mlir-commits mailing list