Debian Codegraph @

lib/mlrisc-lib/MLRISC/ra/ra-spillheur.sig

raw
1 (*
2 * Spill heuristics should match the following signature.
3 *)
4 signature RA_SPILL_HEURISTICS =
5 sig
6 structure G : RA_GRAPH (* = RAGraph *)
7 where type C.CellSet.cellset = RAGraph.C.CellSet.cellset
8 and type 'a C.ColorTable.hash_table = 'a RAGraph.C.ColorTable.hash_table
9 and type 'a C.HashTable.hash_table = 'a RAGraph.C.HashTable.hash_table
10 and type C.SortedCells.sorted_cells = RAGraph.C.SortedCells.sorted_cells
11 and type C.cell = RAGraph.C.cell
12 and type C.cellColor = RAGraph.C.cellColor
13 and type C.cellkind = RAGraph.C.cellkind
14 and type C.cellkindDesc = RAGraph.C.cellkindDesc
15 and type C.cellkindInfo = RAGraph.C.cellkindInfo
16 and type 'a PPtHashTable.hash_table = 'a RAGraph.PPtHashTable.hash_table
17 and type 'a SpillLocHashTable.hash_table = 'a RAGraph.SpillLocHashTable.hash_table
18 and type interferenceGraph = RAGraph.interferenceGraph
19 and type move = RAGraph.move
20 and type moveKind = RAGraph.moveKind
21 and type moveStatus = RAGraph.moveStatus
22 and type node = RAGraph.node
23 and type nodeStatus = RAGraph.nodeStatus
24 and type spillLoc = RAGraph.spillLoc
25 and type trailInfo = RAGraph.trailInfo
26
27 exception NoCandidate
28
29 val mode : G.mode
30
31 val init : unit -> unit
32
33 val chooseSpillNode :
34 { graph : G.interferenceGraph,
35 spillWkl : G.node list,
36 hasBeenSpilled : int -> bool
37 } ->
38 { spillWkl : G.node list,
39 node : G.node option,
40 cost : real
41 }
42 end