Add new function
authorChris Lattner <sabre@nondot.org>
Fri, 12 Mar 2004 05:53:41 +0000 (05:53 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Mar 2004 05:53:41 +0000 (05:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12322 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/ConstantFold.h
lib/VMCore/ConstantFolding.h

index 7aa1683bd7184c3af40a55390f8847f0321c5384..680b39eaf483a106801511a41fa61ef8615b867a 100644 (file)
@@ -27,6 +27,9 @@ namespace llvm {
   
   // Constant fold various types of instruction...
   Constant *ConstantFoldCastInstruction(const Constant *V, const Type *DestTy);
+  Constant *ConstantFoldSelectInstruction(const Constant *Cond,
+                                          const Constant *V1,
+                                          const Constant *V2);
   Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
                                           const Constant *V2);
   Constant *ConstantFoldGetElementPtr(const Constant *C,
index 7aa1683bd7184c3af40a55390f8847f0321c5384..680b39eaf483a106801511a41fa61ef8615b867a 100644 (file)
@@ -27,6 +27,9 @@ namespace llvm {
   
   // Constant fold various types of instruction...
   Constant *ConstantFoldCastInstruction(const Constant *V, const Type *DestTy);
+  Constant *ConstantFoldSelectInstruction(const Constant *Cond,
+                                          const Constant *V1,
+                                          const Constant *V2);
   Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
                                           const Constant *V2);
   Constant *ConstantFoldGetElementPtr(const Constant *C,