[llvm] [msan] Add debugging for handleUnknownIntrinsic (PR #123381)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 10:03:39 PST 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 b39c5cb6977f35ad727d86b2dd6232099734ffd3 f3a6f2f2e8306ce97d836a88e8981eb1c8b46c7c --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 1564f4c9eb..5bea0bbd38 100644
--- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -3027,13 +3027,15 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
bool success = false;
if (NumArgOperands == 0) {
// No-op
- } else if (NumArgOperands == 2 && I.getArgOperand(0)->getType()->isPointerTy() &&
- I.getArgOperand(1)->getType()->isVectorTy() &&
- I.getType()->isVoidTy() && !I.onlyReadsMemory()) {
+ } else if (NumArgOperands == 2 &&
+ I.getArgOperand(0)->getType()->isPointerTy() &&
+ I.getArgOperand(1)->getType()->isVectorTy() &&
+ I.getType()->isVoidTy() && !I.onlyReadsMemory()) {
// This looks like a vector store.
success = handleVectorStoreIntrinsic(I);
- } else if (NumArgOperands == 1 && I.getArgOperand(0)->getType()->isPointerTy() &&
- I.getType()->isVectorTy() && I.onlyReadsMemory()) {
+ } else if (NumArgOperands == 1 &&
+ I.getArgOperand(0)->getType()->isPointerTy() &&
+ I.getType()->isVectorTy() && I.onlyReadsMemory()) {
// This looks like a vector load.
success = handleVectorLoadIntrinsic(I);
} else if (I.doesNotAccessMemory())
@@ -3042,7 +3044,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
if (success && ClDumpStrictIntrinsics)
dumpInst(I);
- LLVM_DEBUG(dbgs() << "UNKNOWN INTRINSIC HANDLED HEURISTICALLY: " << I << "\n");
+ LLVM_DEBUG(dbgs() << "UNKNOWN INTRINSIC HANDLED HEURISTICALLY: " << I
+ << "\n");
// FIXME: detect and handle SSE maskstore/maskload
return success;
``````````
</details>
https://github.com/llvm/llvm-project/pull/123381
More information about the llvm-commits
mailing list