<div dir="ltr">Thanks, I'll keep that in mind :P</div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-17 15:35 GMT-07:00 Duncan P. N. Exon Smith <span dir="ltr"><<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 2015-Aug-13, at 17:36, Alex Lorenz via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br>
><br>
> Author: arphaman<br>
> Date: Thu Aug 13 19:36:10 2015<br>
> New Revision: 244996<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=244996&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=244996&view=rev</a><br>
> Log:<br>
> Update MIRLangRef for MIR syntax change from r244982.<br>
<br>
</span>The new syntax is much cleaner!<br>
<br>
BTW, it would have been better if the MIRLangRef change had been in<br>
the same commit. For next time you rewrite the syntax ;).<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Modified:<br>
> llvm/trunk/docs/MIRLangRef.rst<br>
><br>
> Modified: llvm/trunk/docs/MIRLangRef.rst<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/MIRLangRef.rst?rev=244996&r1=244995&r2=244996&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/MIRLangRef.rst?rev=244996&r1=244995&r2=244996&view=diff</a><br>
> ==============================================================================<br>
> --- llvm/trunk/docs/MIRLangRef.rst (original)<br>
> +++ llvm/trunk/docs/MIRLangRef.rst Thu Aug 13 19:36:10 2015<br>
> @@ -64,22 +64,21 @@ Machine Functions<br>
> The remaining YAML documents contain the machine functions. This is an example<br>
> of such YAML document:<br>
><br>
> -.. code-block:: yaml<br>
> +.. code-block:: llvm<br>
><br>
> ---<br>
> name: inc<br>
> tracksRegLiveness: true<br>
> liveins:<br>
> - { reg: '%rdi' }<br>
> - body:<br>
> - - id: 0<br>
> - name: entry<br>
> - liveins: [ '%rdi' ]<br>
> - instructions:<br>
> - - '%eax = MOV32rm %rdi, 1, _, 0, _'<br>
> - - '%eax = INC32r killed %eax, implicit-def dead %eflags'<br>
> - - 'MOV32mr killed %rdi, 1, _, 0, _, %eax'<br>
> - - 'RETQ %eax'<br>
> + body: |<br>
> + bb.0.entry:<br>
> + liveins: %rdi<br>
> +<br>
> + %eax = MOV32rm %rdi, 1, _, 0, _<br>
> + %eax = INC32r killed %eax, implicit-def dead %eflags<br>
> + MOV32mr killed %rdi, 1, _, 0, _, %eax<br>
> + RETQ %eax<br>
> ...<br>
><br>
> The document above consists of attributes that represent the various<br>
> @@ -88,12 +87,8 @@ properties and data structures in a mach<br>
> The attribute ``name`` is required, and its value should be identical to the<br>
> name of a function that this machine function is based on.<br>
><br>
> -The attribute ``body`` contains a list of YAML mappings that represent the<br>
> -function's machine basic blocks.<br>
> -<br>
> -The first machine basic block in the ``body`` list above contains the attribute<br>
> -``instructions``. This attribute stores a list of string literals which<br>
> -represent the machine instructions for that basic block.<br>
> +The attribute ``body`` is a `YAML block literal string`_. Its value represents<br>
> +the function's machine basic blocks and their machine instructions.<br>
><br>
> .. TODO: Describe the parsers default behaviour when optional YAML attributes<br>
> are missing.<br>
><br>
><br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
<br>
</div></div></blockquote></div><br></div>