[patch][rfc] "alias weak" X "weak alias"

Reid Kleckner rnk at google.com
Tue Jun 3 16:44:54 PDT 2014


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.


On Tue, Jun 3, 2014 at 12:42 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> It always amused me that we have
>
> @a = weak global ...
> but
> @b = alias weak ...
>
> I decided to dig why that is. The best I could find was
>
> http://llvm.org/bugs/show_bug.cgi?id=1017#c15
>
> Looking at some really old cold then suggests that the reason was that
> the old bison based parser hard a reduction for alias linkages and
> another one for global variable linkages. Putting the alias first
> avoided the reduce/reduce conflict.
>
> The days of the old .ll parser are long gone, but is it too late to
> change? In case it is not, the attached patches implement just that
> :-)
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140603/cbd513fd/attachment.html>


More information about the llvm-commits mailing list