Debian Codegraph @

lib/mlrisc-lib/MLRISC/amd64/flowgraph/amd64GasPseudoOps.sml

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