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 arm emitter
23 * @author Oliver Richter, Tobias Gneis
25 #ifndef FIRM_BE_ARM_ARM_EMITTER_H
26 #define FIRM_BE_ARM_ARM_EMITTER_H
28 #include "firm_types.h"
35 #include "bearch_arm_t.h"
38 * emit assembler instructions with format string. Automatically indents
39 * instructions and adds debug comments at the end (in verbose-asm mode).
42 * fmt parameter output
43 * ---- ---------------------- ---------------------------------------------
45 * %r const arch_register_t* register
46 * %Sx <node> source register x
47 * %Dx <node> destination register x
48 * %O <node> shifter operand
49 * %I <node> symconst immediate
50 * %o <node> load/store offset
51 * %C const sym_or_tv_t* constant
52 * %t const ir_node* controlflow target
53 * %m ir_mode* fpa mode postfix
54 * %s const char* string
55 * %u unsigned int unsigned int
56 * %d signed int signed int
57 * %X signed int signed int (hexadecimal)
59 void arm_emitf(const ir_node *node, const char *format, ...);
61 void arm_gen_routine(ir_graph *irg);
63 void arm_init_emitter(void);