[llvm] [LangRef] Replace 'the argument' with 'the first argument' in llvm.abs description. NFC (PR #97386)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 1 23:05:30 PDT 2024
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/97386
Make it more clear which argument we're referring to.
Similar for vp.abs.
>From 33b288a833cc892125f06f366a9685d8197a5878 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Mon, 1 Jul 2024 23:03:02 -0700
Subject: [PATCH] [LangRef] Replace 'the argument' with 'the first argument' in
llvm.abs description. NFC
Make it more clear which argument we're referring to.
Similar for vp.abs.
---
llvm/docs/LangRef.rst | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index e2c47204e628f..426f56d22dd79 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -14740,16 +14740,16 @@ The return type must match the first argument type.
The second argument must be a constant and is a flag to indicate whether the
result value of the '``llvm.abs``' intrinsic is a
-:ref:`poison value <poisonvalues>` if the argument is statically or dynamically
-an ``INT_MIN`` value.
+:ref:`poison value <poisonvalues>` if the first argument is statically or
+dynamically an ``INT_MIN`` value.
Semantics:
""""""""""
The '``llvm.abs``' intrinsic returns the magnitude (always positive) of the
-argument or each element of a vector argument.". If the argument is ``INT_MIN``,
-then the result is also ``INT_MIN`` if ``is_int_min_poison == 0`` and
-``poison`` otherwise.
+first argument or each element of a vector argument.". If the first argument is
+``INT_MIN``, then the result is also ``INT_MIN`` if ``is_int_min_poison == 0``
+and ``poison`` otherwise.
.. _int_smax:
@@ -20812,10 +20812,10 @@ Arguments:
The first operand and the result have the same vector of integer type. The
second operand is the vector mask and has the same number of elements as the
result vector type. The third operand is the explicit vector length of the
-operation. The fourth argument must be a constant and is a flag to indicate
+operation. The fourth operand must be a constant and is a flag to indicate
whether the result value of the '``llvm.vp.abs``' intrinsic is a
-:ref:`poison value <poisonvalues>` if the argument is statically or dynamically
-an ``INT_MIN`` value.
+:ref:`poison value <poisonvalues>` if the first argument is statically or
+dynamically an ``INT_MIN`` value.
Semantics:
""""""""""
More information about the llvm-commits
mailing list