<div dir="ltr"><div>I always thought the IL was designed to be easy to parse by hand, but this ordering makes that harder.  Oh well.  I'd rather be consistent with globals, which we surely can't change.  +1 for reordering.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 3, 2014 at 12:42 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It always amused me that we have<br>
<br>
@a = weak global ...<br>
but<br>
@b = alias weak ...<br>
<br>
I decided to dig why that is. The best I could find was<br>
<br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=1017#c15" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=1017#c15</a><br>
<br>
Looking at some really old cold then suggests that the reason was that<br>
the old bison based parser hard a reduction for alias linkages and<br>
another one for global variable linkages. Putting the alias first<br>
avoided the reduce/reduce conflict.<br>
<br>
The days of the old .ll parser are long gone, but is it too late to<br>
change? In case it is not, the attached patches implement just that<br>
:-)<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>