summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-30 23:46:43 +0000
committerChris Lattner <sabre@nondot.org>2007-01-30 23:46:43 +0000
commit997c74ce3508f9edabefce1266153b41f8fa2375 (patch)
tree10af91aa3c9397f2a28be76f08df00ebee0b0fcf /include
parent79066fa6acce02c97c714a5a6e151ed8a249721c (diff)
downloadllvm-997c74ce3508f9edabefce1266153b41f8fa2375.tar.gz
llvm-997c74ce3508f9edabefce1266153b41f8fa2375.tar.bz2
llvm-997c74ce3508f9edabefce1266153b41f8fa2375.tar.xz
move constant folding code out of Utils/Local into libanalysis
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Utils/Local.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h
index 3b14e41187..350f20d8ff 100644
--- a/include/llvm/Transforms/Utils/Local.h
+++ b/include/llvm/Transforms/Utils/Local.h
@@ -16,7 +16,6 @@
#define LLVM_TRANSFORMS_UTILS_LOCAL_H
#include "llvm/Function.h"
-#include "llvm/Analysis/ConstantFolding.h"
namespace llvm {
@@ -42,32 +41,6 @@ bool doConstantPropagation(BasicBlock::iterator &I, const TargetData *TD = 0);
///
bool ConstantFoldTerminator(BasicBlock *BB);
-/// ConstantFoldInstruction - Attempt to constant fold the specified
-/// instruction. If successful, the constant result is returned, if not, null
-/// is returned. Note that this function can only fail when attempting to fold
-/// instructions like loads and stores, which have no constant expression form.
-///
-Constant *ConstantFoldInstruction(Instruction *I, const TargetData *TD = 0);
-
-/// ConstantFoldInstOperands - Attempt to constant fold an instruction with the
-/// specified operands. If successful, the constant result is returned, if not,
-/// null is returned. Note that this function can fail when attempting to
-/// fold instructions like loads and stores, which have no constant expression
-/// form.
-///
-Constant *ConstantFoldInstOperands(
- const Instruction *I, ///< The model instruction
- Constant** Ops, ///< The array of constant operands to use.
- unsigned NumOps, ///< The number of operands provided.
- const TargetData *TD = 0 ///< Optional target information.
-);
-
-
-/// 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.
-Constant *ConstantFoldLoadThroughGEPConstantExpr(Constant *C, ConstantExpr *CE);
-
//===----------------------------------------------------------------------===//
// Local dead code elimination...
//