[PATCH] D15525: [GCC] Attribute ifunc support in llvm

Dmitry Polukhin via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 18 06:50:38 PST 2015


On Fri, Dec 18, 2015 at 5:39 PM, Joerg Sonnenberger via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> On Fri, Dec 18, 2015 at 09:17:17AM +0000, Dmitry Polukhin via llvm-commits
> wrote:
> > Just for the sake of completeness, there is a way to avoid IR extension
> > - it is possible to emit global asm statement like
> >    `__asm__ (".type resolver_alias_name, @gnu_indirect_function")`
> > and avoid IR extension but I didn't seriously consider this path.
>
> Why not? Let me put it another way: what is the advantage of making the
> intermediate layers aware of ifuncs? Can they provide better
> optimisations? Can they diagnose any potential bugs?
>

I think it is kind of hack and LLVM will have to know about ifunc in some
way to avoid optimizing such aliases (i.e. using resolver instead of ifunc
that it wrong). It is like using alias as ifunc but even not even mark it
as ifunc until target assembler :) But anyway it seems that it worth
mention so I'll put it into RFC as an option.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151218/b4da7d63/attachment.html>


More information about the llvm-commits mailing list