For PR950: Implement a stub for folding ICmp and FCmp instructions
[oota-llvm.git] / lib / VMCore / ConstantFold.h
index 2824979cf4431b30e0763dc91a87695c86a57ee6..ee3c64cc59877b458c1f951433a050613796f17b 100644 (file)
@@ -45,6 +45,8 @@ namespace llvm {
                                                  const Constant *Mask);
   Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
                                           const Constant *V2);
+  Constant *ConstantFoldCompare(unsigned opcode, Constant *C1, Constant  *C2, 
+                                unsigned short predicate);
   Constant *ConstantFoldGetElementPtr(const Constant *C,
                                       const std::vector<Value*> &IdxList);
 } // End llvm namespace