[PATCH] D152657: [ADT] Remove deprecated functions in APInt
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 11 12:49:04 PDT 2023
kazu created this revision.
Herald added a project: All.
kazu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch removes functions deprecated by:
commit 462b29019b20cf7b25c68ec952b1f92930f5035d
Author: Kazu Hirata <kazu at google.com>
Date: Sun Mar 5 22:48:28 2023 -0800
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152657
Files:
llvm/include/llvm/ADT/APInt.h
Index: llvm/include/llvm/ADT/APInt.h
===================================================================
--- llvm/include/llvm/ADT/APInt.h
+++ llvm/include/llvm/ADT/APInt.h
@@ -176,9 +176,6 @@
/// Get the '0' value for the specified bit-width.
static APInt getZero(unsigned numBits) { return APInt(numBits, 0); }
- LLVM_DEPRECATED("use getZero instead", "getZero")
- static APInt getNullValue(unsigned numBits) { return getZero(numBits); }
-
/// Return an APInt zero bits wide.
static APInt getZeroWidth() { return getZero(0); }
@@ -215,9 +212,6 @@
return APInt(numBits, WORDTYPE_MAX, true);
}
- 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.
static APInt getOneBitSet(unsigned numBits, unsigned BitNo) {
APInt Res(numBits, 0);
@@ -359,9 +353,6 @@
return countTrailingOnesSlowCase() == BitWidth;
}
- LLVM_DEPRECATED("use isAllOnes instead", "isAllOnes")
- bool isAllOnesValue() const { return isAllOnes(); }
-
/// Determine if this value is zero, i.e. all bits are clear.
bool isZero() const {
if (isSingleWord())
@@ -369,9 +360,6 @@
return countLeadingZerosSlowCase() == BitWidth;
}
- LLVM_DEPRECATED("use isZero instead", "isZero")
- bool isNullValue() const { return isZero(); }
-
/// Determine if this is a value of 1.
///
/// This checks to see if the value of this APInt is one.
@@ -381,9 +369,6 @@
return countLeadingZerosSlowCase() == BitWidth - 1;
}
- LLVM_DEPRECATED("use isOne instead", "isOne")
- bool isOneValue() const { return isOne(); }
-
/// Determine if this is the largest unsigned value.
///
/// This checks to see if the value of this APInt is the maximum unsigned
@@ -1487,9 +1472,6 @@
return BitWidth - getNumSignBits() + 1;
}
- LLVM_DEPRECATED("use getSignificantBits instead", "getSignificantBits")
- unsigned getMinSignedBits() const { return getSignificantBits(); }
-
/// Get zero extended value
///
/// This method attempts to return the value of this APInt as a zero extended
@@ -1630,9 +1612,6 @@
return countPopulationSlowCase();
}
- LLVM_DEPRECATED("use popcount instead", "popcount")
- unsigned countPopulation() const { return popcount(); }
-
/// @}
/// \name Conversion Functions
/// @{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152657.530326.patch
Type: text/x-patch
Size: 2422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230611/941ed215/attachment.bin>
More information about the llvm-commits
mailing list