forked from OSchip/llvm-project
parent
9b6d69e0c2
commit
c43883c8a9
|
@ -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…
Reference in New Issue