-const list_sched_selector_t normal_selector = {
- normal_init_graph,
- normal_init_block,
- normal_select,
- NULL, /* node_ready */
- NULL, /* node_selected */
- NULL, /* exectime */
- NULL, /* latency */
- NULL, /* finish_block */
- normal_finish_graph
-};
+static void sched_normal(ir_graph *irg)
+{
+ static const list_sched_selector_t normal_selector = {
+ normal_init_graph,
+ normal_init_block,
+ normal_select,
+ NULL, /* node_ready */
+ NULL, /* node_selected */
+ NULL, /* finish_block */
+ normal_finish_graph
+ };
+ be_list_sched_graph(irg, &normal_selector);
+}
+
+BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched_normal)
+void be_init_sched_normal(void)
+{
+ be_register_scheduler("normal", sched_normal);
+}