cf_loop.h 580 B

12345678910111213141516171819
  1. /* $Id$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. /* C O N T R O L F L O W
  7. *
  8. * L O O P D E T E C T I O N
  9. */
  10. void loop_detection(proc_p p);
  11. /* Detect all loops of procedure p.
  12. * Every basic block of p is assigned
  13. * a set of all loops it is part of.
  14. * For every loop we record the number
  15. * of blocks it contains, the loop entry
  16. * block and its nesting level (0 = outer
  17. * loop, 1 = loop within loop etc.).
  18. */