removed unnecessary tabs
[libfirm] / ir / be / ppc32 / bearch_ppc32_t.h
1 #ifndef _BEARCH_PPC32_T_H_
2 #define _BEARCH_PPC32_T_H_
3
4 #include "debug.h"
5 #include "bearch_ppc32.h"
6 #include "ppc32_nodes_attr.h"
7 #include "../be.h"
8 #include "set.h"
9
10 typedef struct _ppc32_isa_t ppc32_isa_t;
11
12 typedef struct _ppc32_code_gen_t {
13         const arch_code_generator_if_t *impl;             /**< implementation */
14         ir_graph                       *irg;              /**< current irg */
15         const arch_env_t               *arch_env;         /**< the arch env */
16         set                            *reg_set;          /**< set to memorize registers for FIRM nodes (e.g. phi) */
17         int                             emit_decls;       /**< flag indicating if decls were already emitted */
18         ppc32_isa_t                    *isa;              /**< the isa instance */
19         const be_irg_t                 *birg;             /**< The be-irg (contains additional information about the irg) */
20         unsigned                        area_size;        /**< size of call area for the current irg */
21         entity                         *area;             /**< the entity representing the call area or NULL for leaf functions */
22         ir_node                        *start_succ_block; /**< the block succeeding the start block in the cfg */
23         ir_node                        **blk_sched;       /**< an array containing the scheduled blocks */
24         DEBUG_ONLY(firm_dbg_module_t    *mod;)             /**< debugging module */
25 } ppc32_code_gen_t;
26
27
28 struct _ppc32_isa_t {
29         const arch_isa_if_t   *impl;
30         const arch_register_t *sp;            /**< The stack pointer register. */
31         const arch_register_t *bp;            /**< The base pointer register. */
32         const int              stack_dir;     /**< -1 for decreasing, 1 for increasing. */
33         int                    num_codegens;
34         FILE                   *out;          /**< output file */
35 };
36
37
38 typedef struct _ppc32_irn_ops_t {
39         const arch_irn_ops_if_t *impl;
40         ppc32_code_gen_t     *cg;
41 } ppc32_irn_ops_t;
42
43
44 /** this is a struct to minimize the number of parameters
45    for transformation walker */
46 typedef struct _ppc32_transform_env_t {
47         dbg_info          *dbg;      /**< The node debug info */
48         ir_graph          *irg;      /**< The irg, the node should be created in */
49         ir_node           *block;    /**< The block, the node should belong to */
50         ir_node           *irn;      /**< The irn, to be transformed */
51         ir_mode           *mode;     /**< The mode of the irn */
52         DEBUG_ONLY(firm_dbg_module_t *mod;) /**< The firm debugger */
53 } ppc32_transform_env_t;
54
55
56 #endif /* _BEARCH_PPC32_T_H_ */