2 * A little printf understanding some firm types.
3 * @author Sebastian Hack
13 * A string formatting routine for ir nodes.
14 * This function rudimentarily implements a kind of printf(3) for ir
15 * nodes. Following conversion specifiers. No length, special or field
16 * width specifiers are accepted.
19 * - %n A full description of a node.
20 * - %o The opcode name of an ir node.
21 * - %m The mode name of an ir mode.
22 * - %N The node number of an ir node.
23 * - %b The block node number of the nodes block.
26 * @param fmt The format string.
28 void ir_printf(const char *fmt, ...);
33 void ir_fprintf(FILE *f, const char *fmt, ...);
38 void ir_snprintf(char *buf, size_t n, const char *fmt, ...);
42 #define ir_debugf ir_printf
43 #define ir_fdebugf ir_fprintf
44 #define ir_sndebugf ir_snprintf
48 static INLINE void ir_debugf(const char *fmt, ...)
52 static INLINE void ir_fdebugf(FILE *, const char *fmt, ...)
56 static INLINE void ir_sndebugf(char *buf, size_t n, const char *fmt, ...)