removed unused header
[libfirm] / ir / be / ppc32 / bearch_ppc32_t.h
1 /*
2  * Copyright (C) 1995-2007 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 #ifndef _BEARCH_PPC32_T_H_
21 #define _BEARCH_PPC32_T_H_
22
23 #include "debug.h"
24 #include "bearch_ppc32.h"
25 #include "ppc32_nodes_attr.h"
26 #include "../be.h"
27 #include "set.h"
28
29 typedef struct _ppc32_isa_t ppc32_isa_t;
30
31 typedef struct _ppc32_code_gen_t {
32         const arch_code_generator_if_t *impl;             /**< implementation */
33         ir_graph                       *irg;              /**< current irg */
34         const arch_env_t               *arch_env;         /**< the arch env */
35         set                            *reg_set;          /**< set to memorize registers for FIRM nodes (e.g. phi) */
36         int                             emit_decls;       /**< flag indicating if decls were already emitted */
37         ppc32_isa_t                    *isa;              /**< the isa instance */
38         const be_irg_t                 *birg;             /**< The be-irg (contains additional information about the irg) */
39         unsigned                        area_size;        /**< size of call area for the current irg */
40         ir_entity                      *area;             /**< the entity representing the call area or NULL for leaf functions */
41         ir_node                        *start_succ_block; /**< the block succeeding the start block in the cfg */
42         ir_node                        **blk_sched;       /**< an array containing the scheduled blocks */
43         DEBUG_ONLY(firm_dbg_module_t    *mod;)             /**< debugging module */
44 } ppc32_code_gen_t;
45
46
47 struct _ppc32_isa_t {
48         const arch_isa_if_t   *impl;
49         const arch_register_t *sp;            /**< The stack pointer register. */
50         const arch_register_t *bp;            /**< The base pointer register. */
51         const int              stack_dir;     /**< -1 for decreasing, 1 for increasing. */
52         int                    num_codegens;
53         FILE                   *out;          /**< output file */
54 };
55
56
57 typedef struct _ppc32_irn_ops_t {
58         const arch_irn_ops_if_t *impl;
59         ppc32_code_gen_t     *cg;
60 } ppc32_irn_ops_t;
61
62
63 /** this is a struct to minimize the number of parameters
64    for transformation walker */
65 typedef struct _ppc32_transform_env_t {
66         dbg_info          *dbg;      /**< The node debug info */
67         ir_graph          *irg;      /**< The irg, the node should be created in */
68         ir_node           *block;    /**< The block, the node should belong to */
69         ir_node           *irn;      /**< The irn, to be transformed */
70         ir_mode           *mode;     /**< The mode of the irn */
71         DEBUG_ONLY(firm_dbg_module_t *mod;) /**< The firm debugger */
72 } ppc32_transform_env_t;
73
74
75 #endif /* _BEARCH_PPC32_T_H_ */