1 #ifndef _BEARCH_TEMPLATE_T_H_
2 #define _BEARCH_TEMPLATE_T_H_
5 #include "bearch_TEMPLATE.h"
6 #include "TEMPLATE_nodes_attr.h"
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;
22 typedef struct _TEMPLATE_isa_t {
23 const arch_isa_if_t *impl;
28 typedef struct _TEMPLATE_irn_ops_t {
29 const arch_irn_ops_if_t *impl;
30 TEMPLATE_code_gen_t *cg;
34 #endif /* _BEARCH_TEMPLATE_T_H_ */