static char _mark;
#define MARK &_mark
-typedef struct _trace_irn {
+typedef struct trace_irn {
sched_timestep_t delay; /**< The delay for this node if already calculated, else 0. */
sched_timestep_t etime; /**< The earliest time of this node. */
unsigned num_user; /**< The number real users (mode datab) of this node */
unsigned is_root : 1; /**< is a root node of a block */
} trace_irn_t;
-typedef struct _trace_env {
+typedef struct trace_env {
trace_irn_t *sched_info; /**< trace scheduling information about the nodes */
sched_timestep_t curr_time; /**< current time of the scheduler */
void *selector_env; /**< the backend selector environment */
foreach_out_edge(block, edge) {
ir_node *succ = get_edge_src_irn(edge);
- if (is_Block(succ)) {
- /* A Block-Block edge. This should be the MacroBlock
- * edge, ignore it. */
- assert(get_Block_MacroBlock(succ) == block && "Block-Block edge found");
- continue;
- }
if (is_Anchor(succ)) {
/* ignore a keep alive edge */
continue;
/**
* Allocates memory and initializes trace scheduling environment.
- * @param birg The backend irg object
+ * @param irg The backend irg object
* @return The environment
*/
-static trace_env_t *trace_init(const be_irg_t *birg)
+static trace_env_t *trace_init(ir_graph *irg)
{
trace_env_t *env = XMALLOCZ(trace_env_t);
- ir_graph *irg = be_get_birg_irg(birg);
int nn = get_irg_last_idx(irg);
env->curr_time = 0;
return irn;
}
-static void *muchnik_init_graph(const list_sched_selector_t *vtab, const be_irg_t *birg)
+static void *muchnik_init_graph(const list_sched_selector_t *vtab, ir_graph *irg)
{
- trace_env_t *env = trace_init(birg);
+ trace_env_t *env = trace_init(irg);
env->selector = vtab;
- env->selector_env = (void*) be_get_irg_arch_env(birg->irg);
+ env->selector_env = (void*) be_get_irg_arch_env(irg);
return (void *)env;
}
muchnik_init_graph,
muchnik_init_block,
muchnik_select,
- NULL, /* to_appear_in_schedule */
trace_node_ready, /* node_ready */
trace_update_time, /* node_selected */
NULL, /* exectime */
muchnik_init_graph,
muchnik_init_block,
heuristic_select,
- NULL, /* to_appear_in_schedule */
trace_node_ready, /* node_ready */
trace_update_time, /* node_selected */
NULL, /* exectime */