Debian Codegraph @

lib/mlrisc-lib/MLRISC/IR/mlrisc-idefs.sig

raw
1 (*
2 * This is Reif and Tarjan's algorithm (SIAM J Computing 1981)
3 * for computing approximate birthpoints for expressions.
4 * For each basic block B,
5 * idef(B) = { v | v is defined on some path between B's idom and B }
6 *
7 * -- Allen
8 *)
9 signature MLRISC_IDEFS =
10 sig
11
12 structure Dom : DOMINATOR_TREE
13 structure CFG : CONTROL_FLOW_GRAPH
14 structure I : INSTRUCTIONS
15 structure C : CELLS
16 sharing CFG.I = I
17 sharing C = I.C
18
19 val idefs :
20 (I.instruction -> C.cell list * C.cell list) ->
21 CFG.cfg ->
22 { idefuse : unit ->
23 (C.SortedCells.sorted_cells *
24 C.SortedCells.sorted_cells) Array.array,
25 ipostdefuse : unit ->
26 (C.SortedCells.sorted_cells *
27 C.SortedCells.sorted_cells) Array.array
28 }
29 end
30