diff --git a/llvm/docs/GlobalISel/GenericOpcode.rst b/llvm/docs/GlobalISel/GenericOpcode.rst --- a/llvm/docs/GlobalISel/GenericOpcode.rst +++ b/llvm/docs/GlobalISel/GenericOpcode.rst @@ -284,7 +284,9 @@ .. code-block:: none - %2:_(s32) = G_ADD %0:_(s32), %1:_(s32) + %dst:_(s32) = G_ADD %src0:_(s32), %src1:_(s32) + +Adds %src1 to %src0 and stores the result in %dst. G_SDIVREM, G_UDIVREM ^^^^^^^^^^^^^^^^^^^^ @@ -719,28 +721,40 @@ .. code-block:: none - %1(s8) = G_PHI %7(s8), %bb.0, %3(s8), %bb.1 + %dst(s8) = G_PHI %src1(s8), %bb., %src2(s8), %bb. G_BR ^^^^ Unconditional branch +.. code-block:: none + G_BR %bb. + G_BRCOND ^^^^^^^^ Conditional branch +.. code-block:: none + G_BRCOND %condition, %basicblock. + G_BRINDIRECT ^^^^^^^^^^^^ Indirect branch +.. code-block:: none + G_BRINDIRECT %src(p0) + G_BRJT ^^^^^^ Indirect branch to jump table entry +.. code-block:: none + G_BRJT %ptr(p0), %jti, %idx(s64) + G_JUMP_TABLE ^^^^^^^^^^^^