adapted to interface changes
[libfirm] / ir / be / ia32 / bearch_ia32_t.h
1 #ifndef _BEARCH_IA32_T_H_
2 #define _BEARCH_IA32_T_H_
3
4 #include "debug.h"
5 #include "bearch_ia32.h"
6 #include "ia32_nodes_attr.h"
7
8 typedef struct _ia32_code_gen_t {
9         const arch_code_generator_if_t *impl;          /**< implementation */
10         ir_graph                       *irg;           /**< current irg */
11         FILE                           *out;           /**< output file */
12         const arch_env_t               *arch_env;      /**< the arch env */
13         set                            *reg_set;       /**< set to memorize registers for non-ia32 nodes (e.g. phi nodes) */
14         firm_dbg_module_t              *mod;           /**< debugging module */
15         int                             emit_decls;    /**< flag indicating if decls were already emitted */
16         int                             has_alloca;    /**< indicates whether the irg contains an alloca or not */
17         const ia32_register_req_t     **reg_param_req; /**< hold the requirements for the reg param nodes */
18         pmap                           *types;         /**< A map of modes to primitive types */
19         pmap                           *tv_ent;        /**< A map of entities that store tarvals */
20 } ia32_code_gen_t;
21
22 typedef struct _ia32_isa_t {
23         const arch_isa_if_t *impl;
24         int                  num_codegens;
25         set                 *reg_projnum_map;
26 } ia32_isa_t;
27
28 typedef struct _ia32_irn_ops_t {
29         const arch_irn_ops_if_t *impl;
30         ia32_code_gen_t         *cg;
31 } ia32_irn_ops_t;
32
33 /* this is a struct to minimize the number of parameters
34    for transformation walker */
35 typedef struct _ia32_transform_env_t {
36         const arch_env_t  *arch_env;   /**< The arch_env */
37         firm_dbg_module_t *mod;        /**< The firm debugger */
38         dbg_info          *dbg;        /**< The node debug info */
39         ir_graph          *irg;        /**< The irg, the node should be created in */
40         ir_node           *block;      /**< The block, the node should belong to */
41         ir_node           *irn;        /**< The irn, to be transformed */
42         ir_mode           *mode;       /**< The mode of the irn */
43         ia32_code_gen_t   *cg;         /**< The code generator */
44 } ia32_transform_env_t;
45
46 #endif /* _BEARCH_IA32_T_H_ */