[Mlir-commits] [mlir] [mlir][vector] Add alignment attribute to `maskedload` and `maskedstore` (PR #151690)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Aug 5 09:17:45 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 h,cpp -- mlir/include/mlir/Dialect/Vector/IR/VectorOps.h mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.h b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.h
index 048fd1f93..96b446c34 100644
--- a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.h
+++ b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.h
@@ -81,7 +81,7 @@ struct VectorDim {
 struct AlignmentBytes {
   uint64_t alignment = 0;
   AlignmentBytes() = default;
-  explicit AlignmentBytes(uint64_t alignment_) : alignment(alignment_){};
+  explicit AlignmentBytes(uint64_t alignment_) : alignment(alignment_) {};
   operator bool() const { return 0 != alignment; }
 };
 
diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
index 9e065948b..43fd0a2bd 100644
--- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
+++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
@@ -136,8 +136,8 @@ LogicalResult getVectorToLLVMAlignment(LoadOrStoreOp loadOrStoreOp,
     align = alignment.value();
     return success();
   }
-  return getVectorToLLVMAlignment(typeConverter, vectorType, memrefType,
-                                    align, useVectorAlignment);
+  return getVectorToLLVMAlignment(typeConverter, vectorType, memrefType, align,
+                                  useVectorAlignment);
 }
 
 // Check if the last stride is non-unit and has a valid memory space.

``````````

</details>


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


More information about the Mlir-commits mailing list