- Constant*const * Ops, unsigned NumOps,
- LLVMContext &Context,
- const TargetData *TD = 0);
+ Constant *LHS, Constant *RHS,
+ const DataLayout *TD = 0,
+ const TargetLibraryInfo *TLI = 0);
+
+/// ConstantFoldInsertValueInstruction - Attempt to constant fold an insertvalue
+/// instruction with the specified operands and indices. The constant result is
+/// returned if successful; if not, null is returned.
+Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
+ ArrayRef<unsigned> Idxs);