[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/Local.h

Chris Lattner sabre at nondot.org
Tue Jan 30 15:46:59 PST 2007



Changes in directory llvm/include/llvm/Transforms/Utils:

Local.h updated: 1.25 -> 1.26
---
Log message:

move constant folding code out of Utils/Local into libanalysis


---
Diffs of the changes:  (+0 -27)

 Local.h |   27 ---------------------------
 1 files changed, 27 deletions(-)


Index: llvm/include/llvm/Transforms/Utils/Local.h
diff -u llvm/include/llvm/Transforms/Utils/Local.h:1.25 llvm/include/llvm/Transforms/Utils/Local.h:1.26
--- llvm/include/llvm/Transforms/Utils/Local.h:1.25	Tue Jan 30 17:12:47 2007
+++ llvm/include/llvm/Transforms/Utils/Local.h	Tue Jan 30 17:46:43 2007
@@ -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 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...
 //






More information about the llvm-commits mailing list