[all-commits] [llvm/llvm-project] 42e98c: [APInt] Support zero-width extract in extractBitsA...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed May 31 08:14:05 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42e98c6ae875e952ee852f78234c0f8ed311472b
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

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

  Log Message:
  [APInt] Support zero-width extract in extractBitsAsZExtValue()

D111241 added support for extractBits() with zero width. Extend this
to extractBitsAsZExtValue() as well for consistency (in which case
it will always return zero).

Differential Revision: https://reviews.llvm.org/D151788

More information about the All-commits mailing list