<div dir="ltr">It is correct as written. Unnamed BB's are "unnamed temporaries" from a counting perspective. If the first BB is unlabeled, then it becomes %0. The first instruction then becomes %1, etc.<div><br>
</div><div>I swear we mention that somewhere in LangRef (I seem to recall reviewing a patch mentioning that), but if not, a patch mentioning that would be fine.<div><br></div><div>-- Sean Silva</div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Nov 26, 2013 at 8:50 PM, Mikael Lyngvig <span dir="ltr"><<a href="mailto:mikael@lyngvig.org" target="_blank">mikael@lyngvig.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">This patch adds the following sentence to the LR after it states that temporaries begin at index 0:<div><br><div>   If you do not specify a label for the entry block, the temporaries start at index 1 as index<br>

</div><div>   0 is then used for an implicit label generated by LLVM.</div><div><br></div><div>This because LLC complains when you use %0 as a temporary and there is no entry point label in the function.  Then you get an error message, which can be quite difficult to figure out why.</div>

</div><div><br></div><div>If this patch is rejected, somebody should probably phrase the above appropriately and submit a new patch.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>-- Mikael</div>
<div><br></div></font></span></div>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>