[ADT] Add llvm::byteswap to bit.h
This patch adds C++23-style byteswap to bit.h. The implementation and tests are largely taken from llvm/include/llvm/Support/SwapByteOrder.h and llvm/unittests/Support/SwapByteOrderTest.cpp, respectively. Differential Revision: https://reviews.llvm.org/D142274
Loading
Please sign in to comment