Skip to content

Commit 7537ffd

Browse files
committed
add doc
1 parent 4d13a82 commit 7537ffd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,10 @@ at the end to the next power of 2.
732732

733733
These reductions support both fixed-sized and scalable vector types.
734734

735+
The reduction intrinsics, including ``__builtin_reduce_add``,
736+
``__builtin_reduce_mul``, ``__builtin_reduce_and``, ``__builtin_reduce_or``,
737+
and ``__builtin_reduce_xor``, can be called in a ``constexpr`` context.
738+
735739
Example:
736740

737741
.. code-block:: c++

0 commit comments

Comments
 (0)