Debian Codegraph @

lib/mlrisc-lib/MLRISC/x86/flowgraph/x86GasPseudoOps.sml

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