+ DBG((env.dbg, LEVEL_2, "====> IRG: %F\n", irg));
+ dump(DUMP_INITIAL, irg, "-begin", dump_ir_block_graph);
+
+ /* set the current graph (this is important for several firm functions) */
+ current_ir_graph = irg;
+
+ /* Get the code generator interface. */
+ cg_if = isa->impl->get_code_generator(isa);
+
+ /* get a code generator for this graph. */
+ cg = cg_if->init(file_handle, irg, env.arch_env);
+
+ /* create the code generator and generate code. */
+ prepare_graph(&env, irg);
+ arch_code_generator_prepare_graph(cg);
+
+ edges_deactivate(irg);
+ dead_node_elimination(irg);
+ edges_activate(irg);
+
+ dump(DUMP_PREPARED, irg, "-prepared", dump_ir_block_graph);