2 * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
6 * This file may be distributed and/or modified under the terms of the
7 * GNU General Public License version 2 as published by the Free Software
8 * Foundation and appearing in the file LICENSE.GPL included in the
9 * packaging of this file.
11 * Licensees holding valid libFirm Professional Edition licenses may use
12 * this file in accordance with the libFirm Commercial License.
13 * Agreement provided with the Software.
15 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * @brief declarations for the mips assembler emitter
23 * @author Matthias Braun, Mehdi
26 #ifndef FIRM_BE_MIPS_MIPS_EMITTER_H
27 #define FIRM_BE_MIPS_MIPS_EMITTER_H
31 #include "../bearch.h"
32 #include "../beemitter.h"
34 #include "bearch_mips_t.h"
36 void mips_emit_source_register(const ir_node *node, int pos);
37 void mips_emit_dest_register(const ir_node *node, int pos);
38 void mips_emit_source_register_or_immediate(const ir_node *node, int pos);
39 void mips_emit_immediate(const ir_node *node);
40 void mips_emit_immediate_suffix(const ir_node *node, int pos);
41 void mips_emit_load_store_address(const ir_node *node, int pos);
42 void mips_emit_jump_target(const ir_node *node);
43 void mips_emit_jump_target_proj(const ir_node *node, long pn);
44 void mips_emit_jump_or_fallthrough(const ir_node *node, long pn);
46 void mips_register_emitters(void);
47 ir_node *mips_get_jump_block(const ir_node* node, long projn);
49 /** returns the label used for a block */
50 const char* mips_get_block_label(const ir_node* block);
51 /** returns the label for the jumptable */
52 const char* mips_get_jumptbl_label(const ir_node* switchjmp);
54 void mips_gen_routine(mips_code_gen_t *cg, ir_graph *irg);