Changes in directory llvm/include/llvm/ADT:
APInt.h updated: 1.60 -> 1.61 --- Log message: add a helper function. --- Diffs of the changes: (+3 -0) APInt.h | 3 +++ 1 files changed, 3 insertions(+) Index: llvm/include/llvm/ADT/APInt.h diff -u llvm/include/llvm/ADT/APInt.h:1.60 llvm/include/llvm/ADT/APInt.h:1.61 --- llvm/include/llvm/ADT/APInt.h:1.60 Sun Apr 1 07:45:33 2007 +++ llvm/include/llvm/ADT/APInt.h Mon Apr 2 00:41:00 2007 @@ -272,6 +272,9 @@ /// @returns true if the argument APInt value is a power of two > 0. bool isPowerOf2() const; + /// isSignBit - Return true if this is the value returned by getSignBit. + bool isSignBit() const { return isMinSignedValue(); } + /// This converts the APInt to a boolean value as a test against zero. /// @brief Boolean conversion function. inline bool getBoolValue() const { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits