Skip to content

Commit 73bebf9

Browse files
authored
[LangRef] Update the position of some parameters in the vp intrinsic of abs/cttz/ctlz (#117519)
1 parent ff7b42c commit 73bebf9

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

llvm/docs/LangRef.rst

+28-28
Original file line numberDiff line numberDiff line change
@@ -21522,9 +21522,9 @@ This is an overloaded intrinsic.
2152221522

2152321523
::
2152421524

21525-
declare <16 x i32> @llvm.vp.abs.v16i32 (<16 x i32> <op>, <16 x i1> <mask>, i32 <vector_length>, i1 <is_int_min_poison>)
21526-
declare <vscale x 4 x i32> @llvm.vp.abs.nxv4i32 (<vscale x 4 x i32> <op>, <vscale x 4 x i1> <mask>, i32 <vector_length>, i1 <is_int_min_poison>)
21527-
declare <256 x i64> @llvm.vp.abs.v256i64 (<256 x i64> <op>, <256 x i1> <mask>, i32 <vector_length>, i1 <is_int_min_poison>)
21525+
declare <16 x i32> @llvm.vp.abs.v16i32 (<16 x i32> <op>, i1 <is_int_min_poison>, <16 x i1> <mask>, i32 <vector_length>)
21526+
declare <vscale x 4 x i32> @llvm.vp.abs.nxv4i32 (<vscale x 4 x i32> <op>, i1 <is_int_min_poison>, <vscale x 4 x i1> <mask>, i32 <vector_length>)
21527+
declare <256 x i64> @llvm.vp.abs.v256i64 (<256 x i64> <op>, i1 <is_int_min_poison>, <256 x i1> <mask>, i32 <vector_length>)
2152821528

2152921529
Overview:
2153021530
"""""""""
@@ -21536,12 +21536,12 @@ Arguments:
2153621536
""""""""""
2153721537

2153821538
The first argument and the result have the same vector of integer type. The
21539-
second argument is the vector mask and has the same number of elements as the
21540-
result vector type. The third argument is the explicit vector length of the
21541-
operation. The fourth argument must be a constant and is a flag to indicate
21542-
whether the result value of the '``llvm.vp.abs``' intrinsic is a
21543-
:ref:`poison value <poisonvalues>` if the first argument is statically or
21544-
dynamically an ``INT_MIN`` value.
21539+
second argument must be a constant and is a flag to indicate whether the result
21540+
value of the '``llvm.vp.abs``' intrinsic is a :ref:`poison value <poisonvalues>`
21541+
if the first argument is statically or dynamically an ``INT_MIN`` value. The
21542+
third argument is the vector mask and has the same number of elements as the
21543+
result vector type. The fourth argument is the explicit vector length of the
21544+
operation.
2154521545

2154621546
Semantics:
2154721547
""""""""""
@@ -21554,7 +21554,7 @@ Examples:
2155421554

2155521555
.. code-block:: llvm
2155621556

21557-
%r = call <4 x i32> @llvm.vp.abs.v4i32(<4 x i32> %a, <4 x i1> %mask, i32 %evl, i1 false)
21557+
%r = call <4 x i32> @llvm.vp.abs.v4i32(<4 x i32> %a, i1 false, <4 x i1> %mask, i32 %evl)
2155821558
;; For all lanes below %evl, %r is lane-wise equivalent to %also.r
2155921559

2156021560
%t = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %a, i1 false)
@@ -25260,9 +25260,9 @@ This is an overloaded intrinsic.
2526025260

2526125261
::
2526225262

25263-
declare <16 x i32> @llvm.vp.ctlz.v16i32 (<16 x i32> <op>, <16 x i1> <mask>, i32 <vector_length>, i1 <is_zero_poison>)
25264-
declare <vscale x 4 x i32> @llvm.vp.ctlz.nxv4i32 (<vscale x 4 x i32> <op>, <vscale x 4 x i1> <mask>, i32 <vector_length>, i1 <is_zero_poison>)
25265-
declare <256 x i64> @llvm.vp.ctlz.v256i64 (<256 x i64> <op>, <256 x i1> <mask>, i32 <vector_length>, i1 <is_zero_poison>)
25263+
declare <16 x i32> @llvm.vp.ctlz.v16i32 (<16 x i32> <op>, i1 <is_zero_poison>, <16 x i1> <mask>, i32 <vector_length>)
25264+
declare <vscale x 4 x i32> @llvm.vp.ctlz.nxv4i32 (<vscale x 4 x i32> <op>, i1 <is_zero_poison>, <vscale x 4 x i1> <mask>, i32 <vector_length>)
25265+
declare <256 x i64> @llvm.vp.ctlz.v256i64 (<256 x i64> <op>, i1 <is_zero_poison>, <256 x i1> <mask>, i32 <vector_length>)
2526625266

2526725267
Overview:
2526825268
"""""""""
@@ -25274,11 +25274,11 @@ Arguments:
2527425274
""""""""""
2527525275

2527625276
The first argument and the result have the same vector of integer type. The
25277-
second argument is the vector mask and has the same number of elements as the
25278-
result vector type. The third argument is the explicit vector length of the
25279-
operation. The fourth argument is a constant flag that indicates whether the
25280-
intrinsic returns a valid result if the first argument is zero. If the first
25281-
argument is zero and the fourth argument is true, the result is poison.
25277+
second argument is a constant flag that indicates whether the intrinsic returns
25278+
a valid result if the first argument is zero. The third argument is the vector
25279+
mask and has the same number of elements as the result vector type. the fourth
25280+
argument is the explicit vector length of the operation. If the first argument
25281+
is zero and the second argument is true, the result is poison.
2528225282

2528325283
Semantics:
2528425284
""""""""""
@@ -25291,7 +25291,7 @@ Examples:
2529125291

2529225292
.. code-block:: llvm
2529325293

25294-
%r = call <4 x i32> @llvm.vp.ctlz.v4i32(<4 x i32> %a, <4 x i1> %mask, i32 %evl, i1 false)
25294+
%r = call <4 x i32> @llvm.vp.ctlz.v4i32(<4 x i32> %a, , i1 false, <4 x i1> %mask, i32 %evl)
2529525295
;; For all lanes below %evl, %r is lane-wise equivalent to %also.r
2529625296

2529725297
%t = call <4 x i32> @llvm.ctlz.v4i32(<4 x i32> %a, i1 false)
@@ -25309,9 +25309,9 @@ This is an overloaded intrinsic.
2530925309

2531025310
::
2531125311

25312-
declare <16 x i32> @llvm.vp.cttz.v16i32 (<16 x i32> <op>, <16 x i1> <mask>, i32 <vector_length>, i1 <is_zero_poison>)
25313-
declare <vscale x 4 x i32> @llvm.vp.cttz.nxv4i32 (<vscale x 4 x i32> <op>, <vscale x 4 x i1> <mask>, i32 <vector_length>, i1 <is_zero_poison>)
25314-
declare <256 x i64> @llvm.vp.cttz.v256i64 (<256 x i64> <op>, <256 x i1> <mask>, i32 <vector_length>, i1 <is_zero_poison>)
25312+
declare <16 x i32> @llvm.vp.cttz.v16i32 (<16 x i32> <op>, i1 <is_zero_poison>, <16 x i1> <mask>, i32 <vector_length>)
25313+
declare <vscale x 4 x i32> @llvm.vp.cttz.nxv4i32 (<vscale x 4 x i32> <op>, i1 <is_zero_poison>, <vscale x 4 x i1> <mask>, i32 <vector_length>)
25314+
declare <256 x i64> @llvm.vp.cttz.v256i64 (<256 x i64> <op>, i1 <is_zero_poison>, <256 x i1> <mask>, i32 <vector_length>)
2531525315

2531625316
Overview:
2531725317
"""""""""
@@ -25323,11 +25323,11 @@ Arguments:
2532325323
""""""""""
2532425324

2532525325
The first argument and the result have the same vector of integer type. The
25326-
second argument is the vector mask and has the same number of elements as the
25327-
result vector type. The third argument is the explicit vector length of the
25328-
operation. The fourth argument is a constant flag that indicates whether the
25329-
intrinsic returns a valid result if the first argument is zero. If the first
25330-
argument is zero and the fourth argument is true, the result is poison.
25326+
second argument is a constant flag that indicates whether the intrinsic
25327+
returns a valid result if the first argument is zero. The third argument is
25328+
the vector mask and has the same number of elements as the result vector type.
25329+
The fourth argument is the explicit vector length of the operation. If the
25330+
first argument is zero and the second argument is true, the result is poison.
2533125331

2533225332
Semantics:
2533325333
""""""""""
@@ -25340,7 +25340,7 @@ Examples:
2534025340

2534125341
.. code-block:: llvm
2534225342

25343-
%r = call <4 x i32> @llvm.vp.cttz.v4i32(<4 x i32> %a, <4 x i1> %mask, i32 %evl, i1 false)
25343+
%r = call <4 x i32> @llvm.vp.cttz.v4i32(<4 x i32> %a, i1 false, <4 x i1> %mask, i32 %evl)
2534425344
;; For all lanes below %evl, %r is lane-wise equivalent to %also.r
2534525345

2534625346
%t = call <4 x i32> @llvm.cttz.v4i32(<4 x i32> %a, i1 false)

0 commit comments

Comments
 (0)