1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[MIR] Update MIRLangRef with documentation on bundled instructions

Differential Revision: https://reviews.llvm.org/D41872

llvm-svn: 322198
This commit is contained in:
Francis Visoiu Mistrih 2018-01-10 17:53:16 +00:00
parent 766fa58550
commit 1905696375

View File

@ -378,6 +378,21 @@ instruction's name:
.. _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 @@ For an int eq predicate ``ICMP_EQ``, the syntax is:
.. 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.