================
@@ -926,27 +926,31 @@ Example:
Let ``VT`` be a vector type and ``ET`` the element type of ``VT``.
-=======================================
======================================================================
==================================
- Name Operation
Supported element types
-=======================================
======================================================================
==================================
- ET __builtin_reduce_max(VT a) return the largest element of the
vector. The floating point result integer and floating point types
- will always be a number unless all
elements of the vector are NaN.
- ET __builtin_reduce_min(VT a) return the smallest element of the
vector. The floating point result integer and floating point types
- will always be a number unless all
elements of the vector are NaN.
- 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
- ET __builtin_reduce_maximum(VT a) return the largest element of the
vector. Follows IEEE 754-2019 floating point types
- semantics, see `LangRef
-
<http://llvm.org/docs/LangRef.html#i-fminmax-family>`_
- for the comparison.
- ET __builtin_reduce_minimum(VT a) return the smallest element of the
vector. Follows IEEE 754-2019 floating point types
- semantics, see `LangRef
-
<http://llvm.org/docs/LangRef.html#i-fminmax-family>`_
- for the comparison.
-=======================================
======================================================================
==================================
+==============================================
======================================================================
==================================
+ Name Operation
Supported element types
+==============================================
======================================================================
==================================
+ ET __builtin_reduce_max(VT a) return the largest element of
the vector. The floating point result integer and floating point types
+ will always be a number unless
all elements of the vector are NaN.
+ ET __builtin_reduce_min(VT a) return the smallest element of
the vector. The floating point result integer and floating point types
+ will always be a number unless
all elements of the vector are NaN.
+ 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
+ ET __builtin_reduce_maximum(VT a) return the largest element of
the vector. Follows IEEE 754-2019 floating point types
+ semantics, see `LangRef
+
<http://llvm.org/docs/LangRef.html#i-fminmax-family>`_
+ for the comparison.
+ ET __builtin_reduce_minimum(VT a) return the smallest element of
the vector. Follows IEEE 754-2019 floating point types
+ semantics, see `LangRef
+
<http://llvm.org/docs/LangRef.html#i-fminmax-family>`_
+ for the comparison.
+ ET __builtin_reduce_assoc_fadd(VT a) associative floating-point add
reduction. floating point types
----------------
sdesmalen-arm wrote:
```suggestion
ET __builtin_reduce_assoc_fadd(VT a[, ET s]) associative
floating-point add reduction. floating point types
```
It seems from the code/tests that the start value is optional, so it needs to
be reflected in the documentation.
https://github.com/llvm/llvm-project/pull/176160
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits