Debian Codegraph @

lib/mlrisc-lib/MLRISC/amd64/flowgraph/amd64-darwin-pseudo-ops.sml

raw
1 (* amd64-darwin-pseudo-ops.sml
2 *
3 * COPYRIGHT (c) 2006 The SML/NJ Fellowship (www.smlnj.org)
4 * All rights reserved.
5 *)
6
7 functor AMD64DarwinPseudoOps (
8
9 structure T : MLTREE
10 structure MLTreeEval : MLTREE_EVAL (* where T = T *)
11 where type T.Basis.cond = T.Basis.cond
12 and type T.Basis.div_rounding_mode = T.Basis.div_rounding_mode
13 and type T.Basis.ext = T.Basis.ext
14 and type T.Basis.fcond = T.Basis.fcond
15 and type T.Basis.rounding_mode = T.Basis.rounding_mode
16 and type T.Constant.const = T.Constant.const
17 and type ('s,'r,'f,'c) T.Extension.ccx = ('s,'r,'f,'c) T.Extension.ccx
18 and type ('s,'r,'f,'c) T.Extension.fx = ('s,'r,'f,'c) T.Extension.fx
19 and type ('s,'r,'f,'c) T.Extension.rx = ('s,'r,'f,'c) T.Extension.rx
20 and type ('s,'r,'f,'c) T.Extension.sx = ('s,'r,'f,'c) T.Extension.sx
21 and type T.I.div_rounding_mode = T.I.div_rounding_mode
22 and type T.Region.region = T.Region.region
23 and type T.ccexp = T.ccexp
24 and type T.fexp = T.fexp
25 (* and type T.labexp = T.labexp *)
26 and type T.mlrisc = T.mlrisc
27 and type T.oper = T.oper
28 and type T.rep = T.rep
29 and type T.rexp = T.rexp
30 and type T.stm = T.stm
31
32 ) : PSEUDO_OPS_BASIS = struct
33
34 structure T = T
35 structure PB = PseudoOpsBasisTyp
36 structure Fmt = Format
37
38 structure Endian =
39 PseudoOpsLittle
40 (structure T = T
41 structure MLTreeEval=MLTreeEval
42 val icache_alignment = 16
43 val max_alignment = SOME 7
44 val nop = {sz=1, en=0wx90: Word32.word})
45
46 structure POps = DarwinPseudoOps(T)
47
48 type 'a pseudo_op = (T.labexp, 'a) PB.pseudo_op
49
50 fun error msg = MLRiscErrorMsg.error ("AMD64DarwinPseudoOps.", msg)
51
52 val sizeOf = Endian.sizeOf
53 val emitValue = Endian.emitValue
54 val lexpToString = POps.lexpToString
55 val toString = POps.toString
56 val defineLabel = POps.defineLabel
57 val wordSize = 64
58
59 end