summaryrefslogtreecommitdiffstats
path: root/lib/VMCore/ConstantFolding.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-12 05:53:41 +0000
committerChris Lattner <sabre@nondot.org>2004-03-12 05:53:41 +0000
commit647f82be070a0993031094b21130aed5fadf1a67 (patch)
tree31a9e3b09da9a42f21c10e1c4deb4405cf2e9c97 /lib/VMCore/ConstantFolding.h
parente97148628f8a52fff1752937f6f49945bbe9937b (diff)
downloadexternal_llvm-647f82be070a0993031094b21130aed5fadf1a67.zip
external_llvm-647f82be070a0993031094b21130aed5fadf1a67.tar.gz
external_llvm-647f82be070a0993031094b21130aed5fadf1a67.tar.bz2
Add new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFolding.h')
-rw-r--r--lib/VMCore/ConstantFolding.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VMCore/ConstantFolding.h b/lib/VMCore/ConstantFolding.h
index 7aa1683..680b39e 100644
--- a/lib/VMCore/ConstantFolding.h
+++ b/lib/VMCore/ConstantFolding.h
@@ -27,6 +27,9 @@ namespace llvm {
// Constant fold various types of instruction...
Constant *ConstantFoldCastInstruction(const Constant *V, const Type *DestTy);
+ Constant *ConstantFoldSelectInstruction(const Constant *Cond,
+ const Constant *V1,
+ const Constant *V2);
Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
const Constant *V2);
Constant *ConstantFoldGetElementPtr(const Constant *C,