2 * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
6 * This file may be distributed and/or modified under the terms of the
7 * GNU General Public License version 2 as published by the Free Software
8 * Foundation and appearing in the file LICENSE.GPL included in the
9 * packaging of this file.
11 * Licensees holding valid libFirm Professional Edition licenses may use
12 * this file in accordance with the libFirm Commercial License.
13 * Agreement provided with the Software.
15 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * @brief Algorithms for computing normal and iterated dominance frontiers
23 * @author Sebastian Hack, Daniel Grund
26 * Copyright: (c) Universitaet Karlsruhe
27 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
29 #ifndef _FIRM_BE_DOMFRONT_H_
30 #define _FIRM_BE_DOMFRONT_H_
32 #include "irnodeset.h"
35 * Forward type declaration.
37 typedef struct _be_dom_front_info_t be_dom_front_info_t;
40 * Compute the dominance frontiers for a given graph.
41 * @param irg The graphs.
42 * @return A pointer to the dominance frontier information.
44 be_dom_front_info_t *be_compute_dominance_frontiers(ir_graph *irg);
47 * Free some dominance frontier information.
48 * @param info Some dominance frontier information.
50 void be_free_dominance_frontiers(be_dom_front_info_t *info);
53 * Get the dominance frontier of a block.
54 * @param info A pointer to the dominance frontier information.
55 * @param block The block whose dominance frontier you want.
56 * @return A list containing the all blocks in the dominance frontier of @p block.
58 ir_node **be_get_dominance_frontier(const be_dom_front_info_t *info,