[all-commits] [llvm/llvm-project] 8a92c4: [Clang] Add integer mul reduction builtin
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Mon May 9 04:13:13 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8a92c45e07dc81c83ca3afda3971d98c512429d4
https://github.com/llvm/llvm-project/commit/8a92c45e07dc81c83ca3afda3971d98c512429d4
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M clang/docs/LanguageExtensions.rst
M clang/include/clang/Basic/Builtins.def
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/lib/Sema/SemaChecking.cpp
M clang/test/CodeGen/builtins-reduction-math.c
M clang/test/Sema/builtins-reduction-math.c
Log Message:
-----------
[Clang] Add integer mul reduction builtin
Similar to the existing bitwise reduction builtins, this lowers to a llvm.vector.reduce.mul intrinsic call.
For other reductions, we've tried to share builtins for float/integer vectors, but the fmul reduction intrinsic also take a starting value argument and can either do unordered or serialized, but not reduction-trees as specified for the builtins. However we address fmul support this shouldn't affect the integer case.
Differential Revision: https://reviews.llvm.org/D117829
More information about the All-commits
mailing list