[all-commits] [llvm/llvm-project] 51454e: [ADT] Add llvm::byteswap to bit.h

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Jan 22 09:29:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 51454e05112abf6345625f8fff620facd62f2d03
      https://github.com/llvm/llvm-project/commit/51454e05112abf6345625f8fff620facd62f2d03
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-01-22 (Sun, 22 Jan 2023)

  Changed paths:
    M llvm/include/llvm/ADT/bit.h
    M llvm/unittests/ADT/BitTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list