__builtin_ia32_movntdqa reads memory
[oota-llvm.git] / include / llvm / Constants.h
index 4c497b6f58b962ed9075f013c74e350734b59ddd..c69bad4b3be90ee31d648ccf2cb313494d22ea13 100644 (file)
@@ -2,8 +2,8 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
@@ -247,8 +247,8 @@ public:
       return isExactlyValue(APFloat(V));
     else if (&Val.getSemantics() == &APFloat::IEEEsingle)
       return isExactlyValue(APFloat((float)V));
-    else
-      assert(0);
+    assert(0);
+    return false;
   }
   /// Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const ConstantFP *) { return true; }
@@ -438,6 +438,10 @@ public:
   /// @brief Determine if the value is all ones.
   bool isAllOnesValue() const;
 
+  /// getSplatValue - If this is a splat constant, meaning that all of the
+  /// elements have the same value, return that value. Otherwise return NULL.
+  Constant *getSplatValue();
+
   virtual void destroyConstant();
   virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);