Update the branch weight metadata in JumpThreading pass.
[oota-llvm.git] / include / llvm / Analysis / ConstantFolding.h
index e67e2651c893f261cd2bbf90ab68b187acc2ab80..e8185b3b6307f2005f4938ccae8984dec97a1bab 100644 (file)
@@ -78,6 +78,11 @@ Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
                                               ArrayRef<unsigned> Idxs);
 
+/// \brief Attempt to constant fold an extractelement instruction with the
+/// specified operands and indices.  The constant result is returned if
+/// successful; if not, null is returned.
+Constant *ConstantFoldExtractElementInstruction(Constant *Val, Constant *Idx);
+
 /// ConstantFoldLoadFromConstPtr - Return the value that a load from C would
 /// produce if it is constant and determinable.  If this is not determinable,
 /// return null.