Skip to content

Commit 318e7df

Browse files
authored
[LangRef] Docs: more detailed categories for Vector intrinsics (llvm#168924)
Fixes: llvm#167132
1 parent 1552efe commit 318e7df

File tree

1 file changed

+45
-39
lines changed

1 file changed

+45
-39
lines changed

llvm/docs/LangRef.rst

Lines changed: 45 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -20466,6 +20466,9 @@ contraction can be leveraged to implement the reduction, which may result in
2046620466
variations to the results due to reordering or by lowering to different
2046720467
instructions (including combining multiple instructions into a single one).
2046820468

20469+
Vector Manipulation Intrinsics
20470+
------------------------------
20471+
2046920472
'``llvm.vector.insert``' Intrinsic
2047020473
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2047120474

@@ -20665,45 +20668,6 @@ Arguments:
2066520668
All arguments must be vectors of the same type whereby their logical
2066620669
concatenation matches the result type.
2066720670

20668-
'``llvm.experimental.cttz.elts``' Intrinsic
20669-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20670-
20671-
Syntax:
20672-
"""""""
20673-
20674-
This is an overloaded intrinsic. You can use ```llvm.experimental.cttz.elts```
20675-
on any vector of integer elements, both fixed width and scalable.
20676-
20677-
::
20678-
20679-
declare i8 @llvm.experimental.cttz.elts.i8.v8i1(<8 x i1> <src>, i1 <is_zero_poison>)
20680-
20681-
Overview:
20682-
"""""""""
20683-
20684-
The '``llvm.experimental.cttz.elts``' intrinsic counts the number of trailing
20685-
zero elements of a vector.
20686-
20687-
Arguments:
20688-
""""""""""
20689-
20690-
The first argument is the vector to be counted. This argument must be a vector
20691-
with integer element type. The return type must also be an integer type which is
20692-
wide enough to hold the maximum number of elements of the source vector. The
20693-
behavior of this intrinsic is undefined if the return type is not wide enough
20694-
for the number of elements in the input vector.
20695-
20696-
The second argument is a constant flag that indicates whether the intrinsic
20697-
returns a valid result if the first argument is all zero. If the first argument
20698-
is all zero and the second argument is true, the result is poison.
20699-
20700-
Semantics:
20701-
""""""""""
20702-
20703-
The '``llvm.experimental.cttz.elts``' intrinsic counts the trailing (least
20704-
significant) zero elements in a vector. If ``src == 0`` the result is the
20705-
number of elements in the input vector.
20706-
2070720671
'``llvm.vector.splice``' Intrinsic
2070820672
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2070920673

@@ -20780,6 +20744,48 @@ Arguments:
2078020744

2078120745
None.
2078220746

20747+
Experimental Vector Intrinsics
20748+
------------------------------
20749+
20750+
'``llvm.experimental.cttz.elts``' Intrinsic
20751+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20752+
20753+
Syntax:
20754+
"""""""
20755+
20756+
This is an overloaded intrinsic. You can use ```llvm.experimental.cttz.elts```
20757+
on any vector of integer elements, both fixed width and scalable.
20758+
20759+
::
20760+
20761+
declare i8 @llvm.experimental.cttz.elts.i8.v8i1(<8 x i1> <src>, i1 <is_zero_poison>)
20762+
20763+
Overview:
20764+
"""""""""
20765+
20766+
The '``llvm.experimental.cttz.elts``' intrinsic counts the number of trailing
20767+
zero elements of a vector.
20768+
20769+
Arguments:
20770+
""""""""""
20771+
20772+
The first argument is the vector to be counted. This argument must be a vector
20773+
with integer element type. The return type must also be an integer type which is
20774+
wide enough to hold the maximum number of elements of the source vector. The
20775+
behavior of this intrinsic is undefined if the return type is not wide enough
20776+
for the number of elements in the input vector.
20777+
20778+
The second argument is a constant flag that indicates whether the intrinsic
20779+
returns a valid result if the first argument is all zero. If the first argument
20780+
is all zero and the second argument is true, the result is poison.
20781+
20782+
Semantics:
20783+
""""""""""
20784+
20785+
The '``llvm.experimental.cttz.elts``' intrinsic counts the trailing (least
20786+
significant) zero elements in a vector. If ``src == 0`` the result is the
20787+
number of elements in the input vector.
20788+
2078320789

2078420790
'``llvm.experimental.get.vector.length``' Intrinsic
2078520791
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)