Re: OMP4/cilkplus: simd clone function mangling

2013-10-07 Thread Aldy Hernandez
On 09/27/13 09:23, Jakub Jelinek wrote: On Thu, Sep 26, 2013 at 02:31:33PM -0500, Aldy Hernandez wrote: +/* Create a simd clone of OLD_NODE and return it. */ + +static struct cgraph_node * +simd_clone_create (struct cgraph_node *old_node) +{ + struct cgraph_node *new_node; + new_node = cgra

Re: OMP4/cilkplus: simd clone function mangling

2013-09-27 Thread Aldy Hernandez
On 09/27/13 09:23, Jakub Jelinek wrote: On Thu, Sep 26, 2013 at 02:31:33PM -0500, Aldy Hernandez wrote: --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -42806,6 +42806,43 @@ ix86_memmodel_check (unsigned HOST_WIDE_INT val) return val; } +/* Return the default vector mangling

Re: OMP4/cilkplus: simd clone function mangling

2013-09-27 Thread Jakub Jelinek
On Thu, Sep 26, 2013 at 02:31:33PM -0500, Aldy Hernandez wrote: > --- a/gcc/config/i386/i386.c > +++ b/gcc/config/i386/i386.c > @@ -42806,6 +42806,43 @@ ix86_memmodel_check (unsigned HOST_WIDE_INT val) >return val; > } > > +/* Return the default vector mangling ISA code when none is specifie

Re: OMP4/cilkplus: simd clone function mangling

2013-09-27 Thread Aldy Hernandez
On 09/27/13 03:18, Richard Biener wrote: On Thu, Sep 26, 2013 at 9:35 PM, Aldy Hernandez wrote: + /* To distinguish from an OpenMP simd clone, Cilk Plus functions to + be cloned have a distinctive artificial label in addition to "omp + declare simd". */ + bool cilk_clone = flag_enabl

Re: OMP4/cilkplus: simd clone function mangling

2013-09-27 Thread Richard Biener
On Thu, Sep 26, 2013 at 9:35 PM, Aldy Hernandez wrote: >> + /* To distinguish from an OpenMP simd clone, Cilk Plus functions to >> + be cloned have a distinctive artificial label in addition to "omp >> + declare simd". */ >> + bool cilk_clone = flag_enable_cilkplus >> +&& lookup_att

Re: OMP4/cilkplus: simd clone function mangling

2013-09-26 Thread Aldy Hernandez
+ /* To distinguish from an OpenMP simd clone, Cilk Plus functions to + be cloned have a distinctive artificial label in addition to "omp + declare simd". */ + bool cilk_clone = flag_enable_cilkplus +&& lookup_attribute ("cilk plus elemental", +DECL_ATTRIBUTE

OMP4/cilkplus: simd clone function mangling

2013-09-26 Thread Aldy Hernandez
Hi folks. Both OMP4 and Cilk Plus provide mechanisms for simd function cloning. In OMP4 it's "#pragma omp declare simd" and in Cilk Plus they are "elemental functions" (or "simd-enabled functions" in their Intel's latest nomenclature). For lack of a better term, I'll call them simd clones.