[clang] [clang] Implement constexpr support for __builtin_popcountg (PR #84318)

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 09:02:26 PST 2024


================
@@ -157,6 +157,9 @@ Non-comprehensive list of changes in this release
 - ``__builtin_addc``, ``__builtin_subc``, and the other sizes of those
   builtins are now constexpr and may be used in constant expressions.
 
+- Added ``__builtin_popcountg`` as a type-generic alternative to
+  ``__builtin_popcount{,l,ll}`` with support for any unsigned integer type.
----------------
Sirraide wrote:

`__builtin_popcountg` already existed; the change is that it’s now constexpr.

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


More information about the cfe-commits mailing list