Debian Codegraph @

lib/mlrisc-lib/MLRISC/mltree/rtl-props.sig

raw
1 (*
2 * Interface of rtl info extraction from instructions.
3 * The code matching this interface is automatically generated by the MDL tool.
4 *)
5 signature RTL_PROPERTIES =
6 sig
7
8 structure I : INSTRUCTIONS
9 structure C : CELLS
10 structure RTL : MLTREE_RTL
11 structure OT : OPERAND_TABLE
12 sharing I.C = C
13 sharing OT.I = I
14 sharing RTL.T = I.T
15
16 datatype value =
17 CELL of C.cell (* a single value *)
18 | OPERAND of I.operand (* a complex operand *)
19
20 (* Return the RTL describing the semantics of an instruction
21 * The rtl returned is in lambda-lifted form, i.e. it contains
22 * references to PARAM n, which refers to the nth input or output parameter.
23 *)
24 val rtl : I.instruction -> RTL.rtl
25
26 (*
27 * Return the input/ouput parameters of an instruction.
28 * The input/output matches positionally with the info returned by
29 * the function rtl.
30 *)
31 val defUse : OT.valueNumberMethods -> I.instruction
32 -> value list * value list
33
34 end