- ir_node *(*select)(void *env, void *block_env,
- const struct list_head *sched_head,
- int curr_time, pset *ready_set);
+ ir_node *(*select)(void *block_env, ir_nodeset_t *ready_set,
+ ir_nodeset_t *live_set);
+
+ /**
+ * This function decides, if a node should appear in a schedule.
+ * @param block_env The block environment.
+ * @param irn The node.
+ * @return 1, if the node should be scheduled, 0 if not.
+ */
+ int (*to_appear_in_schedule)(void *block_env, const ir_node *irn);
+
+ /**
+ * This function gets executed after a node finally has been made ready.
+ * @param block_env The block environment.
+ * @param irn The node made ready.
+ * @param pred The previously scheduled node.
+ */
+ void (*node_ready)(void *block_env, ir_node *irn, ir_node *pred);
+
+ /**
+ * This function gets executed after a node finally has been selected.
+ * @param block_env The block environment.
+ * @param irn The selected node.
+ */
+ void (*node_selected)(void *block_env, ir_node *irn);
+
+ /**
+ * Returns the execution time of node irn.
+ */
+ unsigned (*exectime)(void *block_env, const ir_node *irn);
+
+ /**
+ * Calculates the latency of executing cycle curr_cycle of node curr in cycle pred_cycle
+ * of node pred.
+ *
+ * @param block_env The block environment.
+ * @param pred The previous node.
+ * @param pred_cycle The previous node execution cycle.
+ * @param curr The current node.
+ * @param curr_cycle The current node execution cycle.
+ */
+ unsigned (*latency)(void *block_env, const ir_node *pred, int pred_cycle, const ir_node *curr, int curr_cycle);