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.