Add new interfaces
authorChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2004 19:28:32 +0000 (19:28 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2004 19:28:32 +0000 (19:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12918 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Utils/Local.h

index 132a10aa41770d6cf734d9bacf6c7aa6288bfdc3..eb219456700f7260678fae52c03b490b8965bef8 100644 (file)
@@ -47,6 +47,15 @@ bool ConstantFoldTerminator(BasicBlock *BB);
 Constant *ConstantFoldInstruction(Instruction *I);
 
 
+/// canConstantFoldCallTo - Return true if its even possible to fold a call to
+/// the specified function.
+bool canConstantFoldCallTo(Function *F);
+
+/// ConstantFoldCall - Attempt to constant fold a call to the specified function
+/// with the specified arguments, returning null if unsuccessful.
+Constant *ConstantFoldCall(Function *F, const std::vector<Constant*> &Operands);
+
+
 //===----------------------------------------------------------------------===//
 //  Local dead code elimination...
 //