[llvm] [SandboxIR] Add tracking for `ShuffleVectorInst::setShuffleMask`. (PR #105590)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 15:11:39 PDT 2024
================
@@ -1868,6 +1868,11 @@ Value *ShuffleVectorInst::create(Value *V1, Value *V2, ArrayRef<int> Mask,
return Ctx.getOrCreateConstant(cast<llvm::Constant>(NewV));
}
+void ShuffleVectorInst::setShuffleMask(ArrayRef<int> Mask) {
+ Ctx.getTracker().emplaceIfTracking<ShuffleVectorSetMask>(this);
----------------
vporpo wrote:
Hmm do you thing there is a way to use the `GenericSetter` somehow? It won't work as is because it will try to use `ArrayRef<int>` as its `SavedValT OrigVal`, but we need a SmallVector instead.
https://github.com/llvm/llvm-project/pull/105590
More information about the llvm-commits
mailing list