diff options
author | Robert Bocchino <bocchino@illinois.edu> | 2006-01-10 20:03:46 +0000 |
---|---|---|
committer | Robert Bocchino <bocchino@illinois.edu> | 2006-01-10 20:03:46 +0000 |
commit | bb90a7aa7bf71311046ccc9f277e5f76cc082722 (patch) | |
tree | 0a29b904c6337ba50b7b6f7b8b3ede2677e6da25 /lib/VMCore/ConstantFold.h | |
parent | 5e1b72c153dafaaf73e82c2c76f93ed55d74a889 (diff) | |
download | external_llvm-bb90a7aa7bf71311046ccc9f277e5f76cc082722.zip external_llvm-bb90a7aa7bf71311046ccc9f277e5f76cc082722.tar.gz external_llvm-bb90a7aa7bf71311046ccc9f277e5f76cc082722.tar.bz2 |
Added constant folding support for the extractelement operation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.h')
-rw-r--r-- | lib/VMCore/ConstantFold.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h index a864aa2..e8580c4 100644 --- a/lib/VMCore/ConstantFold.h +++ b/lib/VMCore/ConstantFold.h @@ -31,6 +31,8 @@ namespace llvm { Constant *ConstantFoldSelectInstruction(const Constant *Cond, const Constant *V1, const Constant *V2); + Constant *ConstantFoldExtractElementInstruction(const Constant *Val, + const Constant *Idx); Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1, const Constant *V2); Constant *ConstantFoldGetElementPtr(const Constant *C, |