diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-13 19:28:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-13 19:28:32 +0000 |
commit | a2631b0225321363368519f1b9b533b2f226faa7 (patch) | |
tree | d4f9e9f2a7a1d03f4c3c53aae67c3b142a6eaf79 /include/llvm/Transforms/Utils | |
parent | 4647b7cd6929990ff174f0dd7cbfda5ab40df850 (diff) | |
download | external_llvm-a2631b0225321363368519f1b9b533b2f226faa7.zip external_llvm-a2631b0225321363368519f1b9b533b2f226faa7.tar.gz external_llvm-a2631b0225321363368519f1b9b533b2f226faa7.tar.bz2 |
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index 132a10a..eb21945 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... // |