[PATCH] D152111: [Support] Remove PowerOf2Floor and ByteSwap_{16,32,64}

Kazu Hirata via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 13:18:27 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG02663a0d7f6b: [Support] Remove PowerOf2Floor and ByteSwap_{16,32,64} (authored by kazu).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152111

Files:
  llvm/include/llvm/Support/MathExtras.h
  llvm/include/llvm/Support/SwapByteOrder.h


Index: llvm/include/llvm/Support/SwapByteOrder.h
===================================================================
--- llvm/include/llvm/Support/SwapByteOrder.h
+++ llvm/include/llvm/Support/SwapByteOrder.h
@@ -46,19 +46,6 @@
 
 namespace llvm {
 
-/// ByteSwap_16 - This function returns a byte-swapped representation of
-/// the 16-bit argument.
-LLVM_DEPRECATED("use llvm::byteswap instead", "llvm::byteswap")
-inline uint16_t ByteSwap_16(uint16_t value) { return llvm::byteswap(value); }
-
-/// This function returns a byte-swapped representation of the 32-bit argument.
-LLVM_DEPRECATED("use llvm::byteswap instead", "llvm::byteswap")
-inline uint32_t ByteSwap_32(uint32_t value) { return llvm::byteswap(value); }
-
-/// This function returns a byte-swapped representation of the 64-bit argument.
-LLVM_DEPRECATED("use llvm::byteswap instead", "llvm::byteswap")
-inline uint64_t ByteSwap_64(uint64_t value) { return llvm::byteswap(value); }
-
 namespace sys {
 
 #if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
Index: llvm/include/llvm/Support/MathExtras.h
===================================================================
--- llvm/include/llvm/Support/MathExtras.h
+++ llvm/include/llvm/Support/MathExtras.h
@@ -457,13 +457,6 @@
   return A + 1;
 }
 
-/// Returns the power of two which is less than or equal to the given value.
-/// Essentially, it is a floor operation across the domain of powers of two.
-LLVM_DEPRECATED("use llvm::bit_floor instead", "llvm::bit_floor")
-inline uint64_t PowerOf2Floor(uint64_t A) {
-  return llvm::bit_floor(A);
-}
-
 /// Returns the power of two which is greater than or equal to the given value.
 /// Essentially, it is a ceil operation across the domain of powers of two.
 inline uint64_t PowerOf2Ceil(uint64_t A) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152111.528557.patch
Type: text/x-patch
Size: 1793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230605/02916eb7/attachment.bin>


More information about the llvm-commits mailing list