We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa340f commit 843da6fCopy full SHA for 843da6f
llvm/docs/GlobalISel/GenericOpcode.rst
@@ -822,9 +822,17 @@ Indirect branch to jump table entry
822
G_JUMP_TABLE
823
^^^^^^^^^^^^
824
825
-.. caution::
+Generates a pointer to the address of the jump table specified by the source
826
+operand. The source operand is a jump table index.
827
+G_JUMP_TABLE can be used in conjunction with G_BRJT to support jump table
828
+codegen with GlobalISel.
829
+
830
+.. code-block:: none
831
832
+ %dst:_(p0) = G_JUMP_TABLE %jump-table.0
833
834
+The above example generates a pointer to the source jump table index.
835
- I found no documentation for this instruction at the time of writing.
836
837
G_INTRINSIC, G_INTRINSIC_W_SIDE_EFFECTS
838
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments