summaryrefslogtreecommitdiffstats
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorRobert Bocchino <bocchino@illinois.edu>2006-01-10 19:04:13 +0000
committerRobert Bocchino <bocchino@illinois.edu>2006-01-10 19:04:13 +0000
commit49b78a569609881811d905960baa7dd1ab801383 (patch)
tree7b70bc80f70d5e57c72c8ac49a81328b739ecfce /include/llvm/Constants.h
parenteb7116bb08a99897c69570a3789af97343bff9f2 (diff)
downloadexternal_llvm-49b78a569609881811d905960baa7dd1ab801383.zip
external_llvm-49b78a569609881811d905960baa7dd1ab801383.tar.gz
external_llvm-49b78a569609881811d905960baa7dd1ab801383.tar.bz2
Added an instruction and constant expression for the extractelement
operation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 4a749ab..f5fcd4e 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -521,6 +521,8 @@ protected:
Constant *C1, Constant *C2, Constant *C3);
static Constant *getGetElementPtrTy(const Type *Ty, Constant *C,
const std::vector<Value*> &IdxList);
+ static Constant *getExtractElementTy(const Type *Ty, Constant *Val,
+ Constant *Idx);
public:
// Static methods to construct a ConstantExpr of different kinds. Note that
@@ -588,6 +590,10 @@ public:
static Constant *getGetElementPtr(Constant *C,
const std::vector<Value*> &IdxList);
+ /// Extractelement form.
+ ///
+ static Constant *getExtractElement(Constant *Val, Constant *Idx);
+
/// isNullValue - Return true if this is the value that would be returned by
/// getNullValue.
virtual bool isNullValue() const { return false; }