Debian Codegraph @

lib/mlrisc-lib/MLRISC/scheduling/regionBuilder.sig

raw
1 (*
2 * This module partitions the IR according to some partitioning criteria
3 * and frequency. This is used mainly for global scheduling.
4 *
5 * -- Allen
6 *)
7
8 signature REGION_BUILDER =
9 sig
10 structure IR : MLRISC_IR
11
12 val regionBuilder :
13 { maxBlocks : int,
14 maxInstrs : int,
15 minFreqRatio : real,
16 sideEntries : bool, (* can the region has side entries *)
17 traceOnly : bool, (* no splits or merges? *)
18 internalBackEdges : bool, (* can the region has internal back edges*)
19 insertDummyBlocks : bool
20 } ->
21 IR.IR ->
22 ({ir : IR.IR, (* The entire program *)
23 region : IR.cfg, (* The subregion in question *)
24 numberOfInstructions : int,
25 blockIdTbl : int Array.array
26 } -> unit
27 ) -> unit
28
29 end