1 #ifndef _TEMPLATE_EMITTER_H_
2 #define _TEMPLATE_EMITTER_H_
4 #include "irargs_t.h" // this also inlucdes <libcore/lc_print.h>
8 #include "../bearch_t.h"
9 #include "../beemitter.h"
11 #include "bearch_TEMPLATE_t.h"
13 typedef struct _TEMPLATE_emit_env_t {
15 const arch_env_t *arch_env;
16 const TEMPLATE_code_gen_t *cg;
18 DEBUG_ONLY(firm_dbg_module_t *mod;)
19 } TEMPLATE_emit_env_t;
21 void TEMPLATE_emit_source_register(TEMPLATE_emit_env_t *env, const ir_node *node, int pos);
22 void TEMPLATE_emit_dest_register(TEMPLATE_emit_env_t *env, const ir_node *node, int pos);
23 void TEMPLATE_emit_immediate(TEMPLATE_emit_env_t *env, const ir_node *node);
25 int get_TEMPLATE_reg_nr(ir_node *irn, int posi, int in_out);
26 const char *get_TEMPLATE_in_reg_name(ir_node *irn, int pos);
28 void TEMPLATE_gen_routine(const TEMPLATE_code_gen_t *cg, ir_graph *irg);
30 #endif /* _TEMPLATE_EMITTER_H_ */