correct the type of two intrinsics, add int_ppc_altivec_vmladduhm
[oota-llvm.git] / include / llvm / Constants.h
index f5fcd4e9ec6fa7e6243ff69936afcdc63148a6bb..eaa4cd9b3d872cffc0990de38fc58d2de34e486d 100644 (file)
@@ -22,7 +22,6 @@
 
 #include "llvm/Constant.h"
 #include "llvm/Type.h"
-#include "llvm/Support/DataTypes.h"
 
 namespace llvm {
 
@@ -523,6 +522,8 @@ protected:
                                       const std::vector<Value*> &IdxList);
   static Constant *getExtractElementTy(const Type *Ty, Constant *Val,
                                        Constant *Idx);
+  static Constant *getInsertElementTy(const Type *Ty, Constant *Val,
+                                      Constant *Elt, Constant *Idx);
 
 public:
   // Static methods to construct a ConstantExpr of different kinds.  Note that
@@ -594,6 +595,11 @@ public:
   ///
   static Constant *getExtractElement(Constant *Val, Constant *Idx);
 
+  /// Insertelement form.
+  ///
+  static Constant *getInsertElement(Constant *Val, Constant *Elt, 
+                                    Constant *Idx);
+
   /// isNullValue - Return true if this is the value that would be returned by
   /// getNullValue.
   virtual bool isNullValue() const { return false; }