Change constant folding APIs to take an optional TargetData, and change
[oota-llvm.git] / include / llvm / Analysis / ConstantFolding.h
index 4e996f9d089525b367e5c8e2d9b466d3ce5cd0fa..ef1c052d9eee62124948264c2e09ec1cf7520cc0 100644 (file)
@@ -20,17 +20,11 @@ namespace llvm {
 
 /// 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);
 }