[llvm-bugs] [Bug 52444] New: [Clang] Implement missing elementwise & reduction builtins.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 9 03:38:21 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=52444

            Bug ID: 52444
           Summary: [Clang] Implement missing elementwise & reduction
                    builtins.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: florian_hahn at apple.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Clang recently specified a set of builtins for elementwise operations and
reductions on vectors:

https://clang.llvm.org/docs/LanguageExtensions.html#vector-builtins


At the moment, the following builtins are implemented:

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


The patches above can serve as blueprint for adding other builtin.

I am more than happy to help with reviews and new contributors, if anybody is
interested.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211109/569974e9/attachment.html>


More information about the llvm-bugs mailing list