- Split bearch.h correctly into bearch.h and bearch_t.h
[libfirm] / ir / be / mips / mips_emitter.h
1 #ifndef _mips_EMITTER_H_
2 #define _mips_EMITTER_H_
3
4 #include "irargs_t.h"  // this also inlucdes <libcore/lc_print.h>
5 #include "irnode.h"
6 #include "debug.h"
7
8 #include "../bearch_t.h"
9
10 #include "bearch_mips_t.h"
11
12 typedef struct _mips_emit_env_t {
13         FILE                      *out;
14         const arch_env_t          *arch_env;
15         const mips_code_gen_t *cg;
16         DEBUG_ONLY(firm_dbg_module_t *mod;)
17 } mips_emit_env_t;
18
19 const lc_arg_env_t *mips_get_arg_env(void);
20
21 void equalize_dest_src(FILE *F, ir_node *n);
22
23 int get_mips_reg_nr(ir_node *irn, int posi, int in_out);
24 const char *get_mips_in_reg_name(ir_node *irn, int pos);
25
26 void mips_gen_routine(FILE *F, ir_graph *irg, const mips_code_gen_t *cg);
27 void mips_register_emitters(void);
28 ir_node *mips_get_jump_block(const ir_node* node, int projn);
29
30 /** returns the label used for a block */
31 const char* mips_get_block_label(const ir_node* block);
32 /** returns the label for the jumptable */
33 const char* mips_get_jumptbl_label(const ir_node* switchjmp);
34
35 #endif /* _mips_EMITTER_H_ */