X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firgmod.h;h=038dd13ed0b4e40471b0db8e89cb8d5a26ff3b2d;hb=8c9aa24a1f17891325986165a58434cf75f96f6d;hp=afa4d50490d018f99d815576abf51459e6038fd9;hpb=43aca1df83b9862e00da7d604c09521a0aabe770;p=libfirm diff --git a/include/libfirm/irgmod.h b/include/libfirm/irgmod.h index afa4d5049..038dd13ed 100644 --- a/include/libfirm/irgmod.h +++ b/include/libfirm/irgmod.h @@ -21,7 +21,6 @@ * @file * @brief Support for ir graph modification. * @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier - * @version $Id$ */ #ifndef FIRM_IR_IRGMOD_H #define FIRM_IR_IRGMOD_H @@ -78,8 +77,15 @@ FIRM_API void collect_phiprojs(ir_graph *irg); FIRM_API void part_block(ir_node *node); /** - * Kill a node by setting its predecessors to Bad and finally - * exchange the node by Bad itself. + * Same as part_block() but works with out-edges so you don't have to call + * collect_phiprojs. + * This variant also removes all predecessors of the old block and returns + * it. You are responsible to add control flow predecessors to it. + */ +FIRM_API ir_node *part_block_edges(ir_node *node); + +/** + * Kill a node. No other node may have this node as operand. */ FIRM_API void kill_node(ir_node *node);