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 int depth; /**< Nesting depth */
34 int n_sons; /**< Number of ir_nodes in array "children" */
35 int n_nodes; /**< Number of loop_nodes in array "childern" */
38 struct state_entry *mem_phis;
39 struct state_entry *states;
42 struct loop_node *link;
45 int loop_nr; /**< a unique node number for each loop node to make output
47 void *link; /**< GL @@@ For debuging the analyses. */
53 add_loop_son(ir_loop *loop, ir_loop *son);
56 add_loop_node(ir_loop *loop, ir_node *n);
58 /* The following functions are needed in ircfloop.c */
59 void set_irn_loop (ir_node *n, ir_loop* loop);
60 #endif /* _IRLOOP_T_H_ */