becopyilp: Do not advertise the switch to dump the solution, because this is not...
[libfirm] / ir / be / TEMPLATE / TEMPLATE_emitter.h
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5
6 /**
7  * @file
8  * @brief    declarations for emit functions
9  */
10 #ifndef FIRM_BE_TEMPLATE_TEMPLATE_EMITTER_H
11 #define FIRM_BE_TEMPLATE_TEMPLATE_EMITTER_H
12
13 #include "irargs_t.h"
14 #include "irnode.h"
15 #include "debug.h"
16
17 #include "bearch.h"
18 #include "beemitter.h"
19
20 #include "bearch_TEMPLATE_t.h"
21
22 /**
23  * emit assembler instructions with format string. Automatically indents
24  * instructions and adds debug comments at the end (in verbose-asm mode).
25  * Format specifiers:
26  *
27  * fmt  parameter               output
28  * ---- ----------------------  ---------------------------------------------
29  * %%                           %
30  * %r   const arch_register_t*  register
31  * %Sx  <node>                  source register x
32  * %Dx  <node>                  destination register x
33  * %O   <node>                  shifter operand
34  * %I   <node>                  immediate
35  * %L   <node>                  target label
36  */
37 void TEMPLATE_emitf(const ir_node *node, const char *format, ...);
38
39 void TEMPLATE_emit_routine(ir_graph *irg);
40
41 #endif