Debian Codegraph @

lib/mlrisc-lib/MLRISC/SSA/ssa-scheduler.sml

raw
1 (*
2 * Global DAG Scheduling on the SSA graph.
3 *
4 * -- Allen ([email protected])
5 *)
6 functor SSAScheduler(SSA : SSA) : SSA_OPTIMIZATION =
7 struct
8 structure SSA = SSA
9 structure SP = SSA.SP
10 structure RTL = SSA.RTL
11 structure T = RTL.T
12 structure G = Graph
13 structure W8A = Word8Array
14 structure A = Array
15
16 type flowgraph = SSA.ssa
17
18 fun error msg = MLRiscErrorMsg.error("SSAScheduler",msg)
19
20 val name = "Global Scheduling"
21
22 fun run(SSA as G.GRAPH ssa) =
23 let val CFG as G.GRAPH cfg = SSA.cfg SSA
24 in SSA
25 end
26 end