[PATCH] D41872: [MIR] Update MIRLangRef with bundled instructions

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 09:54:44 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL322198: [MIR] Update MIRLangRef with documentation on bundled instructions (authored by thegameg, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D41872?vs=129240&id=129295#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D41872

Files:
  llvm/trunk/docs/MIRLangRef.rst


Index: llvm/trunk/docs/MIRLangRef.rst
===================================================================
--- llvm/trunk/docs/MIRLangRef.rst
+++ llvm/trunk/docs/MIRLangRef.rst
@@ -378,6 +378,21 @@
 
 .. _registers:
 
+Bundled Instructions
+^^^^^^^^^^^^^^^^^^^^
+
+The syntax for bundled instructions is the following:
+
+.. code-block:: text
+
+    BUNDLE implicit-def %r0, implicit-def %r1, implicit %r2 {
+      %r0 = SOME_OP %r2
+      %r1 = ANOTHER_OP internal %r0
+    }
+
+The first instruction is often a bundle header. The instructions between ``{``
+and ``}`` are bundled with the first instruction.
+
 Registers
 ---------
 
@@ -743,7 +758,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.129295.patch
Type: text/x-patch
Size: 1016 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180110/e403f45b/attachment.bin>


More information about the llvm-commits mailing list