*/
void TEMPLATE_emit_node(TEMPLATE_emit_env_t *env, const ir_node *node) {
ir_op *op = get_irn_op(node);
- DEBUG_ONLY(firm_dbg_module_t *mod = env->mod;)
-
- DBG((mod, LEVEL_1, "emitting code for %+F\n", node));
if (op->ops.generic) {
emit_func_ptr func = (emit_func_ptr) op->ops.generic;
env.emit = &env.isa->emit;
env.arch_env = cg->arch_env;
env.cg = cg;
- FIRM_DBG_REGISTER(env.mod, "firm.be.TEMPLATE.emit");
/* register all emitter functions */
TEMPLATE_register_emitters();
#ifndef FIRM_BE_TEMPLATE_TEMPLATE_EMITTER_H
#define FIRM_BE_TEMPLATE_TEMPLATE_EMITTER_H
-#include "irargs_t.h" // this also inlucdes <libcore/lc_print.h>
+#include "irargs_t.h"
#include "irnode.h"
#include "debug.h"
const arch_env_t *arch_env;
const TEMPLATE_code_gen_t *cg;
TEMPLATE_isa_t *isa;
- DEBUG_ONLY(firm_dbg_module_t *mod;)
} TEMPLATE_emit_env_t;
void TEMPLATE_emit_source_register(TEMPLATE_emit_env_t *env, const ir_node *node, int pos);
#include "bitset.h"
#include "debug.h"
-#include "../bearch_t.h" /* the general register allocator interface */
+#include "../bearch_t.h"
#include "../benode_t.h"
#include "../belower.h"
#include "../besched_t.h"
#include "bearch_TEMPLATE_t.h"
-#include "TEMPLATE_new_nodes.h" /* TEMPLATE nodes interface */
-#include "gen_TEMPLATE_regalloc_if.h" /* the generated interface (register type and class defenitions) */
+#include "TEMPLATE_new_nodes.h"
+#include "gen_TEMPLATE_regalloc_if.h"
#include "TEMPLATE_transform.h"
#include "TEMPLATE_emitter.h"
#include "TEMPLATE_map_regs.h"
/* de-allocate code generator */
del_set(cg->reg_set);
- free(self);
+ free(cg);
}
static void *TEMPLATE_cg_init(be_irg_t *birg);