1 #ifndef _TEMPLATE_EMITTER_H_
2 #define _TEMPLATE_EMITTER_H_
4 #include "irargs_t.h" // this also inlucdes <libcore/lc_print.h>
10 #include "bearch_TEMPLATE_t.h"
12 typedef struct _TEMPLATE_emit_env_t {
14 const arch_env_t *arch_env;
15 const TEMPLATE_code_gen_t *cg;
16 DEBUG_ONLY(firm_dbg_module_t *mod;)
17 } TEMPLATE_emit_env_t;
19 const lc_arg_env_t *TEMPLATE_get_arg_env(void);
21 void equalize_dest_src(FILE *F, ir_node *n);
23 int get_TEMPLATE_reg_nr(ir_node *irn, int posi, int in_out);
24 const char *get_TEMPLATE_in_reg_name(ir_node *irn, int pos);
26 void TEMPLATE_gen_routine(FILE *F, ir_graph *irg, const TEMPLATE_code_gen_t *cg);
28 #endif /* _TEMPLATE_EMITTER_H_ */