/// Get the '0' value for the specified bit-width.
static APInt getZero(unsigned numBits) { return APInt(numBits, 0); }
- /// NOTE: This is soft-deprecated. Please use `getZero()` instead.
+ LLVM_DEPRECATED("use getZero instead", "getZero")
static APInt getNullValue(unsigned numBits) { return getZero(numBits); }
/// Return an APInt zero bits wide.
return APInt(numBits, WORDTYPE_MAX, true);
}
- /// NOTE: This is soft-deprecated. Please use `getAllOnes()` instead.
+ LLVM_DEPRECATED("use getAllOnes instead", "getAllOnes")
static APInt getAllOnesValue(unsigned numBits) { return getAllOnes(numBits); }
/// Return an APInt with exactly one bit set in the result.
return countTrailingOnesSlowCase() == BitWidth;
}
- /// NOTE: This is soft-deprecated. Please use `isAllOnes()` instead.
+ LLVM_DEPRECATED("use isAllOnes instead", "isAllOnes")
bool isAllOnesValue() const { return isAllOnes(); }
/// Determine if this value is zero, i.e. all bits are clear.
return countLeadingZerosSlowCase() == BitWidth;
}
- /// NOTE: This is soft-deprecated. Please use `isZero()` instead.
+ LLVM_DEPRECATED("use isZero instead", "isZero")
bool isNullValue() const { return isZero(); }
/// Determine if this is a value of 1.
return countLeadingZerosSlowCase() == BitWidth - 1;
}
- /// NOTE: This is soft-deprecated. Please use `isOne()` instead.
+ LLVM_DEPRECATED("use isOne instead", "isOne")
bool isOneValue() const { return isOne(); }
/// Determine if this is the largest unsigned value.
return BitWidth - getNumSignBits() + 1;
}
- /// NOTE: This is soft-deprecated. Please use `getSignificantBits()` instead.
+ LLVM_DEPRECATED("use getSignificantBits instead", "getSignificantBits")
unsigned getMinSignedBits() const { return getSignificantBits(); }
/// Get zero extended value
/// Count the number of trailing zero bits.
///
- /// This function is an APInt version of the countr_zero. It counts the number
+ /// This function is an APInt version of std::countr_zero. It counts the number
/// of zeros from the least significant bit to the first set bit.
///
/// \returns BitWidth if the value is zero, otherwise returns the number of
return countPopulationSlowCase();
}
+ LLVM_DEPRECATED("use popcount instead", "popcount")
unsigned countPopulation() const { return popcount(); }
/// @}