cleanup: Remove pointless assert(is_${NODE}(x)) just before get_${NODE}_${FOO}(x...
[libfirm] / ir / be / bechordal_common.h
1 /*
2  * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
3  *
4  * This file is part of libFirm.
5  *
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.
10  *
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.
14  *
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
17  * PURPOSE.
18  */
19
20 /**
21  * @file
22  * @brief       Common functions for chordal register allocation.
23  * @author      Sebastian Hack
24  * @date        08.12.2004
25  */
26
27 #ifndef BECHORDAL_COMMON_H_
28 #define BECHORDAL_COMMON_H_
29
30 #include "config.h"
31
32 #include "bechordal.h"
33 #include "beinsn_t.h"
34
35 /**
36  * Annotate the register pressure to the nodes and compute
37  * the liveness intervals.
38  * @param block The block to do it for.
39  * @param env_ptr The environment.
40  */
41 void create_borders(ir_node *block, void *env_ptr);
42
43 /**
44  * Insert perm nodes
45  * @param env The chordal environment.
46  * @param the_insn The current be_insn node.
47  * @return The new perm node.
48  */
49 ir_node *pre_process_constraints(be_chordal_env_t *_env, be_insn_t **the_insn);
50
51 #endif /* BECHORDAL_COMMON_H_ */