[cfe-dev] __attribute__ ((target("XXX"))) semantic in clang and gcc

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Tue Dec 8 12:54:08 PST 2015


On Tue, Dec 08, 2015 at 12:41:57PM -0800, David Blaikie wrote:
> On Tue, Dec 8, 2015 at 12:18 PM, Joerg Sonnenberger via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
> 
> > On Tue, Dec 08, 2015 at 09:38:58AM -0800, David Blaikie via cfe-dev wrote:
> > > Implementing actual multiversioning (with the overloads, ifunc
> > > relocations/stub generation, etc) is not implemented currently and while
> > I
> > > don't know of anyone who has plans to, it's certainly something that
> > could
> > > be done (ie: the project isn't philosophically opposed to the feature or
> > > anything).
> >
> > We are not? IMO creating tools for magically matching the target to
> > whatever the system currently runs on is not the job of the compiler.
> >
> 
> *shrug* Seems like a reasonable feature that GCC offers and people use.
> What would be the problem with it?

Do you want code emitted to magically call __cpuid() and match patterns
or whatever on it? This kind of logic sounds to be exactly like the
thing an application should be controlling.

Joerg



More information about the cfe-dev mailing list