[llvm-commits] CVS: llvm/include/llvm/Analysis/ConstantFolding.h

Chris Lattner sabre at nondot.org
Tue Jan 30 15:13:06 PST 2007



Changes in directory llvm/include/llvm/Analysis:

ConstantFolding.h updated: 1.1 -> 1.2
---
Log message:

Change constant folding APIs to take an optional TargetData, and change
ConstantFoldInstOperands/ConstantFoldCall to take a pointer to an array
of operands + size, instead of an std::vector.


---
Diffs of the changes:  (+2 -8)

 ConstantFolding.h |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)


Index: llvm/include/llvm/Analysis/ConstantFolding.h
diff -u llvm/include/llvm/Analysis/ConstantFolding.h:1.1 llvm/include/llvm/Analysis/ConstantFolding.h:1.2
--- llvm/include/llvm/Analysis/ConstantFolding.h:1.1	Thu Oct 27 11:00:09 2005
+++ llvm/include/llvm/Analysis/ConstantFolding.h	Tue Jan 30 17:12:47 2007
@@ -20,17 +20,11 @@
 
 /// canConstantFoldCallTo - Return true if its even possible to fold a call to
 /// the specified function.
-extern
 bool canConstantFoldCallTo(Function *F);
 
-/// ConstantFoldFP - Given a function that evaluates the constant, return an
-///                  LLVM Constant that represents the evaluated constant
-extern Constant *
-ConstantFoldFP(double (*NativeFP)(double), double V, const Type *Ty);
-
 /// ConstantFoldCall - Attempt to constant fold a call to the specified function
 /// with the specified arguments, returning null if unsuccessful.
-extern Constant *
-ConstantFoldCall(Function *F, const std::vector<Constant*> &Operands);
+Constant *
+ConstantFoldCall(Function *F, Constant** Operands, unsigned NumOperands);
 }
 






More information about the llvm-commits mailing list