[cfe-dev] Adding "simd" pragma to Clang
Renato Golin
renato.golin at linaro.org
Mon Feb 10 06:48:21 PST 2014
On 10 February 2014 14:26, Andrey Bokhanko <andreybokhanko at gmail.com> wrote:
> One possibility is to commit "#pragma omp simd" implementation, which is a
> part of OpenMP 4 standard
Hi Andrey,
I see no problems with it. This is not the same as what I proposed
back then, but really, it's interesting to have anyway. The problems
you list come from trying to use omp pragmas as standard vectorization
pragmas, which is not ideal. But if you treat them as just extended
support for OMP, why not?
> Another possibility is to drop omp prefix -- this removes the downsides
> mentioned above (and yes, makes the pragma similar to what is proposed in
> CilkPlus -- not necessarily a bad thing in itself).
Cilk might be closed to what we had in mind. The pragmas I've seen on Cilk:
#pragma simd
#pragma vector always
Could enable the three metadata we have already in IR, so if you guys
could introduce that, it'd be great!
cheers,
--renato
More information about the cfe-dev
mailing list