[LLVMdev] Make LoopBase inherit from "RegionBase"?

Tobias Grosser grosser at fim.uni-passau.de
Fri Jan 22 01:49:29 PST 2010

On 01/21/10 20:42, Jan Sjodin wrote:
>>> Imo, a loop is simply a special kind of region, so a "filter" is perhaps the way to
>>> go if you are interested in loops. Regions containing loops will have to be inspected
>>> using the PST. 
>> Except loops that have multiple exits. they are not necessarily (single
>> entry single exit) region, if the exists do not jump to the same exit bb.
> Yes, my assumption was to classify structured loops, but that does not exclude unstructured
> regions that contain unstructured loops. 

Can you explain your definition of structured/unstructured loops/regions.

A structured loop does have just one exit?

Does a unstructured region have multiple exits, or it just contains
unstructured code?


More information about the llvm-dev mailing list