[llvm-commits] CVS: llvm/include/llvm/Constants.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 10 16:40:02 PST 2003
Changes in directory llvm/include/llvm:
Constants.h updated: 1.19 -> 1.20
---
Log message:
Fix ConstantUInt::isAllOnesValue
---
Diffs of the changes:
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.19 llvm/include/llvm/Constants.h:1.20
--- llvm/include/llvm/Constants.h:1.19 Thu Mar 6 15:02:43 2003
+++ llvm/include/llvm/Constants.h Mon Mar 10 16:39:01 2003
@@ -134,7 +134,6 @@
/// isNullValue - Return true if this is the value that would be returned by
/// getNullValue.
virtual bool isNullValue() const { return Val.Unsigned == 0; }
- virtual bool isAllOnesValue() const { return Val.Signed == -1; }
virtual bool isMaxValue() const = 0;
virtual bool isMinValue() const = 0;
@@ -165,6 +164,8 @@
/// getValue - return the underlying value of this constant.
inline int64_t getValue() const { return Val.Signed; }
+ virtual bool isAllOnesValue() const { return getValue() == -1; }
+
/// isMaxValue - Return true if this is the largest value that may be
/// represented by this type.
///
@@ -214,6 +215,7 @@
/// isMaxValue - Return true if this is the largest value that may be
/// represented by this type.
///
+ virtual bool isAllOnesValue() const;
virtual bool isMaxValue() const { return isAllOnesValue(); }
virtual bool isMinValue() const { return getValue() == 0; }
More information about the llvm-commits
mailing list