added missing function
[libfirm] / ir / be / TEMPLATE / bearch_TEMPLATE_t.h
1 #ifndef _BEARCH_TEMPLATE_T_H_
2 #define _BEARCH_TEMPLATE_T_H_
3
4 #include "debug.h"
5 #include "bearch_TEMPLATE.h"
6 #include "TEMPLATE_nodes_attr.h"
7
8
9 typedef struct _TEMPLATE_code_gen_t {
10         const arch_code_generator_if_t *impl;           /* implementation */
11         ir_graph                       *irg;            /* current irg */
12         FILE                           *out;            /* output file */
13         const arch_env_t               *arch_env;       /* the arch env */
14         set                            *reg_set;        /* set to memorize registers for FIRM nodes (e.g. phi) */
15         firm_dbg_module_t              *mod;            /* debugging module */
16         int                             emit_decls;     /* flag indicating if decls were already emitted */
17         int                             has_alloca;     /* indicates whether the irg contains an alloca or not */
18         const TEMPLATE_register_req_t **reg_param_req;  /* hold the requirements for the reg param nodes */
19 } TEMPLATE_code_gen_t;
20
21
22 typedef struct _TEMPLATE_isa_t {
23         const arch_isa_if_t *impl;
24         int                  num_codegens;
25 } TEMPLATE_isa_t;
26
27
28 typedef struct _TEMPLATE_irn_ops_t {
29         const arch_irn_ops_if_t *impl;
30         TEMPLATE_code_gen_t         *cg;
31 } TEMPLATE_irn_ops_t;
32
33
34 #endif /* _BEARCH_TEMPLATE_T_H_ */