-static void allocate_extblk(ir_node *block, env_t *env) {
- ir_extblk *extblk = obstack_alloc(env->obst, sizeof(*extblk));
+static void allocate_extblk(ir_node *block, env_t *env)
+{
+ ir_extblk *extblk = OALLOC(env->obst, ir_extblk);
* Returns the number of block successors.
* we are interested only in 1, 2 and >2.
*/
* Returns the number of block successors.
* we are interested only in 1, 2 and >2.
*/
if (get_Block_extbb(prev) != sentinel)
break;
set_irn_link(prev, list);
if (get_Block_extbb(prev) != sentinel)
break;
set_irn_link(prev, list);
const ir_node *block = is_Block(node) ? node : get_nodes_block(node);
return get_Block_extbb(block);
}
/* Gets the visited counter of an extended block. */
const ir_node *block = is_Block(node) ? node : get_nodes_block(node);
return get_Block_extbb(block);
}
/* Gets the visited counter of an extended block. */
_set_extbb_visited(blk, visited);
}
/* Mark an extended block as visited in a graph. */
_set_extbb_visited(blk, visited);
}
/* Mark an extended block as visited in a graph. */
_set_extbb_link(blk, link);
}
/* Return the number of basic blocks of an extended block */
_set_extbb_link(blk, link);
}
/* Return the number of basic blocks of an extended block */
return _get_extbb_block(blk, pos);
}
/* Return the leader basis block of an extended block. */
return _get_extbb_block(blk, pos);
}
/* Return the leader basis block of an extended block. */
-static void irg_extblock_walk_2(ir_extblk *blk, extbb_walk_func *pre, extbb_walk_func *post, void *env) {
+static void irg_extblock_walk_2(ir_extblk *blk, extbb_walk_func *pre, extbb_walk_func *post, void *env)
+{
/* walks only over extended Block nodes in the graph. Has it's own visited
flag, so that it can be interleaved with the other walker. */
/* walks only over extended Block nodes in the graph. Has it's own visited
flag, so that it can be interleaved with the other walker. */
-void irg_extblock_walk(ir_extblk *blk, extbb_walk_func *pre, extbb_walk_func *post, void *env) {
+void irg_extblock_walk(ir_extblk *blk, extbb_walk_func *pre, extbb_walk_func *post, void *env)
+{
ir_node *pred, *start_bl = get_irg_start_block(current_ir_graph);
ir_extblk *start_blk = get_Block_extbb(start_bl);
int i;
ir_node *pred, *start_bl = get_irg_start_block(current_ir_graph);
ir_extblk *start_blk = get_Block_extbb(start_bl);
int i;
-void irg_extblock_walk_graph(ir_graph *irg, extbb_walk_func *pre, extbb_walk_func *post, void *env) {
+void irg_extblock_walk_graph(ir_graph *irg, extbb_walk_func *pre, extbb_walk_func *post, void *env)
+{
ir_node *endbl = get_irg_end_block(irg);
ir_extblk *blk = get_Block_extbb(endbl);
ir_graph *rem = current_ir_graph;
ir_node *endbl = get_irg_end_block(irg);
ir_extblk *blk = get_Block_extbb(endbl);
ir_graph *rem = current_ir_graph;