[PATCH] D107630: [docs][GlobalISel]Adding info for G_JUMP_TABLE generic opcode
PoojaYadav via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 30 12:14:17 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG843da6f4085c: [docs][GlobalISel]Adding info for G_JUMP_TABLE generic opcode (authored by pooja2299).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107630/new/
https://reviews.llvm.org/D107630
Files:
llvm/docs/GlobalISel/GenericOpcode.rst
Index: llvm/docs/GlobalISel/GenericOpcode.rst
===================================================================
--- llvm/docs/GlobalISel/GenericOpcode.rst
+++ llvm/docs/GlobalISel/GenericOpcode.rst
@@ -822,9 +822,17 @@
G_JUMP_TABLE
^^^^^^^^^^^^
-.. caution::
+Generates a pointer to the address of the jump table specified by the source
+operand. The source operand is a jump table index.
+G_JUMP_TABLE can be used in conjunction with G_BRJT to support jump table
+codegen with GlobalISel.
+
+.. code-block:: none
+
+ %dst:_(p0) = G_JUMP_TABLE %jump-table.0
+
+The above example generates a pointer to the source jump table index.
- I found no documentation for this instruction at the time of writing.
G_INTRINSIC, G_INTRINSIC_W_SIDE_EFFECTS
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107630.369516.patch
Type: text/x-patch
Size: 799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210830/2e56c64e/attachment.bin>
More information about the llvm-commits
mailing list