Debian Codegraph @

lib/mlrisc-lib/MLRISC/alpha/flowgraph/alphaGasPseudoOps.sml

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