[all-commits] [llvm/llvm-project] 5dafe6: [msan][NFCI] Refactor visitIntrinsicInst() into in...
Thurston Dang via All-commits
all-commits at lists.llvm.org
Mon Aug 25 12:12:09 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5dafe66f07bcb366826780ab1a85768151b53f8c
https://github.com/llvm/llvm-project/commit/5dafe66f07bcb366826780ab1a85768151b53f8c
Author: Thurston Dang <thurston at google.com>
Date: 2025-08-25 (Mon, 25 Aug 2025)
Changed paths:
M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
Log Message:
-----------
[msan][NFCI] Refactor visitIntrinsicInst() into instruction families (#154878)
Currently visitIntrinsicInst() is a long, partly unsorted list. This patch groups them into cross-platform, X86 SIMD, and Arm SIMD families, making the overall intent of visitIntrinsicInst() clearer:
```
void visitIntrinsicInst(IntrinsicInst &I) {
if (maybeHandleCrossPlatformIntrinsic(I))
return;
if (maybeHandleX86SIMDIntrinsic(I))
return;
if (maybeHandleArmSIMDIntrinsic(I))
return;
if (maybeHandleUnknownIntrinsic(I))
return;
visitInstruction(I);
}
```
There is one disadvantage: the compiler will not tell us if the switch statements in the handlers have overlapping coverage.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list