================
@@ -4175,6 +4175,25 @@ struct MemorySanitizerVisitor : public
InstVisitor<MemorySanitizerVisitor> {
setShadow(&I, IRB.CreateBitCast(CI, getShadowTy(&I)));
setOriginForNaryOp(I);
}
+ // Instrument AVX permutation intrinsic.
+ // We apply the same permutation (argument index 1) to the shadows.
+ void handleAVXVpermil2var(IntrinsicInst &I) {
+ IRBuilder<> IRB(&I);
----------------
thurstond wrote:
Please add some assertions that check whether the instruction is suitable for
this handler:
- number of operands
- type and size of each operand
- relation of input and output operands
https://github.com/llvm/llvm-project/pull/143463
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits