Re: GIMPLE_OMP_FOR statements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim Prince <TimothyPrince@xxxxxxxxxxxxx> writes:

> Aravinda wrote:
>
>> Since I dont know what OMP stands for, I was wondering if
>> 'GIMPLE_OMP_FOR' statements represent the 'for loop' statements ?
>> Also, can someone please tell me which is the latest pass where I will
>> be able to notice the GIMPLE_OMP_FOR statements ?
>
> OMP stands for OpenMP, the widely used standard parallelization directives
> for C, C++, and Fortran, implemented as libgomp for gcc.   So, OMP_FOR
> would be an OpenMP parallel for loop.

To answer the other half of your question, in C/C++ for loops are not
represented in GIMPLE at all.  The C parser converts them directly into
goto statements.  The C++ parser generates FOR_STMT nodes in the
frontend, and converts them to goto statements when converting to
GIMPLE.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux