#include "irargs_t.h"
#include "../besched.h"
+#include "../beblocksched.h"
+#include "../beirg_t.h"
#include "arm_emitter.h"
#include "gen_arm_emitter.h"
return ++id;
}
-
-/**
- * Returns the target label for a control flow node.
- */
-static char *get_cfop_target(const ir_node *irn, char *buf) {
- ir_node *bl = get_irn_link(irn);
-
- snprintf(buf, SNPRINTF_BUF_LEN, "BLOCK_%ld", get_irn_node_nr(bl));
- return buf;
-}
-
/**
* Emit a SymConst
*/
ir_node **projs;
int n_projs;
int block_nr;
- int default_block_num;
+ int default_block_num = -1;
block_nr = get_irn_node_nr(irn);
n_projs = get_arm_n_projs(irn);
projs[get_Proj_proj(proj)] = proj;
}
+ assert(default_block_num >= 0);
// CMP %1S, n_projs - 1
// BHI default
arm_register_emitters();
/* create the block schedule. For now, we don't need it earlier. */
- blk_sched = sched_create_block_schedule(cg->irg, cg->birg->exec_freq);
+ blk_sched = be_create_block_schedule(cg->irg, cg->birg->exec_freq);
arm_emit_start(F, irg);
irg_block_walk_graph(irg, arm_gen_labels, NULL, &emit_env);