[all-commits] [llvm/llvm-project] 366ae9: [APInt] byteSwap - handle any whole byte bitwidth ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Feb 15 05:28:07 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 366ae9c90fe6d3a590c0a0d4283c019f11799516
      https://github.com/llvm/llvm-project/commit/366ae9c90fe6d3a590c0a0d4283c019f11799516
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-02-15 (Sat, 15 Feb 2020)

  Changed paths:
    M llvm/lib/Support/APInt.cpp
    M llvm/unittests/ADT/APIntTest.cpp

  Log Message:
  -----------
  [APInt] byteSwap - handle any whole byte bitwidth greater than 16-bits

As noted on D74621, the bswap intrinsic has a self imposed limitation that the type's bitwidth must be divisible by 16, but there's no reason that APInt::byteSwap must have the same limitation, given that it can already handle any byte width.




More information about the All-commits mailing list