[Mlir-commits] [mlir] [mlir] Introduce AlignmentAttrOpInterface to expose MaybeAlign (PR #161440)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Sep 30 13:43:54 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 origin/main HEAD --extensions h,cpp -- mlir/include/mlir/Interfaces/AlignmentAttrInterface.h mlir/lib/Interfaces/AlignmentAttrInterface.cpp mlir/include/mlir/Dialect/MemRef/IR/MemRef.h mlir/include/mlir/Dialect/Vector/IR/VectorOps.h mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp mlir/lib/Dialect/Vector/Transforms/VectorEmulateMaskedLoadStore.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateMaskedLoadStore.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateMaskedLoadStore.cpp
index 6e83d134c..14e9fac2d 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateMaskedLoadStore.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateMaskedLoadStore.cpp
@@ -143,9 +143,8 @@ struct VectorMaskedStoreOpConverter final
auto ifOp = scf::IfOp::create(rewriter, loc, maskBit, /*else=*/false);
rewriter.setInsertionPointToStart(&ifOp.getThenRegion().front());
auto extractedValue = vector::ExtractOp::create(rewriter, loc, value, i);
- memref::StoreOp::create(
- rewriter, loc, extractedValue, base, indices, nontemporal,
- maskedStoreOp.getMaybeAlign());
+ memref::StoreOp::create(rewriter, loc, extractedValue, base, indices,
+ nontemporal, maskedStoreOp.getMaybeAlign());
rewriter.setInsertionPointAfter(ifOp);
indices.back() =
``````````
</details>
https://github.com/llvm/llvm-project/pull/161440
More information about the Mlir-commits
mailing list