[llvm] [SandboxIR] Add InsertValueInst (PR #106273)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 13:07:11 PDT 2024
================
@@ -1451,6 +1456,63 @@ class ShuffleVectorInst final
}
};
+class InsertValueInst
+ : public SingleLLVMInstructionImpl<llvm::InsertValueInst> {
+ /// Use Context::createInsertValueInst(). Don't call the constructor directly.
+ InsertValueInst(llvm::InsertValueInst *IVI, Context &Ctx)
+ : SingleLLVMInstructionImpl(ClassID::InsertValue, Opcode::InsertValue,
+ IVI, Ctx) {}
+ friend Context; // for InsertValueInst()
+
+public:
+ static Value *create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
+ BBIterator WhereIt, BasicBlock *WhereBB, Context &Ctx,
+ const Twine &Name = "");
+
----------------
vporpo wrote:
Missing `getInedexedType()`. If it is missing for a reason then we should add a TODO comment.
https://github.com/llvm/llvm-project/pull/106273
More information about the llvm-commits
mailing list