summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/Utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-13 19:28:32 +0000
committerChris Lattner <sabre@nondot.org>2004-04-13 19:28:32 +0000
commita2631b0225321363368519f1b9b533b2f226faa7 (patch)
treed4f9e9f2a7a1d03f4c3c53aae67c3b142a6eaf79 /include/llvm/Transforms/Utils
parent4647b7cd6929990ff174f0dd7cbfda5ab40df850 (diff)
downloadllvm-a2631b0225321363368519f1b9b533b2f226faa7.tar.gz
llvm-a2631b0225321363368519f1b9b533b2f226faa7.tar.bz2
llvm-a2631b0225321363368519f1b9b533b2f226faa7.tar.xz
Add new interfaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils')
-rw-r--r--include/llvm/Transforms/Utils/Local.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h
index 132a10aa41..eb21945670 100644
--- a/include/llvm/Transforms/Utils/Local.h
+++ b/include/llvm/Transforms/Utils/Local.h
@@ -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...
//