[clang] cf77333 - [clang][docs] Fix supported element types for __builtin_reduce_(add|mul)
Joe Loser via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 22 06:53:16 PDT 2022
Author: Joe Loser
Date: 2022-09-22T07:52:22-06:00
New Revision: cf77333da986720e9aded4301d81a581e2be9611
URL: https://github.com/llvm/llvm-project/commit/cf77333da986720e9aded4301d81a581e2be9611
DIFF: https://github.com/llvm/llvm-project/commit/cf77333da986720e9aded4301d81a581e2be9611.diff
LOG: [clang][docs] Fix supported element types for __builtin_reduce_(add|mul)
The docs mention that `__builtin_reduce_add` and `__builtin_reduce_mul` support
both integer and floating point element types, but only integer element types
are actually supported. See https://github.com/llvm/llvm-project/issues/57847,
and specifically,
https://github.com/llvm/llvm-project/blob/00874c48ea4d291908517afaab50d1dcbfb016c3/clang/lib/Sema/SemaChecking.cpp#L2631 for the fact that floating point element types are not supported yet.
Fix the docs to only mention support for integer element types.
Added:
Modified:
clang/docs/LanguageExtensions.rst
Removed:
################################################################################
diff --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst
index 6522e0492f8b..17b2f8a00297 100644
--- a/clang/docs/LanguageExtensions.rst
+++ b/clang/docs/LanguageExtensions.rst
@@ -648,8 +648,8 @@ Let ``VT`` be a vector type and ``ET`` the element type of ``VT``.
ET __builtin_reduce_min(VT a) return x or y, whichever is smaller; If exactly one argument integer and floating point types
is a NaN, return the other argument. If both arguments are
NaNs, fmax() return a NaN.
- ET __builtin_reduce_add(VT a) \+ integer and floating point types
- ET __builtin_reduce_mul(VT a) \* integer and floating point types
+ ET __builtin_reduce_add(VT a) \+ integer types
+ ET __builtin_reduce_mul(VT a) \* integer types
ET __builtin_reduce_and(VT a) & integer types
ET __builtin_reduce_or(VT a) \| integer types
ET __builtin_reduce_xor(VT a) ^ integer types
More information about the cfe-commits
mailing list