-#ifndef _mips_EMITTER_H_
-#define _mips_EMITTER_H_
+/*
+ * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
+ */
+
+/**
+ * @file
+ * @brief declarations for the mips assembler emitter
+ * @author Matthias Braun, Mehdi
+ * @version $Id$
+ */
+#ifndef FIRM_BE_MIPS_MIPS_EMITTER_H
+#define FIRM_BE_MIPS_MIPS_EMITTER_H
-#include "irargs_t.h" // this also inlucdes <libcore/lc_print.h>
#include "irnode.h"
-#include "debug.h"
-#include "../bearch_t.h"
+#include "../bearch.h"
+#include "../beemitter.h"
#include "bearch_mips_t.h"
-typedef struct _mips_emit_env_t {
- FILE *out;
- const arch_env_t *arch_env;
- const mips_code_gen_t *cg;
- DEBUG_ONLY(firm_dbg_module_t *mod;)
-} mips_emit_env_t;
+void mips_emit_source_register(const ir_node *node, int pos);
+void mips_emit_dest_register(const ir_node *node, int pos);
+void mips_emit_source_register_or_immediate(const ir_node *node, int pos);
+void mips_emit_immediate(const ir_node *node);
+void mips_emit_immediate_suffix(const ir_node *node, int pos);
+void mips_emit_load_store_address(const ir_node *node, int pos);
+void mips_emit_jump_target(const ir_node *node);
+void mips_emit_jump_target_proj(const ir_node *node, long pn);
+void mips_emit_jump_or_fallthrough(const ir_node *node, long pn);
-const lc_arg_env_t *mips_get_arg_env(void);
-
-void equalize_dest_src(FILE *F, ir_node *n);
-
-int get_mips_reg_nr(ir_node *irn, int posi, int in_out);
-const char *get_mips_in_reg_name(ir_node *irn, int pos);
-
-void mips_gen_routine(FILE *F, ir_graph *irg, const mips_code_gen_t *cg);
void mips_register_emitters(void);
-ir_node *mips_get_jump_block(const ir_node* node, int projn);
+ir_node *mips_get_jump_block(const ir_node* node, long projn);
/** returns the label used for a block */
const char* mips_get_block_label(const ir_node* block);
/** returns the label for the jumptable */
const char* mips_get_jumptbl_label(const ir_node* switchjmp);
-#endif /* _mips_EMITTER_H_ */
+void mips_gen_routine(mips_code_gen_t *cg, ir_graph *irg);
+
+#endif