3 * File name: ir/ana/irloop_t.h
4 * Purpose: Loop datastructure and access functions -- private stuff.
5 * Author: Goetz Lindenmaier
9 * Copyright: (c) 2002-2003 Universität Karlsruhe
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
16 * @author Goetz Lindenmaier
21 #include "firm_common.h"
27 /** The loops datastructure. */
29 firm_kind kind; /**< A type tag, set to k_ir_loop. */
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" */
40 struct state_entry *mem_phis;
41 struct state_entry *states;
44 struct loop_node *link;
47 int loop_nr; /**< a unique node number for each loop node to make output
49 void *link; /**< GL @@@ For debuging the analyses. */
55 add_loop_son(ir_loop *loop, ir_loop *son);
58 add_loop_node(ir_loop *loop, ir_node *n);
60 #endif /* _IRLOOP_T_H_ */