summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit16375e30b0df730b3d890204ef1f26fab866820d (patch)
tree43208628a8429b041b3de27d375c848157171771 /llvm/lib
parent6ea4b52903beb11eb358c4d732ae1ec589384718 (diff)
downloadbcm5719-llvm-16375e30b0df730b3d890204ef1f26fab866820d.tar.gz
bcm5719-llvm-16375e30b0df730b3d890204ef1f26fab866820d.zip
Add new function
llvm-svn: 12322
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/ConstantFolding.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/ConstantFolding.h b/llvm/lib/VMCore/ConstantFolding.h
index 7aa1683bd71..680b39eaf48 100644
--- a/llvm/lib/VMCore/ConstantFolding.h
+++ b/llvm/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,
OpenPOWER on IntegriCloud