[PATCH] D152111: [Support] Remove PowerOf2Floor and ByteSwap_{16,32,64}
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 4 11:12:17 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.
These functions have been deprecated since:
commit b49b429fde3a282664289d7a2155d994085eb232
Author: Kazu Hirata <kazu at google.com>
Date: Sun Feb 12 21:42:07 2023 -0800
Repository:
rG LLVM Github Monorepo
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.528242.patch
Type: text/x-patch
Size: 1793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230604/c53a6f9b/attachment.bin>
More information about the llvm-commits
mailing list