X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FAnalysis%2FInstructionSimplify.h;h=721f0ddd2eaf6bf4eea46458d1be5238a98a18e3;hb=b09c146b116359616f6cbd4c8b3328607e00ff42;hp=ce7818184e9a634306d94c27bc1dbbae7b49f39d;hpb=eb61c920f12cacee38815bf10821d2f294b66f3a;p=oota-llvm.git diff --git a/include/llvm/Analysis/InstructionSimplify.h b/include/llvm/Analysis/InstructionSimplify.h index ce7818184e9..721f0ddd2ea 100644 --- a/include/llvm/Analysis/InstructionSimplify.h +++ b/include/llvm/Analysis/InstructionSimplify.h @@ -25,7 +25,7 @@ namespace llvm { class DominatorTree; class Instruction; class DataLayout; - struct FastMathFlags; + class FastMathFlags; class TargetLibraryInfo; class Type; class Value; @@ -44,6 +44,20 @@ namespace llvm { const TargetLibraryInfo *TLI = 0, const DominatorTree *DT = 0); + /// Given operands for an FAdd, see if we can fold the result. If not, this + /// returns null. + Value *SimplifyFAddInst(Value *LHS, Value *RHS, FastMathFlags FMF, + const DataLayout *TD = 0, + const TargetLibraryInfo *TLI = 0, + const DominatorTree *DT = 0); + + /// Given operands for an FSub, see if we can fold the result. If not, this + /// returns null. + Value *SimplifyFSubInst(Value *LHS, Value *RHS, FastMathFlags FMF, + const DataLayout *TD = 0, + const TargetLibraryInfo *TLI = 0, + const DominatorTree *DT = 0); + /// Given operands for an FMul, see if we can fold the result. If not, this /// returns null. Value *SimplifyFMulInst(Value *LHS, Value *RHS,