beuses: Remove stale start loop test.
[libfirm] / ir / be / arm / arm_emitter.h
1 /*
2  * Copyright (C) 1995-2008 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   declarations for arm emitter
23  * @author  Oliver Richter, Tobias Gneis
24  */
25 #ifndef FIRM_BE_ARM_ARM_EMITTER_H
26 #define FIRM_BE_ARM_ARM_EMITTER_H
27
28 #include "firm_types.h"
29 #include "set.h"
30 #include "irargs_t.h"
31 #include "debug.h"
32
33 #include "bearch.h"
34
35 #include "bearch_arm_t.h"
36
37 /**
38  * emit assembler instructions with format string. Automatically indents
39  * instructions and adds debug comments at the end (in verbose-asm mode).
40  * Format specifiers:
41  *
42  * fmt  parameter               output
43  * ---- ----------------------  ---------------------------------------------
44  * %%                           %
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)
58  */
59 void arm_emitf(const ir_node *node, const char *format, ...);
60
61 void arm_gen_routine(ir_graph *irg);
62
63 void arm_init_emitter(void);
64
65 #endif