[llvm] [msan][NFCI] Refactor visitIntrinsicInst() into instruction families (PR #154878)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 18:14:16 PDT 2025
================
@@ -6233,17 +6262,19 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
break;
}
- case Intrinsic::scmp:
- case Intrinsic::ucmp: {
- handleShadowOr(I);
- break;
- }
-
default:
- if (!handleUnknownIntrinsic(I))
- visitInstruction(I);
- break;
+ return false;
}
+
+ return true;
+ }
+
+ void visitIntrinsicInst(IntrinsicInst &I) {
+ if (!maybeHandleCrossPlatformIntrinsic(I))
+ if (!maybeHandleX86SIMDIntrinsic(I))
----------------
thurstond wrote:
Done
https://github.com/llvm/llvm-project/pull/154878
More information about the llvm-commits
mailing list