not needed
[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  * Header file for ia32 emitter, containing some function definitions and types.
22  * @author Christian Wuerdig, Matthias Braun
23  * $Id$
24  */
25 #ifndef _IA32_EMITTER_H_
26 #define _IA32_EMITTER_H_
27
28 #include "irargs_t.h"
29 #include "irnode.h"
30 #include "debug.h"
31
32 #include "../bearch_t.h"
33 #include "../beemitter.h"
34
35 #include "bearch_ia32_t.h"
36
37 typedef struct ia32_emit_env_t {
38         be_emit_env_t         *emit;
39         const arch_env_t      *arch_env;
40         const ia32_code_gen_t *cg;
41         ia32_isa_t            *isa;
42 } ia32_emit_env_t;
43
44 void ia32_emit_source_register(ia32_emit_env_t *env, const ir_node *node, int pos);
45 void ia32_emit_dest_register(ia32_emit_env_t *env, const ir_node *node, int pos);
46 void ia32_emit_x87_name(ia32_emit_env_t *env, const ir_node *node, int pos);
47 void ia32_emit_immediate(ia32_emit_env_t *env, const ir_node *node);
48 void ia32_emit_mode_suffix(ia32_emit_env_t *env, const ir_mode *mode);
49 void ia32_emit_x87_mode_suffix(ia32_emit_env_t *env, const ir_node *node);
50 void ia32_emit_xmm_mode_suffix(ia32_emit_env_t *env, const ir_node *node);
51 void ia32_emit_xmm_mode_suffix_s(ia32_emit_env_t *env, const ir_node *node);
52 void ia32_emit_extend_suffix(ia32_emit_env_t *env, const ir_mode *mode);
53 void ia32_emit_binop(ia32_emit_env_t *env, const ir_node *node);
54 void ia32_emit_unop(ia32_emit_env_t *env, const ir_node *node);
55 void ia32_emit_am(ia32_emit_env_t *env, const ir_node *node);
56 void ia32_emit_adr(ia32_emit_env_t *env, const ir_node *node);
57 void ia32_emit_x87_binop(ia32_emit_env_t *env, const ir_node *node);
58
59 void ia32_gen_routine(ia32_code_gen_t *cg, ir_graph *irg);
60
61 #endif /* _IA32_EMITTER_H_ */