[clang] [llvm] [X86] Replace X86 specific PDEP/PEXT handling with generic intrinsics (PR #204144)
Thurston Dang via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 18 09:47:38 PDT 2026
================
@@ -3333,6 +3333,26 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
setOriginForNaryOp(I);
}
+ // Instrument packed bits deposit/expand intrinsics.
+ // All of these intrinsics are Z = I(X, Y)
+ // where the types of all operands and the result match.
+ // The following instrumentation happens to work for all of them:
+ // Sz = I(Sx, Y) | (sext (Sy != 0))
+ void handlePackedBits(IntrinsicInst &I) {
----------------
thurstond wrote:
Nit: is there a reason not to reuse the existing handleBmiIntrinsic() function (possibly renamed)?
https://github.com/llvm/llvm-project/pull/204144
More information about the cfe-commits
mailing list