[llvm] 02663a0 - [Support] Remove PowerOf2Floor and ByteSwap_{16, 32, 64}
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 5 13:18:19 PDT 2023
Author: Kazu Hirata
Date: 2023-06-05T13:18:03-07:00
New Revision: 02663a0d7f6bbc7522218d494135aba7d0b1db8d
URL: https://github.com/llvm/llvm-project/commit/02663a0d7f6bbc7522218d494135aba7d0b1db8d
DIFF: https://github.com/llvm/llvm-project/commit/02663a0d7f6bbc7522218d494135aba7d0b1db8d.diff
LOG: [Support] Remove PowerOf2Floor and ByteSwap_{16,32,64}
These functions have been deprecated since:
commit b49b429fde3a282664289d7a2155d994085eb232
Author: Kazu Hirata <kazu at google.com>
Date: Sun Feb 12 21:42:07 2023 -0800
Differential Revision: https://reviews.llvm.org/D152111
Added:
Modified:
llvm/include/llvm/Support/MathExtras.h
llvm/include/llvm/Support/SwapByteOrder.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h
index 54e8a4fbb5fe9..cc5a860a4be4f 100644
--- a/llvm/include/llvm/Support/MathExtras.h
+++ b/llvm/include/llvm/Support/MathExtras.h
@@ -457,13 +457,6 @@ constexpr inline uint64_t NextPowerOf2(uint64_t A) {
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) {
diff --git a/llvm/include/llvm/Support/SwapByteOrder.h b/llvm/include/llvm/Support/SwapByteOrder.h
index a2cedc49467bd..1bbc2e2f944ec 100644
--- a/llvm/include/llvm/Support/SwapByteOrder.h
+++ b/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
More information about the llvm-commits
mailing list