X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fia32%2Fia32_emitter.h;h=17b7ed7ad92d85c20a55b04105a1fa0e1d46b73e;hb=60e1f0141c1dffae0d779228addfa385c46748f5;hp=a029c3e27f9da3d246169d0477df98cfef25643e;hpb=d99b65fa3795ce6dd713b99c3aa031e2f349e98e;p=libfirm diff --git a/ir/be/ia32/ia32_emitter.h b/ir/be/ia32/ia32_emitter.h index a029c3e27..17b7ed7ad 100644 --- a/ir/be/ia32/ia32_emitter.h +++ b/ir/be/ia32/ia32_emitter.h @@ -1,16 +1,54 @@ -#ifndef _IA32_EMITTER_H_ -#define _IA32_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. + */ -#include "irnode.h" +/** + * @file + * @brief This file implements the ia32 node emitter. + * @author Christian Wuerdig, Matthias Braun + * @version $Id$ + */ +#ifndef FIRM_BE_IA32_IA32_EMITTER_H +#define FIRM_BE_IA32_IA32_EMITTER_H -const char *get_dest_reg_name(ir_node *n, int num); +#include "irnode.h" -const char *get_source_reg_name(ir_node *n, int num); +#include "../bearch.h" -char *node_const_to_str(ir_node *n); +#include "bearch_ia32_t.h" -char *node_offset_to_str(ir_node *n); +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 equalize_dest_src(FILE *F, ir_node *n); +void ia32_gen_routine(ia32_code_gen_t *cg, ir_graph *irg); -#endif /* _IA32_EMITTER_H_ */ +#endif