| 1 |
(* pseudo-ops.sig |
| 2 |
* |
| 3 |
* COPYRIGHT (c) 2001 Bell Labs, Lucent Technologies |
| 4 |
* |
| 5 |
* MLRISC pseudo-ops |
| 6 |
* Ties together the assembler and client pseudo-ops |
| 7 |
*) |
| 8 |
|
| 9 |
signature PSEUDO_OPS = sig |
| 10 |
structure T : MLTREE |
| 11 |
structure Client : CLIENT_PSEUDO_OPS (* where AsmPseudoOps.T = T *) |
| 12 |
where type AsmPseudoOps.T.Basis.cond = T.Basis.cond |
| 13 |
and type AsmPseudoOps.T.Basis.div_rounding_mode = T.Basis.div_rounding_mode |
| 14 |
and type AsmPseudoOps.T.Basis.ext = T.Basis.ext |
| 15 |
and type AsmPseudoOps.T.Basis.fcond = T.Basis.fcond |
| 16 |
and type AsmPseudoOps.T.Basis.rounding_mode = T.Basis.rounding_mode |
| 17 |
and type AsmPseudoOps.T.Constant.const = T.Constant.const |
| 18 |
and type ('s,'r,'f,'c) AsmPseudoOps.T.Extension.ccx = ('s,'r,'f,'c) T.Extension.ccx |
| 19 |
and type ('s,'r,'f,'c) AsmPseudoOps.T.Extension.fx = ('s,'r,'f,'c) T.Extension.fx |
| 20 |
and type ('s,'r,'f,'c) AsmPseudoOps.T.Extension.rx = ('s,'r,'f,'c) T.Extension.rx |
| 21 |
and type ('s,'r,'f,'c) AsmPseudoOps.T.Extension.sx = ('s,'r,'f,'c) T.Extension.sx |
| 22 |
and type AsmPseudoOps.T.I.div_rounding_mode = T.I.div_rounding_mode |
| 23 |
and type AsmPseudoOps.T.Region.region = T.Region.region |
| 24 |
and type AsmPseudoOps.T.ccexp = T.ccexp |
| 25 |
and type AsmPseudoOps.T.fexp = T.fexp |
| 26 |
(* and type AsmPseudoOps.T.labexp = T.labexp *) |
| 27 |
and type AsmPseudoOps.T.mlrisc = T.mlrisc |
| 28 |
and type AsmPseudoOps.T.oper = T.oper |
| 29 |
and type AsmPseudoOps.T.rep = T.rep |
| 30 |
and type AsmPseudoOps.T.rexp = T.rexp |
| 31 |
and type AsmPseudoOps.T.stm = T.stm |
| 32 |
|
| 33 |
type pseudo_op = (T.labexp, Client.pseudo_op) PseudoOpsBasisTyp.pseudo_op |
| 34 |
|
| 35 |
val toString : pseudo_op -> string |
| 36 |
val emitValue : {pOp: pseudo_op, loc: int, emit: Word8.word -> unit} -> unit |
| 37 |
(* identical to that in pseudo-ops-basis.sig *) |
| 38 |
|
| 39 |
val sizeOf : pseudo_op * int -> int |
| 40 |
(* identical to that in pseudo-ops-basis.sig *) |
| 41 |
|
| 42 |
val adjustLabels : pseudo_op * int -> bool |
| 43 |
(* adjust the value of labels in the pseudo_op given the current |
| 44 |
* location counter. |
| 45 |
*) |
| 46 |
|
| 47 |
|
| 48 |
end |
| 49 |
|