aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/GlobalISel/GenericOpcode.rst
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/docs/GlobalISel/GenericOpcode.rst')
-rw-r--r--llvm/docs/GlobalISel/GenericOpcode.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/docs/GlobalISel/GenericOpcode.rst b/llvm/docs/GlobalISel/GenericOpcode.rst
index f9f9e11..bf1b3cb 100644
--- a/llvm/docs/GlobalISel/GenericOpcode.rst
+++ b/llvm/docs/GlobalISel/GenericOpcode.rst
@@ -607,6 +607,17 @@ See the LLVM LangRef entry on '``llvm.lround.*'`` for details on behaviour.
Vector Specific Operations
--------------------------
+G_VSCALE
+^^^^^^^^
+
+Puts the value of the runtime ``vscale`` multiplied by the value in the source
+operand into the destination register. This can be useful in determining the
+actual runtime number of elements in a vector.
+
+.. code-block::
+
+ %0:_(s32) = G_VSCALE 4
+
G_INSERT_SUBVECTOR
^^^^^^^^^^^^^^^^^^