Remove the unused parameter const arch_env_t *env from arch_irn_get_flags(), arch_irn...
[libfirm] / ir / be / bessadestrsimple.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       Simple SSA destruction.
23  * @author      Daniel Grund
24  * @date        17.01.2006
25  * @version     $Id$
26  */
27 #ifdef NOT_PORTED
28
29 #ifndef FIRM_BE_BESSADESTRSIMPLE_H
30 #define FIRM_BE_BESSADESTRSIMPLE_H
31
32 #include "set.h"
33 #include "pset.h"
34 #include "irgraph.h"
35 #include "irnode.h"
36
37 #include "bearch.h"
38
39 /**
40  * Insert copys to destruct SSA form and
41  * define variables (numbers) for all SSA-values.
42  * All values in a phi class get assigned the same variable name.
43  * The link field maps values to the var-name
44  *
45  * @return A set mapping SSA values to variables
46  */
47 set *be_ssa_destr_simple(ir_graph *irg, const arch_env_t *aenv);
48
49 void free_ssa_destr_simple(set *vars);
50
51 /**
52  * This struct maps a variable (nr) to the values belonging to this variable
53  */
54 typedef struct _be_var_info_t {
55         int var_nr;             /* the key */
56         pset *values;   /* the ssa-values belonging to this variable */
57 } be_var_info_t;
58
59 /**
60  * The link field of an irn points to the var_info struct
61  * representing the corresponding variable.
62  */
63 #define be_get_var_info(irn) ((be_var_info_t *)get_irn_link(irn))
64
65 #define SET_REMOVED -1
66
67 pset *be_get_var_values(set *vals, int var_nr);
68 be_var_info_t *be_var_add_value(set *vars, int var_nr, ir_node *irn);
69 be_var_info_t *be_var_find_or_insert(set *vars, int var_nr);
70 be_var_info_t *be_var_find(set *vars, int var_nr);
71
72 #endif /* FIRM_BE_BESSADESTRSIMPLE_H */
73
74 #endif /* NOT_PORTED */