X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firgmod.h;h=75a3737023095ca7a34e7c5dbcf175398e329210;hb=1833cfd9062cd48bd72d95b5e43a08b3acb4e20b;hp=cf5cac6351653a8fe16cfb1dee1d3add2e9a8e0e;hpb=1ec30d95387eb392ba5a1adc7958ebd91383d59c;p=libfirm diff --git a/include/libfirm/irgmod.h b/include/libfirm/irgmod.h index cf5cac635..75a373702 100644 --- a/include/libfirm/irgmod.h +++ b/include/libfirm/irgmod.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -45,8 +45,8 @@ void exchange(ir_node *old, ir_node *nw); */ void turn_into_tuple(ir_node *node, int arity); -/** Walks over the passed ir graph and collects all Phi nodes as a - * list built with the link field in their corresponding block. +/** Walks over the passed IR graph and collects all Phi nodes as a + * list in their corresponding block (using get_Block_phis() API). * Further it collects all Proj nodes in a list of the node producing * the tuple. In case of nested tuples the Projs are collected in the * node producing the outermost Tuple. @@ -61,9 +61,9 @@ void collect_phiprojs(ir_graph *irg); * (old_block) of node. Moves node and its predecessors from old_block to * new_block. Moves all Projs that depend on moved nodes and are in old_block * to new_block. Moves all Phi nodes from old_block to new_block. To achieve - * this the routine assumes that all Phi nodes are in a list (using the link - * field) in the link field of old_block. Further it assumes that all Proj nodes - * are accessible by the link field of the nodes producing the Tuple. This + * this the routine assumes that all Phi nodes are in the Phi list (see get_Block_phis()) + * of old_block. Further it assumes that all Proj nodes are accessible by the link field + * of the nodes producing the Tuple. This * can be established by collect_phiprojs(). part_block conserves this property. * Adds a Jmp node to new_block that jumps to old_block. * Assumes that node is contained in current_ir_graph. Sets current_block in @@ -73,4 +73,10 @@ void collect_phiprojs(ir_graph *irg); */ void part_block(ir_node *node); +/** + * Kill a node by setting its predecessors to Bad and finally + * exchange the node by Bad itself. + */ +void kill_node(ir_node *node); + #endif /* FIRM_IR_IRGMOD_H */