[cfe-dev] RFC: Add New Set of Vector Math Builtins

Florian Hahn via cfe-dev cfe-dev at lists.llvm.org
Tue Nov 9 03:44:45 PST 2021


Hi,

Just a quick heads up, the first builtins have been implemented in Clang:

* _builtin_elementwise_abs https://reviews.llvm.org/rG01870d51b848 <https://reviews.llvm.org/rG01870d51b848>
* _builtin_elementwise_max, _builtin_elementwise_min   https://reviews.llvm.org/rG1ef25d28c19e <https://reviews.llvm.org/rG1ef25d28c19e>* _builtin_reduce_max, _builtin_reduce_min https://reviews.llvm.org/rG7999355106fb <https://reviews.llvm.org/rG7999355106fb>

I am planning on implementing the remaining ones at a leisurely pace. If anybody is interested in helping out, I created https://bugs.llvm.org/show_bug.cgi?id=52444 <https://bugs.llvm.org/show_bug.cgi?id=52444> to communicate and avoid duplicated work.


> On Oct 22, 2021, at 12:17, Florian Hahn via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
> 
> 
>> On Oct 21, 2021, at 22:03, Simon Pilgrim via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>> 
>> Sorry I'm late to the discussion (and thank you for working on this!) - I was wondering if you'd investigated making these builtins constexpr at all? Simon.
> 
> 
> So far I have not looked into making the builtins constexprs, but I think it would make a lot of sense. IIUC this would mostly be a question of whether someone is interested in implementing constexpr evaluation for the builtins in Clang :)


I filed https://bugs.llvm.org/show_bug.cgi?id=52445 <https://bugs.llvm.org/show_bug.cgi?id=52445> for constexpr support.

Cheers,
Florian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20211109/e8e220db/attachment.html>


More information about the cfe-dev mailing list