[cfe-dev] Adding a new pragma to Clang
Andrey Bokhanko
andreybokhanko at gmail.com
Wed Feb 5 03:48:42 PST 2014
Renato, All,
As was already noted, a lot of the things you want to add overlap with "omp
simd" pragma -- which is a part of OpenMP 4.0 standard and already
implemented in clang (committed to clang-omp.github.com).
It is relatively independent from the rest of OpenMP, so we can commit its
implementation separately.
This might provide exactly the tool to control / verify vectorization that
you need -- one that is based on existing standards, supported by other
compilers.
What do you think?
Andrey
========
Software Engineer
Intel
On Mon, Jan 6, 2014 at 6:05 PM, Renato Golin <renato.golin at linaro.org>wrote:
> Hi Folks,
>
> I'm adding the pragma vectorize to Clang to print specific metadata on
> loops (later any lexical block), and I'm having some trouble identifying
> the steps.
>
> I've added my pragma to ParsePragma, then added a vectorizer context to
> Sema to temporarily hold these values to be used on the next lexical block
> (one at a time, recent replace old, style).
>
> But the only way I found to add this information into the AST was via
> traits, which doesn't look correct. Can anyone point me in the right
> direction?
>
> Who is the best person to review these changes?
>
> cheers,
> --renato
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140205/c8ff132c/attachment.html>
More information about the cfe-dev
mailing list