X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeutil.h;h=5fbd6e38777331f55935b741d1bc5887124f3a79;hb=89dc24503c04139bb05504059b291d6d89f99661;hp=d25f2e4f9c797e8cae244e1a4a7faf7a30e6ab87;hpb=d1de7107f847963fbce099597e6c42c2371b053c;p=libfirm diff --git a/ir/be/beutil.h b/ir/be/beutil.h index d25f2e4f9..5fbd6e387 100644 --- a/ir/be/beutil.h +++ b/ir/be/beutil.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. * @@ -54,7 +54,12 @@ pset *be_empty_set(void); * @return The block of the node, or the node itself, if the node is a * block. */ -static INLINE const ir_node *get_block(const ir_node *irn) +static INLINE ir_node *get_block(ir_node *irn) +{ + return is_Block(irn) ? irn : get_nodes_block(irn); +} + +static INLINE const ir_node *get_block_const(const ir_node *irn) { return is_Block(irn) ? irn : get_nodes_block(irn); } @@ -136,13 +141,6 @@ unsigned get_num_reachable_nodes(ir_graph *irg); */ void be_kill_node(ir_node *irn); -/** - * Search for an irn in @p accept. - * The search is started at @p start_point_exclusive and continues upwards the dom-tree - * @return The first node out of accept if found. Else NULL is returned. - */ -ir_node *dom_up_search(pset *accept, ir_node *start_point_exclusive); - /** * Gets the Proj with number pn from irn. */