Debian Codegraph @

lib/mlrisc-lib/MLRISC/flowgraph/pseudo-ops-basis.sig

raw
1 (* pseudo-ops-basis.sig
2 *
3 * COPYRIGHT (c) 2001 Bell Labs, Lucent Technologies
4 *
5 * Interface to host assembler.
6 * Will handle all constructors in PseudoOpsBasisTyp except for
7 * client extensions (EXT)
8 *)
9
10
11 signature PSEUDO_OPS_BASIS = sig
12 structure T : MLTREE
13 type 'a pseudo_op = (T.labexp, 'a) PseudoOpsBasisTyp.pseudo_op
14
15 val toString : 'a pseudo_op -> string
16 val lexpToString : T.labexp -> string
17 val defineLabel : Label.label -> string
18
19 val emitValue : {pOp: 'a pseudo_op, loc: int, emit: Word8.word -> unit} -> unit
20 (* emit value of pseudo op give current location counter and output
21 * stream. The value emitted should respect the endianness of the
22 * target machine.
23 *)
24
25 val sizeOf : 'a pseudo_op * int -> int
26 (* Size of the pseudo_op in bytes given the current location counter
27 * The location counter is provided in case some pseudo ops are
28 * dependent on alignment considerations.
29 *)
30
31 val wordSize : int
32 end
33