[clang] [Clang] Support generic bit counting builtins on fixed boolean vectors (PR #154203)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 21 11:03:23 PDT 2025


================
@@ -4213,7 +4213,7 @@ such as ``unsigned __int128`` and C23 ``unsigned _BitInt(N)``.
 
 ``__builtin_clzg`` (respectively ``__builtin_ctzg``) returns the number of
 leading (respectively trailing) 0 bits in the first argument. The first argument
-can be of any unsigned integer type.
+can be of any unsigned integer type or fixed boolean vector.
----------------
jhuber6 wrote:

Yeah, blame GCC for that wonderful nomenclature. I'm not sure if we need to document it more here beyond just `bit vectors are bitcastable to integers)`.

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


More information about the cfe-commits mailing list