X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Firtools.h;h=fe85e0a447b595c52c9c1b56b2b4d7c64aa97162;hb=c64fe299008a45e1bd3b90656d357a77edbb79c9;hp=9c361b860fc9245ea68d8cc11d12cb7059166b7e;hpb=fad0a86ab076b11b239ad494e4525881757c4282;p=libfirm diff --git a/ir/common/irtools.h b/ir/common/irtools.h index 9c361b860..fe85e0a44 100644 --- a/ir/common/irtools.h +++ b/ir/common/irtools.h @@ -77,10 +77,23 @@ void firm_clear_link(ir_node *n, void *env); * The famous clear_link_and_block_lists() walker-function. * Sets all links fields of visited nodes to NULL. * Additionally, clear all Phi-lists of visited blocks. - * Do not implement it by yourself, use this one + * Do not implement it by yourself, use this one. */ void firm_clear_node_and_phi_links(ir_node *n, void *env); +/** + * Walker function, sets all phi list heads fields of visited Blocks + * to NULL. + * Use in conjunction with firm_collect_block_phis(). + */ +void firm_clear_block_phis(ir_node *node, void *env); + +/** + * Walker function, links all visited Phi nodes into its block links. + * Use in conjunction with firm_clear_block_phis(). + */ +void firm_collect_block_phis(ir_node *node, void *env); + /** * Creates an exact copy of a node with same inputs and attributes in the * same block.