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