| 1 |
(* |
| 2 |
* This gives a cluster a graph view so that all graph based algorithms |
| 3 |
* can be applied on the cluster. The view is readonly though. |
| 4 |
* |
| 5 |
* -- Allen |
| 6 |
*) |
| 7 |
signature CLUSTER_GRAPH = |
| 8 |
sig |
| 9 |
|
| 10 |
structure F : FLOWGRAPH |
| 11 |
structure I : INSTRUCTIONS |
| 12 |
structure W : FREQ |
| 13 |
sharing F.W = W |
| 14 |
sharing F.I = I |
| 15 |
|
| 16 |
type info |
| 17 |
type block = F.block |
| 18 |
type edge_info = W.freq ref |
| 19 |
|
| 20 |
type cfg = (block,edge_info,info) Graph.graph |
| 21 |
|
| 22 |
val clusterGraph : F.cluster -> cfg |
| 23 |
val cluster : cfg -> F.cluster |
| 24 |
val table : cfg -> block Array.array |
| 25 |
val isTakenBranch : edge_info Graph.edge -> bool |
| 26 |
|
| 27 |
val annotations : cfg -> Annotations.annotations ref |
| 28 |
|
| 29 |
val insns : block -> I.instruction list ref |
| 30 |
val freq : block -> W.freq ref |
| 31 |
val liveOut : block -> I.C.cellset |
| 32 |
|
| 33 |
end |