a0da603e1e279bcf32418edf0151fb3f50451d96
[libfirm] / ir / ana / irloop_t.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ana/irloop_t.h
4  * Purpose:     Loop datastructure and access functions -- private stuff.
5  * Author:      Goetz Lindenmaier
6  * Modified by:
7  * Created:     7.2002
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 2002-2003 Universität Karlsruhe
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12
13 /**
14 * @file irloop_t.h
15 *
16 * @author Goetz Lindenmaier
17 */
18
19 /* $Id$ */
20
21 #include "firm_common.h"
22 #include "irloop.h"
23
24 #ifndef _IRLOOP_T_H_
25 #define _IRLOOP_T_H_
26
27 /** The loops datastructure. */
28 struct ir_loop {
29   firm_kind kind;                   /**< A type tag, set to k_ir_loop. */
30
31   struct ir_loop *outer_loop;       /**< The outer loop */
32   loop_element   *children;         /**< Mixed array: Contains sons and loop_nodes */
33 /*  struct ir_loop **sons; */           /**< Inner loops */
34 /*  struct ir_node **nodes; */          /**< Nodes in loop. */
35   int depth;                        /**< Nesting depth */
36   int n_sons;                       /**< Number of ir_nodes in array "children" */
37   int n_nodes;                      /**< Number of loop_nodes in array "childern" */
38
39   /*
40   struct state_entry *mem_phis;
41   struct state_entry *states;
42
43   struct obset **oval;
44   struct loop_node *link;
45   */
46 #ifdef DEBUG_libfirm
47   int loop_nr;             /**< a unique node number for each loop node to make output
48                               readable. */
49   void *link;              /**< GL @@@ For debuging the analyses. */
50 #endif
51
52 };
53
54 static INLINE void
55 add_loop_son(ir_loop *loop, ir_loop *son);
56
57 static INLINE void
58 add_loop_node(ir_loop *loop, ir_node *n);
59
60 #endif /* _IRLOOP_T_H_ */