Re: [PATCH v3] Extend the simd function attribute

2019-11-21 Thread Francesco Petrogalli
> On Nov 21, 2019, at 4:09 PM, Richard Sandiford > wrote: > > This probably isn't helpful, sorry, but the fact that the second point > is a (reasonable) area of debate IMO shows the problems with doing > the first point. If we go for (1) but not (2), everyone will need > to specify the four i

Re: [PATCH v3] Extend the simd function attribute

2019-11-21 Thread Richard Sandiford
Szabolcs Nagy writes: > On 14/11/2019 20:23, Szabolcs Nagy wrote: >> Sorry v2 had a bug. >> >> v2: added documentation and tests. >> v3: fixed expand_simd_clones so different isa variants are actually >> generated. >> >> GCC currently supports two ways to declare the availability of vector >

Re: [PATCH v3] Extend the simd function attribute

2019-11-20 Thread Francesco Petrogalli
On 11/20/19 7:54 AM, Szabolcs Nagy wrote: > On 14/11/2019 20:23, Szabolcs Nagy wrote: >> Sorry v2 had a bug. >> >> v2: added documentation and tests. >> v3: fixed expand_simd_clones so different isa variants are actually >> generated. >> >> GCC currently supports two ways to declare the availa

Re: [PATCH v3] Extend the simd function attribute

2019-11-20 Thread Szabolcs Nagy
On 14/11/2019 20:23, Szabolcs Nagy wrote: > Sorry v2 had a bug. > > v2: added documentation and tests. > v3: fixed expand_simd_clones so different isa variants are actually > generated. > > GCC currently supports two ways to declare the availability of vector > variants of a scalar function:

Re: [PATCH v3] Extend the simd function attribute

2019-11-15 Thread Francesco Petrogalli
> On Nov 15, 2019, at 10:01 AM, Szabolcs Nagy wrote: > > On 15/11/2019 15:05, Francesco Petrogalli wrote: >> Thank you Szabolcs for working on this. >> >>> On Nov 14, 2019, at 2:23 PM, Szabolcs Nagy wrote: >>> >>> Sorry v2 had a bug. >>> >>> v2: added documentation and tests. >>> v3: fixed

Re: [PATCH v3] Extend the simd function attribute

2019-11-15 Thread Szabolcs Nagy
On 15/11/2019 15:05, Francesco Petrogalli wrote: > Thank you Szabolcs for working on this. > >> On Nov 14, 2019, at 2:23 PM, Szabolcs Nagy wrote: >> >> Sorry v2 had a bug. >> >> v2: added documentation and tests. >> v3: fixed expand_simd_clones so different isa variants are actually >>generat

Re: [PATCH v3] Extend the simd function attribute

2019-11-15 Thread Toon Moene
On 11/15/19 4:05 PM, Francesco Petrogalli wrote: Thank you Szabolcs for working on this. OpenMP 5 has a declare variant feature that allows declaring more specific simd variants, but it is complicated and still requires gcc or vendor extension for unambiguous declarations.) It is not just

Re: [PATCH v3] Extend the simd function attribute

2019-11-15 Thread Francesco Petrogalli
Thank you Szabolcs for working on this. > On Nov 14, 2019, at 2:23 PM, Szabolcs Nagy wrote: > > Sorry v2 had a bug. > > v2: added documentation and tests. > v3: fixed expand_simd_clones so different isa variants are actually >generated. > > GCC currently supports two ways to declare the av