[PATCH] D152657: [ADT] Remove deprecated functions in APInt

Kazu Hirata via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 00:25:07 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0df7e9f886fe: [ADT] Remove deprecated functions in APInt (authored by kazu).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152657/new/

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.530794.patch
Type: text/x-patch
Size: 2422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230613/8355dcee/attachment.bin>


More information about the llvm-commits mailing list