Re: Function Multiversioning Usability.

2011-08-18 Thread Xinliang David Li
On Thu, Aug 18, 2011 at 12:51 AM, Richard Guenther wrote: > On Wed, Aug 17, 2011 at 6:37 PM, Xinliang David Li wrote: >> On Wed, Aug 17, 2011 at 8:12 AM, Richard Guenther >> wrote: >>> On Wed, Aug 17, 2011 at 4:52 PM, Xinliang David Li >>> wrote: The gist of previous discussion is to use

Re: Function Multiversioning Usability.

2011-08-18 Thread Richard Guenther
On Wed, Aug 17, 2011 at 6:37 PM, Xinliang David Li wrote: > On Wed, Aug 17, 2011 at 8:12 AM, Richard Guenther > wrote: >> On Wed, Aug 17, 2011 at 4:52 PM, Xinliang David Li >> wrote: >>> The gist of previous discussion is to use function overloading instead >>> of exposing underlying implementa

Re: Function Multiversioning Usability.

2011-08-17 Thread Xinliang David Li
On Wed, Aug 17, 2011 at 8:12 AM, Richard Guenther wrote: > On Wed, Aug 17, 2011 at 4:52 PM, Xinliang David Li wrote: >> The gist of previous discussion is to use function overloading instead >> of exposing underlying implementation such as builtin_dispatch to the >> user. This new refined proposa

Re: Function Multiversioning Usability.

2011-08-17 Thread Richard Guenther
On Wed, Aug 17, 2011 at 4:52 PM, Xinliang David Li wrote: > The gist of previous discussion is to use function overloading instead > of exposing underlying implementation such as builtin_dispatch to the > user. This new refined proposal has not changed in that, but is more > elaborate on various u

Re: Function Multiversioning Usability.

2011-08-17 Thread Xinliang David Li
The gist of previous discussion is to use function overloading instead of exposing underlying implementation such as builtin_dispatch to the user. This new refined proposal has not changed in that, but is more elaborate on various use cases which has been carefully thought out. Please be specific o

Re: Function Multiversioning Usability.

2011-08-17 Thread Richard Guenther
On Tue, Aug 16, 2011 at 10:37 PM, Sriraman Tallam wrote: > Hi, > >  I am working on supporting function multi-versioning in GCC and here > is a write-up on its usability. > > Multiversioning Usability > > > For a simple motivating example, > > int > find_popcount(unsigned int

Re: Function Multiversioning Usability.

2011-08-16 Thread Xinliang David Li
The specifications should apply to virtual member functions too -- though the underlying implementation for MVed virtual functions and virtual calls can be quite different. David On Tue, Aug 16, 2011 at 1:37 PM, Sriraman Tallam wrote: > Hi, > >  I am working on supporting function multi-versioni

Re: Function Multiversioning Usability.

2011-08-16 Thread Xinliang David Li
> * Case II - User Guided Versioning where the function bodies for each > version differ and is provided by the user. > > This case pertains to multi-versioning when the source bodies of the > two or more versions are different and are provided by the user. Here > too, I want to use a new attribute

Function Multiversioning Usability.

2011-08-16 Thread Sriraman Tallam
Hi, I am working on supporting function multi-versioning in GCC and here is a write-up on its usability. Multiversioning Usability For a simple motivating example, int find_popcount(unsigned int i) { return __builtin_popcount(i); } Currently, compiling this with -mpopc