backend: put ignore regs into beirg
[libfirm] / ir / ir / irgwalk_blk.c
index 41201dc..3779bec 100644 (file)
@@ -41,7 +41,7 @@
 /**
  * Metadata for block walker
  */
-typedef struct _blk_collect_data_t {
+typedef struct blk_collect_data_t {
        struct obstack obst;            /**< obstack to allocate objects on */
        pset           *blk_map;        /**< Hash map: Block -> List */
        ir_node        **blk_list;      /**< the Block list */
@@ -51,7 +51,7 @@ typedef struct _blk_collect_data_t {
 /**
  * An entry for a block in the blk_map
  */
-typedef struct _block_entry_t {
+typedef struct block_entry_t {
        ir_node *block;       /**< the block */
        ir_node **phi_list;   /**< the list of Phi instruction */
        ir_node **df_list;    /**< the list of data flow instruction */
@@ -267,11 +267,11 @@ static void traverse_dom_blocks_top_down(blk_collect_data_t* blks, irg_walk_func
        ctx.env  = env;
 
        if (pre != NULL && post != NULL)
-               dom_tree_walk_irg(current_ir_graph,     dom_block_visit_both, NULL, &ctx);
+               dom_tree_walk_irg(current_ir_graph, dom_block_visit_both, NULL, &ctx);
        else if (pre != NULL)
-               dom_tree_walk_irg(current_ir_graph,     dom_block_visit_pre, NULL, &ctx);
+               dom_tree_walk_irg(current_ir_graph, dom_block_visit_pre, NULL, &ctx);
        else if (post != NULL)
-               dom_tree_walk_irg(current_ir_graph,     dom_block_visit_post, NULL, &ctx);
+               dom_tree_walk_irg(current_ir_graph, dom_block_visit_post, NULL, &ctx);
 }
 
 /**
@@ -285,7 +285,7 @@ static void collect_walk(ir_node *node, blk_collect_data_t *env)
 
        mark_irn_visited(node);
 
-       if (node->op == op_Block) {
+       if (is_Block(node)) {
                /* predecessors of a block are control flow nodes */
                for (i = _get_walk_arity(env, node) - 1; i >= 0; --i) {
                        ir_node *pred = _get_walk_irn_n(env, node, i);