| 1 |
(* |
| 2 |
* A customizable list scheduler that works on a region at a time. |
| 3 |
* A region is a subset of the control flow graph. |
| 4 |
* |
| 5 |
* -- Allen |
| 6 |
*) |
| 7 |
signature LIST_SCHEDULER = |
| 8 |
sig |
| 9 |
|
| 10 |
structure I : INSTRUCTIONS |
| 11 |
structure IR : MLRISC_IR |
| 12 |
structure DDG : SCHEDULER_DDG |
| 13 |
structure CFG : CONTROL_FLOW_GRAPH |
| 14 |
sharing DDG.I = IR.I = I |
| 15 |
sharing IR.CFG = CFG |
| 16 |
|
| 17 |
val listScheduler : |
| 18 |
{ cpu_info : DDG.SchedProps.cpu_info, |
| 19 |
blockIdTbl : int Array.array, |
| 20 |
ranking : DDG.node Graph.node * DDG.node Graph.node -> bool, |
| 21 |
cfg : CFG.cfg, (* the entire program! *) |
| 22 |
region : CFG.cfg, (* current region *) |
| 23 |
ddg : (DDG.node, DDG.edge) DDG.ddg |
| 24 |
} -> unit |
| 25 |
|
| 26 |
end |