Skip to content

Commit d3bcbd6

Browse files
author
john-stuart2
authored
[Docs] Fix concat vectors (#131860)
GenericOpcodes.td states that the number of operands are variadic. let InOperandList = (ins type1:$src0, variable_ops); X86 supports up to 4 inputs. The example uses 512-bit aka AVX-512 to make it look real and show the effect of the ~many operands. Test plan: ninja docs-llvm-html
1 parent 1a95215 commit d3bcbd6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

llvm/docs/GlobalISel/GenericOpcode.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,13 @@ Mixing scalable vectors and fixed vectors are not allowed.
725725
G_CONCAT_VECTORS
726726
^^^^^^^^^^^^^^^^
727727

728-
Concatenate two vectors to form a longer vector.
728+
Concatenate vectors to form a longer vector.
729+
730+
.. code-block:: none
731+
732+
%4:_(<16 x i32>) = G_CONCAT_VECTORS %0:_(<4 x i32>), %1:_(<4 x i32>),
733+
%2:_(<4 x i32>), %3:_(<4 x i32>)
734+
729735
730736
G_BUILD_VECTOR, G_BUILD_VECTOR_TRUNC
731737
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)