[llvm] [msan] Support vst{2,3,4}_lane instructions (PR #101215)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 11:29:44 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 c3f7f2886bcfa31b888d0d517ade382893bc5e0b 3a7ecf540de6510bfa6835493c66e972e58af90b --extensions cpp -- llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
index fefca9e7c4..2e1397885a 100644
--- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -3904,9 +3904,10 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
 
     // Second-last operand is the lane number (for vst{2,3,4}lane)
     if (useLane) {
-      skipTrailingOperands ++;
+      skipTrailingOperands++;
       assert(numArgOperands >= (int)skipTrailingOperands);
-      assert(isa<IntegerType>(I.getArgOperand(numArgOperands - skipTrailingOperands)->getType()));
+      assert(isa<IntegerType>(
+          I.getArgOperand(numArgOperands - skipTrailingOperands)->getType()));
     }
 
     SmallVector<Value *, 8> ShadowArgs;
@@ -3935,7 +3936,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
     Type *OutputShadowTy = getShadowTy(OutputVectorTy);
 
     if (useLane)
-      ShadowArgs.append(1, I.getArgOperand(numArgOperands - skipTrailingOperands));
+      ShadowArgs.append(1,
+                        I.getArgOperand(numArgOperands - skipTrailingOperands));
 
     Value *OutputShadowPtr, *OutputOriginPtr;
     // AArch64 NEON does not need alignment (unless OS requires it)

``````````

</details>


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


More information about the llvm-commits mailing list