[PATCH] D101227: [DOCS] Added example for G_EXTRACT and G_INSERT
Shivam Gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 5 03:19:03 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe4eec519370b: [DOCS] Added example for G_EXTRACT and G_INSERT (authored by sushmaunnibhavi, committed by xgupta).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101227/new/
https://reviews.llvm.org/D101227
Files:
llvm/docs/GlobalISel/GenericOpcode.rst
Index: llvm/docs/GlobalISel/GenericOpcode.rst
===================================================================
--- llvm/docs/GlobalISel/GenericOpcode.rst
+++ llvm/docs/GlobalISel/GenericOpcode.rst
@@ -186,11 +186,19 @@
index. This will almost certainly be mapped to sub-register COPYs after
register banks have been selected.
+.. code-block:: none
+
+ %3:_(s32) = G_EXTRACT %2:_(s64), 32
+
G_INSERT
^^^^^^^^
Insert a smaller register into a larger one at the specified bit-index.
+.. code-block:: none
+
+ %2:_(s64) = G_INSERT %0:(_s64), %1:_(s32), 0
+
G_MERGE_VALUES
^^^^^^^^^^^^^^
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101227.342978.patch
Type: text/x-patch
Size: 603 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210505/58c1cfa0/attachment.bin>
More information about the llvm-commits
mailing list