mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
add a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35860 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb13d1b710
commit
4bda52d6b5
@ -281,6 +281,13 @@ public:
|
||||
return *this != 0;
|
||||
}
|
||||
|
||||
/// getLimitedValue - Return this value, or return all ones if it is too large
|
||||
/// to return.
|
||||
uint64_t getLimitedValue(uint64_t Limit = ~0ULL) const {
|
||||
return (getActiveBits() > 64 || getZExtValue() > Limit) ?
|
||||
Limit : getZExtValue();
|
||||
}
|
||||
|
||||
/// @}
|
||||
/// @name Value Generators
|
||||
/// @{
|
||||
|
Loading…
x
Reference in New Issue
Block a user