aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/ConstantFold.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-15 19:50:34 +0000
committerDan Gohman <gohman@apple.com>2008-05-15 19:50:34 +0000
commit8055f7781b0430973392a8ddf54142afb9bcdd3d (patch)
treebb8e3b74ffb3950147e74e621ffa5e8f14040cd2 /lib/VMCore/ConstantFold.h
parent7fcd440412730ab1a380d723a418856e4226d9e8 (diff)
downloadexternal_llvm-8055f7781b0430973392a8ddf54142afb9bcdd3d.tar.gz
external_llvm-8055f7781b0430973392a8ddf54142afb9bcdd3d.tar.bz2
external_llvm-8055f7781b0430973392a8ddf54142afb9bcdd3d.zip
IR support for extractvalue and insertvalue instructions. Also, begin
moving toward making structs and arrays first-class types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.h')
-rw-r--r--lib/VMCore/ConstantFold.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h
index 1c1e6e5d0c..bfa6f289d9 100644
--- a/lib/VMCore/ConstantFold.h
+++ b/lib/VMCore/ConstantFold.h
@@ -41,6 +41,10 @@ namespace llvm {
Constant *ConstantFoldShuffleVectorInstruction(const Constant *V1,
const Constant *V2,
const Constant *Mask);
+ Constant *ConstantFoldExtractValue(const Constant *Agg,
+ Constant* const *Idxs, unsigned NumIdx);
+ Constant *ConstantFoldInsertValue(const Constant *Agg, const Constant *Val,
+ Constant* const *Idxs, unsigned NumIdx);
Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
const Constant *V2);
Constant *ConstantFoldCompareInstruction(unsigned short predicate,