Debian Codegraph @

lib/mlrisc-lib/MLRISC/mltree/mltree-stream.sig

raw
1 (* mltree-stream.sig
2 *
3 * COPYRIGHT (c) 2001 Lucent Technologies, Bell Laboratories.
4 *
5 *)
6
7 signature MLTREE_STREAM = sig
8 structure T : MLTREE
9 structure S : INSTRUCTION_STREAM
10
11 (*
12 * Instruction streams
13 *)
14 type ('i,'cellset, 'cfg) stream = ('i, T.an list, 'cellset, 'cfg) S.stream
15
16 (*
17 * Extension mechanism
18 *)
19 datatype ('instr, 'cellset, 'operand, 'addressing_mode, 'cfg) reducer =
20 REDUCER of
21 {reduceRexp : T.rexp -> T.reg,
22 reduceFexp : T.fexp -> T.reg,
23 reduceCCexp : T.ccexp -> T.reg,
24 reduceStm : T.stm * T.an list -> unit,
25 operand : T.rexp -> 'operand,
26 reduceOperand : 'operand -> T.reg,
27 addressOf : T.rexp -> 'addressing_mode,
28 emit : 'instr * T.an list -> unit,
29 instrStream : ('instr,'cellset, 'cfg) stream,
30 mltreeStream : (T.stm,T.mlrisc list, 'cfg) stream
31 }
32 end
33
34
35
36