jhuber6 wrote:

> Is the idea behind only supporting boolean vectors that the operation on 
> arbitrary integer vectors probably ought to be a vector-to-vector operation? 
> That seems reasonable, but are we going to regret having inconsistent 
> behavior between different vector types, then?

Thanks for the review. The motivation is mostly that the `simd` extensions in 
C++26 specify the `popcount` and `find_[first|last]_set` functions on a mask, 
which is a vector of bools 
https://en.cppreference.com/w/cpp/experimental/simd.html. The 'generic' bit 
counting functions are intended to be type generic and boolean vectors are 
'bit-castable' to integers. I figured the most straightforward way to implement 
this was to extend the generic versions, but we could make new builtins if 
needed.

https://github.com/llvm/llvm-project/pull/154203
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to