/* * This file is part of libFirm. * Copyright (C) 2012 University of Karlsruhe. */ /** * @file * @brief declarations for emit functions */ #ifndef FIRM_BE_TEMPLATE_TEMPLATE_EMITTER_H #define FIRM_BE_TEMPLATE_TEMPLATE_EMITTER_H #include "firm_types.h" /** * emit assembler instructions with format string. Automatically indents * instructions and adds debug comments at the end (in verbose-asm mode). * Format specifiers: * * fmt parameter output * ---- ---------------------- --------------------------------------------- * %r const arch_register_t* register * %Sx source register x * %Dx destination register x * %O shifter operand * %I immediate */ void TEMPLATE_emitf(const ir_node *node, const char *format, ...); void TEMPLATE_emit_function(ir_graph *irg); #endif