From: Michael Beck Date: Tue, 6 May 2008 21:24:54 +0000 (+0000) Subject: - add ir_graph to loop element, preventing the ugly casting X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=8c5e0f92a1d453c8e0aeb621b518be17a0c80819;p=libfirm - add ir_graph to loop element, preventing the ugly casting [r19538] --- diff --git a/ir/ana/irloop_t.h b/ir/ana/irloop_t.h index 514fb16b8..20796c2e1 100644 --- a/ir/ana/irloop_t.h +++ b/ir/ana/irloop_t.h @@ -95,8 +95,11 @@ void add_loop_son(ir_loop *loop, ir_loop *son); /** Add a node to a loop. */ void add_loop_node(ir_loop *loop, ir_node *n); +/** Add an IR graph to a loop. */ +void add_loop_irg(ir_loop *loop, ir_node *n); + /** Sets the loop a node belonging to. */ -void set_irn_loop(ir_node *n, ir_loop *loop); +void set_irn_loop(ir_node *n, ir_graph *irg); /** * Mature all loops by removing the flexible arrays of a loop tree