aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/Utils/Local.h
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2005-10-27 16:00:10 +0000
committerJohn Criswell <criswell@uiuc.edu>2005-10-27 16:00:10 +0000
commitbd9d37026a5c17d9a51371a6a5446bf4761ee7d6 (patch)
tree4b3e2fefd6bc2d735f4e96c50164e81fce67bd4a /include/llvm/Transforms/Utils/Local.h
parenta11564335749cd259d8a1391be34c1abbe302c42 (diff)
Move some constant folding functions into LLVMAnalysis since they are used
by Analysis and Transformation passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/Local.h')
-rw-r--r--include/llvm/Transforms/Utils/Local.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h
index 2518315427..da1ce25f6d 100644
--- a/include/llvm/Transforms/Utils/Local.h
+++ b/include/llvm/Transforms/Utils/Local.h
@@ -16,6 +16,7 @@
#define LLVM_TRANSFORMS_UTILS_LOCAL_H
#include "llvm/Function.h"
+#include "llvm/Analysis/ConstantFolding.h"
namespace llvm {
@@ -48,14 +49,6 @@ 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);
-
/// ConstantFoldLoadThroughGEPConstantExpr - Given a constant and a
/// getelementptr constantexpr, return the constant value being addressed by the
/// constant expression, or null if something is funny and we can't decide.