[llvm] 0df7e9f - [ADT] Remove deprecated functions in APInt

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 00:24:59 PDT 2023


Author: Kazu Hirata
Date: 2023-06-13T00:24:41-07:00
New Revision: 0df7e9f886feef6e002bb41081062364233696be

URL: https://github.com/llvm/llvm-project/commit/0df7e9f886feef6e002bb41081062364233696be
DIFF: https://github.com/llvm/llvm-project/commit/0df7e9f886feef6e002bb41081062364233696be.diff

LOG: [ADT] Remove deprecated functions in APInt

This patch removes functions deprecated by:

  commit 462b29019b20cf7b25c68ec952b1f92930f5035d
  Author: Kazu Hirata <kazu at google.com>
  Date:   Sun Mar 5 22:48:28 2023 -0800

Differential Revision: https://reviews.llvm.org/D152657

Added: 
    

Modified: 
    llvm/include/llvm/ADT/APInt.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h
index 59f7e0fe60434..a23e304cce444 100644
--- a/llvm/include/llvm/ADT/APInt.h
+++ b/llvm/include/llvm/ADT/APInt.h
@@ -176,9 +176,6 @@ class [[nodiscard]] APInt {
   /// 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 @@ class [[nodiscard]] APInt {
     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 @@ class [[nodiscard]] APInt {
     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 @@ class [[nodiscard]] APInt {
     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 @@ class [[nodiscard]] APInt {
     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 @@ class [[nodiscard]] APInt {
     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 @@ class [[nodiscard]] APInt {
     return countPopulationSlowCase();
   }
 
-  LLVM_DEPRECATED("use popcount instead", "popcount")
-  unsigned countPopulation() const { return popcount(); }
-
   /// @}
   /// \name Conversion Functions
   /// @{


        


More information about the llvm-commits mailing list