projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c6e2db
)
add a helper function.
author
Chris Lattner
<sabre@nondot.org>
Mon, 2 Apr 2007 05:41:00 +0000
(
05:41
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 2 Apr 2007 05:41:00 +0000
(
05:41
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35585
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/APInt.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/APInt.h
b/include/llvm/ADT/APInt.h
index c1557ec7535b3f83c93724f2af7fcee2056184b1..b8b1687def152a3e229167619ddb27b4274c1529 100644
(file)
--- a/
include/llvm/ADT/APInt.h
+++ b/
include/llvm/ADT/APInt.h
@@
-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 {