Changed void * into char * for offset calculations to make things portable
[libfirm] / ir / ana / irloop_t.h
1 /* Copyright (C) 2002 by Universitaet Karlsruhe
2 * All rights reserved.
3 *
4 * Authors: Goetz Lindenmaier
5 *
6 *  irloops_t.h:
7 */
8
9 /* $Id$ */
10
11 #include "firm_common.h"
12 #include "irloop.h"
13
14 #ifndef _IRLOOP_T_H_
15 #define _IRLOOP_T_H_
16
17 struct ir_loop {
18   firm_kind kind;                   /* A type tag, set to k_ir_loop. */
19
20   struct ir_loop *outer_loop;       /* The outer loop */
21   struct ir_loop **sons;            /* Inner loops */
22   struct ir_node **nodes;           /* Nodes in loop. */
23   int depth;                        /* Nesting depth */
24   /*
25   struct state_entry *mem_phis;
26   struct state_entry *states;
27
28   struct obset **oval;
29   struct loop_node *link;
30   */
31 };
32
33 static INLINE void
34 add_loop_son(ir_loop *loop, ir_loop *son);
35
36 static INLINE void
37 add_loop_node(ir_loop *loop, ir_node *n);
38
39 #endif /* _IRLOOP_T_H_ */