[all-commits] [llvm/llvm-project] b49b3d: [ADT] Use a constexpr version of llvm::bit_ceil (N...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Tue Jan 30 23:34:09 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b49b3ddd828192f0b3ef43762ab832b085ac95c4
      https://github.com/llvm/llvm-project/commit/b49b3ddd828192f0b3ef43762ab832b085ac95c4
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-01-30 (Tue, 30 Jan 2024)

  Changed paths:
    M llvm/include/llvm/ADT/SmallPtrSet.h

  Log Message:
  -----------
  [ADT] Use a constexpr version of llvm::bit_ceil (NFC) (#79709)

This patch replaces the template trick with a constexpr function that
is more readable.  Once C++20 is available in our code base, we can
remove the constexpr function in favor of std::bit_ceil.




More information about the All-commits mailing list