[PATCH] [OPENMP] First changes for Parsing and Sema for 'omp simd' directive support
Alp Toker
alp at nuanti.com
Tue Feb 25 16:42:32 PST 2014
On 25/02/2014 23:51, Alp Toker wrote:
>
> On 18/02/2014 10:59, Dmitri Gribenko wrote:
>> I don't see any more obvious points for improvement, this patch
>> LGTM, but it would be great if someone else took a quick look as well.
>
> LGTM as an evolution of the existing code. I'm guessing
> OPENMP_SIMD_CLAUSE is stubbed because you intend to fill it out in
> subsequent patches?
>
> Longer term I think we should look to finding a better AST
> representation for OpenMP directives. There's an amount of do-nothing
> boilerplate going on here which could be handled automatically, say
> using synthesised AttributedStmts or folding the subclasses into a
> single Stmt node.
OK, Richard has provided a more in-depth review (which highlights the
pain of writing this manually, I think the transformation,
representation and serialization are a hassle to maintain for implicit
constructs.)
Alp.
>
> Alp.
>
>
>>
>>
>> ================
>> Comment at: test/OpenMP/simd_misc_messages.c:34
>> @@ +33,3 @@
>> + if (i == 5)
>> + goto L1; // expected-error {{use of undeclared label 'L1'}}
>> + else if (i == 6)
>> ----------------
>> The diagnostic here is not that great, unfortunately.
>>
>>
>> http://llvm-reviews.chandlerc.com/D2815
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
--
http://www.nuanti.com
the browser experts
More information about the cfe-commits
mailing list