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

Chris Lattner sabre at nondot.org
Wed Jan 3 17:49:45 PST 2007



Changes in directory llvm/include/llvm:

Constants.h updated: 1.112 -> 1.113
---
Log message:

Add a new ConstantPacked::getAllOnesValue method


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

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


Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.112 llvm/include/llvm/Constants.h:1.113
--- llvm/include/llvm/Constants.h:1.112	Sat Dec 23 00:05:40 2006
+++ llvm/include/llvm/Constants.h	Wed Jan  3 19:49:26 2007
@@ -422,6 +422,11 @@
     return reinterpret_cast<const PackedType*>(Value::getType());
   }
 
+  /// @returns the value for an packed integer constant of the given type that
+  /// has all its bits set to true.
+  /// @brief Get the all ones value
+  static ConstantPacked *getAllOnesValue(const PackedType *Ty);
+  
   /// isNullValue - Return true if this is the value that would be returned by
   /// getNullValue.  This always returns false because zero arrays are always
   /// created as ConstantAggregateZero objects.






More information about the llvm-commits mailing list