Debian Codegraph @

lib/mlrisc-lib/MLRISC/hppa/mltree/hppaLabelComp.sig

raw
1 signature LABEL_COMP = sig
2 structure T : MLTREE
3 structure I : INSTRUCTIONS
4
5 type reduce =
6 {stm: T.stm -> unit,
7 rexp: T.rexp -> CellsBasis.cell,
8 emit:I.instruction -> unit
9 }
10 (* functions to emit MLRISC statements or register expressions *)
11
12 val ldLabelEA :
13 (I.instruction -> unit) -> T.labexp -> (CellsBasis.cell * I.operand)
14 (* generate a label operand to use as an effective address *)
15
16 val ldLabelOpnd :
17 (I.instruction -> unit) ->
18 {label:T.labexp, pref:CellsBasis.cell option} -> I.operand
19 (* generate a label operand to be used by immediate instructions *)
20
21 val doJmp : reduce * T.stm -> unit
22 (* compile a jump involving a label *)
23
24 val doCall : reduce * T.stm -> unit
25 (* compile a call involving a label *)
26
27 end
28