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.