[llvm] 18e8cfa - [LangRef] Fix typos in float min/max intrinsic docs (#224214)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 11 10:35:11 PDT 2026
Author: Mitch Briles
Date: 2026-10-12T01:35:05+08:00
New Revision: 18e8cfa8cf4252cece864b9b8b5bd3d091b1c3e2
URL: https://github.com/llvm/llvm-project/commit/18e8cfa8cf4252cece864b9b8b5bd3d091b1c3e2
DIFF: https://github.com/llvm/llvm-project/commit/18e8cfa8cf4252cece864b9b8b5bd3d091b1c3e2.diff
LOG: [LangRef] Fix typos in float min/max intrinsic docs (#224214)
Found while fixing ISel for min/max intrinsics.
Added:
Modified:
llvm/docs/LangRef.md
Removed:
################################################################################
diff --git a/llvm/docs/LangRef.md b/llvm/docs/LangRef.md
index f8cf36be4a4c7..31e8700080b33 100644
--- a/llvm/docs/LangRef.md
+++ b/llvm/docs/LangRef.md
@@ -17843,7 +17843,7 @@ are perfectly preserved.
LLVM supports three pairs of floating-point min/max intrinsics, which
diff er
in their handling of {ref}`NaN values <floatnan>`:
- * `llvm.minimum` and `llvm.maximum`: Return NaN if one the arguments is
+ * `llvm.minimum` and `llvm.maximum`: Return NaN if one of the arguments is
NaN.
* `llvm.minimumnum` and `llvm.maximumnum`: Return the other argument if
one of the arguments is NaN.
@@ -17857,7 +17857,8 @@ specified, the order is non-deterministic: If the two inputs are zeros with
opposite sign, either input may be returned.
The mapping between the LLVM intrinsics, C functions and IEEE 754 functions is
-as follows (up to divergences permitted by the usual `NaN rules <floatnan>`):
+as follows (up to divergences permitted by the usual
+{ref}`NaN rules <floatnan>`):
```{list-table}
:header-rows: 1
@@ -17909,9 +17910,9 @@ type.
##### Semantics:
If both operands are qNaNs, returns a {ref}`NaN <floatnan>`. If one operand is
-qNaN and another operand is a number, returns the number. If both operands are
-numbers, returns the lesser of the two arguments. -0.0 is considered to be less
-than +0.0 for this intrinsic.
+qNaN and the other operand is a number, returns the number. If both operands
+are numbers, returns the lesser of the two arguments. -0.0 is considered to be
+less than +0.0 for this intrinsic.
If an operand is a signaling NaN, then the intrinsic will non-deterministically
either:
@@ -17969,9 +17970,9 @@ type.
##### Semantics:
If both operands are qNaNs, returns a {ref}`NaN <floatnan>`. If one operand is
-qNaN and another operand is a number, returns the number. If both operands are
-numbers, returns the greater of the two arguments. -0.0 is considered to be
-less than +0.0 for this intrinsic.
+qNaN and the other operand is a number, returns the number. If both operands
+are numbers, returns the greater of the two arguments. -0.0 is considered to
+be less than +0.0 for this intrinsic.
If an operand is a signaling NaN, then the intrinsic will non-deterministically
either:
@@ -18035,7 +18036,7 @@ This intrinsic follows the semantics of `fminimum` in C23 and `minimum` in
IEEE 754-2019, except for signaling NaN inputs, which follow
{ref}`LLVM's usual signaling NaN behavior <floatnan>` instead.
-If the `nsz` flag is specified, `llvm.maximum` with one +0.0 and one
+If the `nsz` flag is specified, `llvm.minimum` with one +0.0 and one
-0.0 operand may non-deterministically return either operand. Contrary to normal
`nsz` semantics, if both operands have the same sign, the result must also
have the same sign.
@@ -18115,9 +18116,9 @@ type.
##### Semantics:
If both operands are NaNs (including sNaN), returns a {ref}`NaN <floatnan>`. If
-one operand is NaN (including sNaN) and another operand is a number,
-return the number. Otherwise returns the lesser of the two
-arguments. -0.0 is considered to be less than +0.0 for this intrinsic.
+one operand is NaN (including sNaN) and the other operand is a number, returns
+the number. Otherwise returns the lesser of the two arguments. -0.0 is
+considered to be less than +0.0 for this intrinsic.
If the `nsz` flag is specified, `llvm.minimumnum` with one +0.0 and one
-0.0 operand may non-deterministically return either operand. Contrary to normal
@@ -18164,7 +18165,7 @@ type.
If both operands are NaNs (including sNaN), returns a
{ref}`NaN <floatnan>`. If one operand is NaN (including sNaN) and
-another operand is a number, return the number. Otherwise returns the
+the other operand is a number, returns the number. Otherwise returns the
greater of the two arguments. -0.0 is considered to be less than +0.0
for this intrinsic.
@@ -23263,7 +23264,7 @@ To ignore the start value, the neutral value can be used.
##### Examples:
```llvm
-%r = call float @llvm.vp.reduce.fmax.v4f32(float %float, <4 x float> %a, <4 x i1> %mask, i32 %evl)
+%r = call float @llvm.vp.reduce.fmax.v4f32(float %start, <4 x float> %a, <4 x i1> %mask, i32 %evl)
; %r is equivalent to %also.r, where lanes greater than or equal to %evl
; are treated as though %mask were false for those lanes.
@@ -23386,7 +23387,7 @@ To ignore the start value, the neutral value can be used.
##### Examples:
```llvm
-%r = call float @llvm.vp.reduce.fmaximum.v4f32(float %float, <4 x float> %a, <4 x i1> %mask, i32 %evl)
+%r = call float @llvm.vp.reduce.fmaximum.v4f32(float %start, <4 x float> %a, <4 x i1> %mask, i32 %evl)
; %r is equivalent to %also.r, where lanes greater than or equal to %evl
; are treated as though %mask were false for those lanes.
@@ -26130,7 +26131,7 @@ The third argument specifies the exception behavior as described above.
##### Semantics:
-This function follows semantics specified in the draft of IEEE 754-2019.
+This function follows semantics specified in IEEE 754-2019.
#### '`llvm.experimental.constrained.minimum`' Intrinsic
@@ -26157,7 +26158,7 @@ The third argument specifies the exception behavior as described above.
##### Semantics:
-This function follows semantics specified in the draft of IEEE 754-2019.
+This function follows semantics specified in IEEE 754-2019.
#### '`llvm.experimental.constrained.ceil`' Intrinsic
More information about the llvm-commits
mailing list