add a helper function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-04-02 05:41:00 +00:00
parent 5c6e2db0c4
commit febabcc02a

View File

@ -272,6 +272,9 @@ public:
/// @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 {