[llvm-commits] CVS: llvm/include/llvm/Constants.h

Jim Laskey jlaskey at apple.com
Fri Jan 12 14:39:30 PST 2007



Changes in directory llvm/include/llvm:

Constants.h updated: 1.117 -> 1.118
---
Log message:

Allow isAllOnesValue testing on packed constants

---
Diffs of the changes:  (+6 -0)

 Constants.h |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.117 llvm/include/llvm/Constants.h:1.118
--- llvm/include/llvm/Constants.h:1.117	Thu Jan 11 22:24:45 2007
+++ llvm/include/llvm/Constants.h	Fri Jan 12 16:39:14 2007
@@ -358,6 +358,12 @@
   /// created as ConstantAggregateZero objects.
   virtual bool isNullValue() const { return false; }
 
+  /// This function will return true iff every element in this packed constant
+  /// is set to all ones.
+  /// @returns true iff this constant's emements are all set to all ones.
+  /// @brief Determine if the value is all ones.
+  virtual bool isAllOnesValue() const;
+
   virtual void destroyConstant();
   virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
 






More information about the llvm-commits mailing list