[PATCH] D41872: [MIR] Update MIRLangRef with bundled instructions
Francis Visoiu Mistrih via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 10:42:07 PST 2018
thegameg created this revision.
thegameg added reviewers: MatzeB, qcolombet.
https://reviews.llvm.org/D41872
Files:
docs/MIRLangRef.rst
Index: docs/MIRLangRef.rst
===================================================================
--- docs/MIRLangRef.rst
+++ docs/MIRLangRef.rst
@@ -378,6 +378,31 @@
.. _registers:
+Bundled Instructions
+^^^^^^^^^^^^^^^^^^^^
+
+The syntax for bundled instructions is the following:
+
+.. code-block:: text
+
+ %r0 = IMPLICIT_DEF {
+ %r1 = IMPLICIT_DEF
+ %r2 = IMPLICIT_DEF
+ }
+
+where the first instruction ``%r0 = IMPLICIT_DEF`` is **starting** the bundle,
+but it is **outside** the bundle. The two other instructions are **inside** the
+bundle. The ``}`` ends the bundle.
+
+The following syntax where the first instruction **inside** the bundle is on
+the same line is also accepted:
+
+.. code-block:: text
+
+ %r0 = IMPLICIT_DEF { %r1 = IMPLICIT_DEF
+ %r2 = IMPLICIT_DEF
+ }
+
Registers
---------
@@ -743,7 +768,6 @@
.. TODO: Describe the parsers default behaviour when optional YAML attributes
are missing.
-.. TODO: Describe the syntax for the bundled instructions.
.. TODO: Describe the syntax for virtual register YAML definitions.
.. TODO: Describe the machine function's YAML flag attributes.
.. TODO: Describe the syntax for the register mask machine operands.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41872.129124.patch
Type: text/x-patch
Size: 1219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180109/f73bea53/attachment.bin>
More information about the llvm-commits
mailing list