aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/ConstantFold.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-03 00:15:20 +0000
committerDan Gohman <gohman@apple.com>2008-06-03 00:15:20 +0000
commit6e68f59b78d8dcb3940469351a08d5884f190223 (patch)
treea24c1073c60b8272c89e9b770fc8293782c0b426 /lib/VMCore/ConstantFold.h
parent2f170997b5349bf7e9ef4cb5cb38af5f7df0c54b (diff)
Constant folding for insertvalue and extractvalue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.h')
-rw-r--r--lib/VMCore/ConstantFold.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h
index bfa6f289d9..fddee23765 100644
--- a/lib/VMCore/ConstantFold.h
+++ b/lib/VMCore/ConstantFold.h
@@ -41,10 +41,13 @@ 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 *ConstantFoldExtractValueInstruction(const Constant *Agg,
+ const unsigned *Idxs,
+ unsigned NumIdx);
+ Constant *ConstantFoldInsertValueInstruction(const Constant *Agg,
+ const Constant *Val,
+ const unsigned* Idxs,
+ unsigned NumIdx);
Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
const Constant *V2);
Constant *ConstantFoldCompareInstruction(unsigned short predicate,