mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 20:27:42 +00:00
add a helper function.
llvm-svn: 35585
This commit is contained in:
parent
35ece02bea
commit
3ff8b2cf06
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user