2 * This file is part of libFirm.
3 * Copyright (C) 2012 University of Karlsruhe.
8 * @brief declarations for emit functions
10 #ifndef FIRM_BE_TEMPLATE_TEMPLATE_EMITTER_H
11 #define FIRM_BE_TEMPLATE_TEMPLATE_EMITTER_H
18 #include "beemitter.h"
20 #include "bearch_TEMPLATE_t.h"
23 * emit assembler instructions with format string. Automatically indents
24 * instructions and adds debug comments at the end (in verbose-asm mode).
27 * fmt parameter output
28 * ---- ---------------------- ---------------------------------------------
30 * %r const arch_register_t* register
31 * %Sx <node> source register x
32 * %Dx <node> destination register x
33 * %O <node> shifter operand
35 * %L <node> target label
37 void TEMPLATE_emitf(const ir_node *node, const char *format, ...);
39 void TEMPLATE_emit_routine(ir_graph *irg);