-typedef struct _ia32_emit_env_t {
- FILE *out;
- const arch_env_t *arch_env;
- const ia32_code_gen_t *cg;
- ia32_isa_t *isa;
- DEBUG_ONLY(firm_dbg_module_t *mod;)
-} ia32_emit_env_t;
-
-const lc_arg_env_t *ia32_get_arg_env(void);
-
-const char *ia32_emit_binop(const ir_node *irn, ia32_emit_env_t *env);
-const char *ia32_emit_unop(const ir_node *irn, ia32_emit_env_t *env);
-const char *ia32_emit_am(const ir_node *irn, ia32_emit_env_t *env);
-const char *ia32_emit_adr(const ir_node *irn, ia32_emit_env_t *env);
-
-const char *ia32_emit_x87_binop(const ir_node *n, ia32_emit_env_t *env);
-
-int get_ia32_reg_nr(ir_node *irn, int posi, int in_out);
-const char *get_ia32_in_reg_name(ir_node *irn, int pos);
-
-void ia32_gen_routine(FILE *F, ir_graph *irg, const ia32_code_gen_t *cg);
-
-/**
- * Sections.
- */
-typedef enum section_t {
- NO_SECTION = -1, /**< no section selected yet. */
- SECTION_TEXT = 0, /**< text section */
- SECTION_DATA = 1, /**< data section */
- SECTION_RODATA = 2, /**< rodata section */
- SECTION_COMMON = 3, /**< common section */
- SECTION_MAX = 4
-} section_t;
-
-/**
- * Switch to a new section.
- */
-void ia32_switch_section(FILE *f, section_t sec);
-
-typedef enum asm_flavour_t {
- ASM_LINUX_GAS = 0, /**< Linux gas */
- ASM_MINGW_GAS = 1, /**< MinGW gas */
- ASM_MAX = 2
-} asm_flavour_t;
-
-extern asm_flavour_t asm_flavour;
-
-#endif /* _IA32_EMITTER_H_ */
+void ia32_emit_source_register(const ir_node *node, int pos);
+void ia32_emit_dest_register(const ir_node *node, int pos);
+void ia32_emit_8bit_dest_register(const ir_node *node, int pos);
+void ia32_emit_x87_register(const ir_node *node, int pos);
+void ia32_emit_source_register_or_immediate(const ir_node *node, int pos);
+void ia32_emit_8bit_source_register_or_immediate(const ir_node *node, int pos);
+void ia32_emit_mode_suffix(const ir_node *node);
+void ia32_emit_x87_mode_suffix(const ir_node *node);
+void ia32_emit_xmm_mode_suffix(const ir_node *node);
+void ia32_emit_xmm_mode_suffix_s(const ir_node *node);
+void ia32_emit_extend_suffix(const ir_mode *mode);
+void ia32_emit_cmp_suffix_node(const ir_node *node, int flags_pos);
+void ia32_emit_binop(const ir_node *node);
+void ia32_emit_unop(const ir_node *node, int pos);
+void ia32_emit_am(const ir_node *node);
+void ia32_emit_x87_binop(const ir_node *node);
+
+void ia32_gen_routine(ia32_code_gen_t *cg, ir_graph *irg);
+
+#endif