[cfe-dev] Adding parallel for loop construct to clang
Chris Lattner
clattner at apple.com
Fri Apr 8 10:56:53 PDT 2011
On Apr 7, 2011, at 2:16 PM, jignesh vasoya wrote:
> Hi,
> I want clang to parse parallel_for loop construct.
> this loop has similar syntax like for loop
>
> parallel_for( init ; cond ; incr )
> {
> /*body*/
> }
>
> what are the file and structure i have to modify for parsing this kind of loop
> It will be similar like ForStmt class, how can I add ParallelForStmt class into
> existing clang framework
Hi Jignesh,
The best approach is to use ForStmt as an example. Just look at all the places that define and touch it.
-Chris
More information about the cfe-dev
mailing list