summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/ConstantFolding.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-30 23:12:47 +0000
committerChris Lattner <sabre@nondot.org>2007-01-30 23:12:47 +0000
commit73259caa44b03206d1e39e77a7aa375250b1a193 (patch)
tree09ed54e7fbb353c845d0cc197b7b4178396f379d /include/llvm/Analysis/ConstantFolding.h
parentf08c0eab150eec0f9393423fae4be1262feb7bf2 (diff)
downloadllvm-73259caa44b03206d1e39e77a7aa375250b1a193.tar.gz
llvm-73259caa44b03206d1e39e77a7aa375250b1a193.tar.bz2
llvm-73259caa44b03206d1e39e77a7aa375250b1a193.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ConstantFolding.h')
-rw-r--r--include/llvm/Analysis/ConstantFolding.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/llvm/Analysis/ConstantFolding.h b/include/llvm/Analysis/ConstantFolding.h
index 4e996f9d08..ef1c052d9e 100644
--- a/include/llvm/Analysis/ConstantFolding.h
+++ b/include/llvm/Analysis/ConstantFolding.h
@@ -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);
}