diff options
author | Kazu Hirata <kazu@google.com> | 2023-01-22 09:29:35 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-01-22 09:29:35 -0800 |
commit | 51454e05112abf6345625f8fff620facd62f2d03 (patch) | |
tree | b5b9b6ad3cde231dacdf51829026f56380264b98 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 9f7b0a3b6c03268d054652c48619f96677fafcd4 (diff) | |
download | llvm-51454e05112abf6345625f8fff620facd62f2d03.zip llvm-51454e05112abf6345625f8fff620facd62f2d03.tar.gz llvm-51454e05112abf6345625f8fff620facd62f2d03.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions