[llvm] [IRBuilder] Use AAMDNodes helper class in CreateMem* routines [nfc-ish] (PR #139950)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 14 12:16:04 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,h -- llvm/include/llvm/IR/IRBuilder.h llvm/lib/IR/IRBuilder.cpp llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index 5de3273a4..f33c84c30 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -1097,9 +1097,9 @@ bool LoopIdiomRecognize::processLoopStridedStore(
CallInst *NewCall;
if (Value *SplatValue = isBytewiseValue(StoredVal, *DL)) {
- NewCall = Builder.CreateMemSet(
- BasePtr, SplatValue, NumBytes, MaybeAlign(StoreAlignment),
- /*isVolatile=*/false, AATags);
+ NewCall = Builder.CreateMemSet(BasePtr, SplatValue, NumBytes,
+ MaybeAlign(StoreAlignment),
+ /*isVolatile=*/false, AATags);
} else if (isLibFuncEmittable(M, TLI, LibFunc_memset_pattern16)) {
// Everything is emitted in default address space
Type *Int8PtrTy = DestInt8PtrTy;
@@ -1413,9 +1413,9 @@ bool LoopIdiomRecognize::processLoopStoreOfLoopLoad(
// by previous checks.
if (!IsAtomic) {
if (UseMemMove)
- NewCall = Builder.CreateMemMove(
- StoreBasePtr, StoreAlign, LoadBasePtr, LoadAlign, NumBytes,
- /*isVolatile=*/false, AATags);
+ NewCall = Builder.CreateMemMove(StoreBasePtr, StoreAlign, LoadBasePtr,
+ LoadAlign, NumBytes,
+ /*isVolatile=*/false, AATags);
else
NewCall =
Builder.CreateMemCpy(StoreBasePtr, StoreAlign, LoadBasePtr, LoadAlign,
``````````
</details>
https://github.com/llvm/llvm-project/pull/139950
More information about the llvm-commits
mailing list