[llvm] [SandboxIR] Add InsertValueInst (PR #106273)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 16:35:41 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 = "");
+
+  using idx_iterator = llvm::InsertValueInst::idx_iterator;
----------------
vporpo wrote:

Yes I will upload a PR in a few minutes.

https://github.com/llvm/llvm-project/pull/106273


More information about the llvm-commits mailing list