2 * This file is part of libFirm.
3 * Copyright (C) 2012 University of Karlsruhe.
8 * @brief This file implements the ia32 node emitter.
9 * @author Christian Wuerdig, Matthias Braun
11 #ifndef FIRM_BE_IA32_IA32_EMITTER_H
12 #define FIRM_BE_IA32_IA32_EMITTER_H
18 #include "bearch_ia32_t.h"
21 * fmt parameter output
22 * ---- ---------------------- ---------------------------------------------
24 * %AF <node> address mode or x87 register
25 * %AM <node> address mode of the node
26 * %AR arch_register_t const* address mode of the node or register
27 * %ASx <node> address mode of the node or source register x
28 * %B <node> operands for binary operation
29 * %Dx <node> destination register x
30 * %Fx <node> x87 register x
31 * %FM <node> x87 mode suffix
32 * %FX <node> SSE mode suffix
33 * %I <node> immediate of the node
34 * %L <node> control flow target of the node
35 * %M <node> mode suffix of the node
36 * %Px <node> condition code
37 * %PX int condition code
38 * %R arch_register_t const* register
39 * %Sx <node> source register x
40 * %s char const* string
41 * %u unsigned int unsigned int
42 * %d signed int signed int
45 * # modifier for %ASx, %D, %R, and %S uses ls mode of node to alter register width
46 * # modifier for %M for extend suffix
47 * * modifier does not prefix immediates with $, but AM with *
48 * l modifier for %lu and %ld
49 * > modifier to output high 8bit register (ah, bh)
50 * < modifier to output low 8bit register (al, bl)
52 void ia32_emitf(ir_node const *node, char const *fmt, ...);
54 void ia32_gen_routine(ir_graph *irg);
55 void ia32_gen_binary_routine(ir_graph *irg);
57 /** Initializes the Emitter. */
58 void ia32_init_emitter(void);