GIMPLE_OMP_FOR statements
Ian Lance Taylor
iant@google.com
Wed May 6 22:26:00 GMT 2009
Aravinda <aravindakidambi@gmail.com> writes:
> Then, is there any macro to know if a gimple statement is a FOR_STMT
> like FOR_COND, or FOR_EXPR thats available for the cparser ? Basically
> someway to know the lowered statements are within a for loop.
Since there are no for loops in GIMPLE, there is no way to tell whether
statements are part of a for loop.
During the loop optimizer passes you can determine whether a GIMPLE
instruction is part of a loop. However, at that point there is no
difference between a for loop or a while loop or for that matter a loop
constructed using if and goto statements.
Ian
More information about the Gcc-help
mailing list