cleanups, use the new tarval emitter
[libfirm] / ir / be / ia32 / ia32_emitter.h
1 /*
2  * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
3  *
4  * This file is part of libFirm.
5  *
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.
10  *
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.
14  *
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
17  * PURPOSE.
18  */
19
20 /**
21  * @file
22  * @brief       This file implements the ia32 node emitter.
23  * @author      Christian Wuerdig, Matthias Braun
24  * @version     $Id$
25  */
26 #ifndef FIRM_BE_IA32_IA32_EMITTER_H
27 #define FIRM_BE_IA32_IA32_EMITTER_H
28
29 #include "irnode.h"
30
31 #include "../bearch.h"
32 #include "../beemitter.h"
33
34 #include "bearch_ia32_t.h"
35
36 typedef struct ia32_emit_env_t  ia32_emit_env_t;
37
38 struct ia32_emit_env_t {
39         be_emit_env_t         *emit;
40         const arch_env_t      *arch_env;
41         const ia32_code_gen_t *cg;
42         ia32_isa_t            *isa;
43 };
44
45 void ia32_emit_source_register(ia32_emit_env_t *env, const ir_node *node, int pos);
46 void ia32_emit_dest_register(ia32_emit_env_t *env, const ir_node *node, int pos);
47 void ia32_emit_x87_name(ia32_emit_env_t *env, const ir_node *node, int pos);
48 void ia32_emit_immediate(ia32_emit_env_t *env, const ir_node *node);
49 void ia32_emit_mode_suffix(ia32_emit_env_t *env, const ir_mode *mode);
50 void ia32_emit_x87_mode_suffix(ia32_emit_env_t *env, const ir_node *node);
51 void ia32_emit_xmm_mode_suffix(ia32_emit_env_t *env, const ir_node *node);
52 void ia32_emit_xmm_mode_suffix_s(ia32_emit_env_t *env, const ir_node *node);
53 void ia32_emit_extend_suffix(ia32_emit_env_t *env, const ir_mode *mode);
54 void ia32_emit_binop(ia32_emit_env_t *env, const ir_node *node);
55 void ia32_emit_unop(ia32_emit_env_t *env, const ir_node *node);
56 void ia32_emit_am(ia32_emit_env_t *env, const ir_node *node);
57 void ia32_emit_adr(ia32_emit_env_t *env, const ir_node *node);
58 void ia32_emit_x87_binop(ia32_emit_env_t *env, const ir_node *node);
59
60 void ia32_gen_routine(ia32_code_gen_t *cg, ir_graph *irg);
61
62 #endif /* FIRM_BE_IA32_IA32_EMITTER_H */