[llvm] [ADT] Add llvm::countr_zero_constexpr (PR #164188)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 20 06:58:01 PDT 2025


================
@@ -177,6 +178,22 @@ template <typename T> [[nodiscard]] inline int popcount(T Value) noexcept {
   }
 }
 
+/// Count number of 0's from the least significant bit to the most
+///   stopping at the first 1.
----------------
kazutakahirata wrote:

Fixed.

https://github.com/llvm/llvm-project/pull/164188


More information about the llvm-commits mailing list