X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fllvm%2FAnalysis%2FConstantFolding.h;fp=include%2Fllvm%2FAnalysis%2FConstantFolding.h;h=e67e2651c893f261cd2bbf90ab68b187acc2ab80;hb=5501985a583038523e787cc60218717b32631c88;hp=541a2109af6cde4a5ddd83422e34c51a29fd49b0;hpb=6c57f2fe84bc56f46797dad5fa9f1020686f3f43;p=oota-llvm.git diff --git a/include/llvm/Analysis/ConstantFolding.h b/include/llvm/Analysis/ConstantFolding.h index 541a2109af6..e67e2651c89 100644 --- a/include/llvm/Analysis/ConstantFolding.h +++ b/include/llvm/Analysis/ConstantFolding.h @@ -72,6 +72,12 @@ namespace llvm { Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val, ArrayRef Idxs); +/// \brief Attempt to constant fold an extractvalue instruction with the +/// specified operands and indices. The constant result is returned if +/// successful; if not, null is returned. +Constant *ConstantFoldExtractValueInstruction(Constant *Agg, + ArrayRef Idxs); + /// ConstantFoldLoadFromConstPtr - Return the value that a load from C would /// produce if it is constant and determinable. If this is not determinable, /// return null.