lib/mlrisc-lib/MLRISC/ir-archive/cfg-restructure.sig
raw| 1 | (* |
| 2 | * Insert various types of dummy blocks into the CFG. |
| 3 | * This is probably no longer used. |
| 4 | * |
| 5 | * -- Allen |
| 6 | *) |
| 7 | |
| 8 | signature CONTROL_FLOW_GRAPH_RESTRUCTURE = |
| 9 | sig |
| 10 | |
| 11 | structure Loop : LOOP_STRUCTURE |
| 12 | |
| 13 | val restructure : |
| 14 | ('n,'e,'g) Graph.graph * ('n,'e,'g) Loop.loop_structure -> |
| 15 | { add_preheader : ({header : 'n Graph.node, |
| 16 | entries : 'e Graph.edge list |
| 17 | } -> unit) option, |
| 18 | add_landing_pad : ({exit:'e Graph.edge} -> unit) option |
| 19 | } -> unit |
| 20 | |
| 21 | end |
| 22 |