Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /trunk/src/compiler/low-il/low-il.sml
ViewVC logotype

Annotation of /trunk/src/compiler/low-il/low-il.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3349 - (view) (download)

1 : jhr 458 (* low-il.in
2 :     *
3 : jhr 3349 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4 :     *
5 :     * COPYRIGHT (c) 2015 The University of Chicago
6 : jhr 458 * All rights reserved.
7 :     *
8 :     * Lower-level version of the Diderot IL input file.
9 :     *
10 :     *)
11 :    
12 :     structure LowOps =
13 :     struct
14 :    
15 : jhr 1640 (* required helper functions for types *)
16 : jhr 458 type ty = LowILTypes.ty
17 :     val samety = LowILTypes.same
18 :     val hashty = LowILTypes.hash
19 :     val tyToString = LowILTypes.toString
20 :    
21 : jhr 1640 (* required helper functions for type lists *)
22 :     type tys = ty list
23 :     fun sametys (tys1, tys2) = ListPair.allEq samety (tys1, tys2)
24 :     fun hashtys tys = List.foldl (fn (ty, s) => hashty ty + 0w3 * s) 0w0 tys
25 :     fun tysToString tys = String.concat["[", String.concatWith "," (List.map tyToString tys), "]" ]
26 :    
27 :     (* required helper functions for the int type *)
28 : jhr 458 fun sameint (i1 : int, i2) = (i1 = i2)
29 :     fun hashint i = Word.fromInt i
30 :     fun intToString i = Int.toString i
31 :    
32 : jhr 1640 (* required helper functions for the string type *)
33 : jhr 458 fun samestring (s1 : string, s2) = (s1 = s2)
34 :     val hashstring = HashString.hashString
35 :     fun stringToString s = String.concat["\"", s, "\""]
36 :    
37 : jhr 2636 (* required helper functions for the input type *)
38 :     type input = ty Inputs.input
39 :     val sameinput = Inputs.same
40 :     val hashinput = Inputs.hash
41 :     val inputToString = Inputs.toString
42 :    
43 : jhr 458 datatype rator
44 :     = Add of ty
45 :     | Sub of ty
46 :     | Mul of ty
47 :     | Div of ty
48 :     | Neg of ty
49 : jhr 1116 | Abs of ty
50 : jhr 458 | LT of ty
51 :     | LTE of ty
52 :     | EQ of ty
53 :     | NEQ of ty
54 :     | GT of ty
55 :     | GTE of ty
56 :     | Not
57 :     | Max
58 :     | Min
59 : jhr 1295 | Clamp of ty
60 : jhr 1116 | Lerp of ty
61 : jhr 458 | Dot of int
62 : jhr 1116 | MulVecMat of int * int
63 :     | MulMatVec of int * int
64 :     | MulMatMat of int * int * int
65 : jhr 2356 | MulVecTen3 of int * int * int
66 :     | MulTen3Vec of int * int * int
67 :     | ColonMul of ty * ty
68 : jhr 458 | Cross
69 : jhr 1116 | Norm of ty
70 :     | Normalize of int
71 :     | Scale of ty
72 : jhr 458 | PrincipleEvec of ty
73 : jhr 1640 | EigenVecs2x2
74 :     | EigenVecs3x3
75 :     | EigenVals2x2
76 :     | EigenVals3x3
77 : jhr 1116 | Identity of int
78 :     | Zero of ty
79 : jhr 2356 | Transpose of int * int
80 : jhr 1640 | Select of ty * int
81 :     | Index of ty * int
82 : jhr 458 | Subscript of ty
83 : jhr 1116 | Ceiling of int
84 : jhr 458 | Floor of int
85 : jhr 1116 | Round of int
86 :     | Trunc of int
87 : jhr 458 | IntToReal
88 : jhr 1116 | RealToInt of int
89 : jhr 511 | ImageAddress of ImageInfo.info
90 : jhr 1116 | LoadVoxels of ImageInfo.info * int
91 : jhr 458 | PosToImgSpace of ImageInfo.info
92 : jhr 1116 | TensorToWorldSpace of ImageInfo.info * ty
93 :     | Inside of ImageInfo.info * int
94 : jhr 2636 | LoadImage of ty * string * ImageInfo.info
95 :     | Input of input
96 : jhr 1640 | Print of tys
97 : jhr 458
98 : jhr 1640 fun resultArity (Add _) = 1
99 :     | resultArity (Sub _) = 1
100 :     | resultArity (Mul _) = 1
101 :     | resultArity (Div _) = 1
102 :     | resultArity (Neg _) = 1
103 :     | resultArity (Abs _) = 1
104 :     | resultArity (LT _) = 1
105 :     | resultArity (LTE _) = 1
106 :     | resultArity (EQ _) = 1
107 :     | resultArity (NEQ _) = 1
108 :     | resultArity (GT _) = 1
109 :     | resultArity (GTE _) = 1
110 :     | resultArity Not = 1
111 :     | resultArity Max = 1
112 :     | resultArity Min = 1
113 :     | resultArity (Clamp _) = 1
114 :     | resultArity (Lerp _) = 1
115 :     | resultArity (Dot _) = 1
116 :     | resultArity (MulVecMat _) = 1
117 :     | resultArity (MulMatVec _) = 1
118 :     | resultArity (MulMatMat _) = 1
119 : jhr 2356 | resultArity (MulVecTen3 _) = 1
120 :     | resultArity (MulTen3Vec _) = 1
121 :     | resultArity (ColonMul _) = 1
122 : jhr 1640 | resultArity Cross = 1
123 :     | resultArity (Norm _) = 1
124 :     | resultArity (Normalize _) = 1
125 :     | resultArity (Scale _) = 1
126 :     | resultArity (PrincipleEvec _) = 1
127 :     | resultArity EigenVecs2x2 = 1
128 :     | resultArity EigenVecs3x3 = 1
129 :     | resultArity EigenVals2x2 = 1
130 :     | resultArity EigenVals3x3 = 1
131 :     | resultArity (Identity _) = 1
132 :     | resultArity (Zero _) = 1
133 : jhr 2356 | resultArity (Transpose _) = 1
134 : jhr 1640 | resultArity (Select _) = 1
135 :     | resultArity (Index _) = 1
136 :     | resultArity (Subscript _) = 1
137 :     | resultArity (Ceiling _) = 1
138 :     | resultArity (Floor _) = 1
139 :     | resultArity (Round _) = 1
140 :     | resultArity (Trunc _) = 1
141 :     | resultArity IntToReal = 1
142 :     | resultArity (RealToInt _) = 1
143 :     | resultArity (ImageAddress _) = 1
144 :     | resultArity (LoadVoxels _) = 1
145 :     | resultArity (PosToImgSpace _) = 1
146 :     | resultArity (TensorToWorldSpace _) = 1
147 : jhr 2636 | resultArity (Inside _) = 1
148 : jhr 1640 | resultArity (LoadImage _) = 1
149 : jhr 2636 | resultArity (Input _) = 0
150 : jhr 1640 | resultArity (Print _) = 0
151 :    
152 : jhr 458 fun arity (Add _) = 2
153 :     | arity (Sub _) = 2
154 :     | arity (Mul _) = 2
155 :     | arity (Div _) = 2
156 :     | arity (Neg _) = 1
157 : jhr 1116 | arity (Abs _) = 1
158 : jhr 458 | arity (LT _) = 2
159 :     | arity (LTE _) = 2
160 :     | arity (EQ _) = 2
161 :     | arity (NEQ _) = 2
162 :     | arity (GT _) = 2
163 :     | arity (GTE _) = 2
164 :     | arity Not = 1
165 :     | arity Max = 2
166 :     | arity Min = 2
167 : jhr 1295 | arity (Clamp _) = 3
168 : jhr 1116 | arity (Lerp _) = 3
169 : jhr 458 | arity (Dot _) = 2
170 : jhr 1116 | arity (MulVecMat _) = 2
171 :     | arity (MulMatVec _) = 2
172 :     | arity (MulMatMat _) = 2
173 : jhr 2356 | arity (MulVecTen3 _) = 2
174 :     | arity (MulTen3Vec _) = 2
175 :     | arity (ColonMul _) = 2
176 : jhr 458 | arity Cross = 2
177 :     | arity (Norm _) = 1
178 : jhr 1116 | arity (Normalize _) = 1
179 : jhr 458 | arity (Scale _) = 2
180 :     | arity (PrincipleEvec _) = 2
181 : jhr 1640 | arity EigenVecs2x2 = 1
182 :     | arity EigenVecs3x3 = 1
183 :     | arity EigenVals2x2 = 1
184 :     | arity EigenVals3x3 = 1
185 : jhr 1116 | arity (Identity _) = 0
186 :     | arity (Zero _) = 0
187 : jhr 2356 | arity (Transpose _) = 1
188 : jhr 1640 | arity (Select _) = 1
189 :     | arity (Index _) = 1
190 : jhr 458 | arity (Subscript _) = 2
191 : jhr 1116 | arity (Ceiling _) = 1
192 : jhr 458 | arity (Floor _) = 1
193 : jhr 1116 | arity (Round _) = 1
194 :     | arity (Trunc _) = 1
195 : jhr 458 | arity IntToReal = 1
196 : jhr 1116 | arity (RealToInt _) = 1
197 :     | arity (ImageAddress _) = 1
198 : jhr 458 | arity (LoadVoxels _) = 1
199 : jhr 1116 | arity (PosToImgSpace _) = 2
200 :     | arity (TensorToWorldSpace _) = 2
201 :     | arity (Inside _) = 2
202 : jhr 2636 | arity (LoadImage _) = 0
203 : jhr 458 | arity (Input _) = 0
204 : jhr 1640 | arity (Print _) = ~1
205 : jhr 458
206 : jhr 2642 fun isPure (Input _) = false
207 :     | isPure (Print _) = false
208 : jhr 2356 | isPure _ = true
209 :    
210 : jhr 458 fun same (Add(a0), Add(b0)) = samety(a0, b0)
211 :     | same (Sub(a0), Sub(b0)) = samety(a0, b0)
212 :     | same (Mul(a0), Mul(b0)) = samety(a0, b0)
213 :     | same (Div(a0), Div(b0)) = samety(a0, b0)
214 :     | same (Neg(a0), Neg(b0)) = samety(a0, b0)
215 : jhr 1116 | same (Abs(a0), Abs(b0)) = samety(a0, b0)
216 : jhr 458 | same (LT(a0), LT(b0)) = samety(a0, b0)
217 :     | same (LTE(a0), LTE(b0)) = samety(a0, b0)
218 :     | same (EQ(a0), EQ(b0)) = samety(a0, b0)
219 :     | same (NEQ(a0), NEQ(b0)) = samety(a0, b0)
220 :     | same (GT(a0), GT(b0)) = samety(a0, b0)
221 :     | same (GTE(a0), GTE(b0)) = samety(a0, b0)
222 :     | same (Not, Not) = true
223 :     | same (Max, Max) = true
224 :     | same (Min, Min) = true
225 : jhr 1295 | same (Clamp(a0), Clamp(b0)) = samety(a0, b0)
226 : jhr 1116 | same (Lerp(a0), Lerp(b0)) = samety(a0, b0)
227 : jhr 458 | same (Dot(a0), Dot(b0)) = sameint(a0, b0)
228 : jhr 1116 | same (MulVecMat(a0,a1), MulVecMat(b0,b1)) = sameint(a0, b0) andalso sameint(a1, b1)
229 :     | same (MulMatVec(a0,a1), MulMatVec(b0,b1)) = sameint(a0, b0) andalso sameint(a1, b1)
230 :     | same (MulMatMat(a0,a1,a2), MulMatMat(b0,b1,b2)) = sameint(a0, b0) andalso sameint(a1, b1) andalso sameint(a2, b2)
231 : jhr 2356 | same (MulVecTen3(a0,a1,a2), MulVecTen3(b0,b1,b2)) = sameint(a0, b0) andalso sameint(a1, b1) andalso sameint(a2, b2)
232 :     | same (MulTen3Vec(a0,a1,a2), MulTen3Vec(b0,b1,b2)) = sameint(a0, b0) andalso sameint(a1, b1) andalso sameint(a2, b2)
233 :     | same (ColonMul(a0,a1), ColonMul(b0,b1)) = samety(a0, b0) andalso samety(a1, b1)
234 : jhr 458 | same (Cross, Cross) = true
235 : jhr 1116 | same (Norm(a0), Norm(b0)) = samety(a0, b0)
236 :     | same (Normalize(a0), Normalize(b0)) = sameint(a0, b0)
237 :     | same (Scale(a0), Scale(b0)) = samety(a0, b0)
238 : jhr 458 | same (PrincipleEvec(a0), PrincipleEvec(b0)) = samety(a0, b0)
239 : jhr 1640 | same (EigenVecs2x2, EigenVecs2x2) = true
240 :     | same (EigenVecs3x3, EigenVecs3x3) = true
241 :     | same (EigenVals2x2, EigenVals2x2) = true
242 :     | same (EigenVals3x3, EigenVals3x3) = true
243 : jhr 1116 | same (Identity(a0), Identity(b0)) = sameint(a0, b0)
244 :     | same (Zero(a0), Zero(b0)) = samety(a0, b0)
245 : jhr 2356 | same (Transpose(a0,a1), Transpose(b0,b1)) = sameint(a0, b0) andalso sameint(a1, b1)
246 : jhr 1640 | same (Select(a0,a1), Select(b0,b1)) = samety(a0, b0) andalso sameint(a1, b1)
247 :     | same (Index(a0,a1), Index(b0,b1)) = samety(a0, b0) andalso sameint(a1, b1)
248 : jhr 458 | same (Subscript(a0), Subscript(b0)) = samety(a0, b0)
249 : jhr 1116 | same (Ceiling(a0), Ceiling(b0)) = sameint(a0, b0)
250 : jhr 458 | same (Floor(a0), Floor(b0)) = sameint(a0, b0)
251 : jhr 1116 | same (Round(a0), Round(b0)) = sameint(a0, b0)
252 :     | same (Trunc(a0), Trunc(b0)) = sameint(a0, b0)
253 : jhr 458 | same (IntToReal, IntToReal) = true
254 : jhr 1116 | same (RealToInt(a0), RealToInt(b0)) = sameint(a0, b0)
255 : jhr 511 | same (ImageAddress(a0), ImageAddress(b0)) = ImageInfo.same(a0, b0)
256 : jhr 1116 | same (LoadVoxels(a0,a1), LoadVoxels(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)
257 : jhr 458 | same (PosToImgSpace(a0), PosToImgSpace(b0)) = ImageInfo.same(a0, b0)
258 : jhr 1116 | same (TensorToWorldSpace(a0,a1), TensorToWorldSpace(b0,b1)) = ImageInfo.same(a0, b0) andalso samety(a1, b1)
259 :     | same (Inside(a0,a1), Inside(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)
260 : jhr 2636 | same (LoadImage(a0,a1,a2), LoadImage(b0,b1,b2)) = samety(a0, b0) andalso samestring(a1, b1) andalso ImageInfo.same(a2, b2)
261 :     | same (Input(a0), Input(b0)) = sameinput(a0, b0)
262 : jhr 1640 | same (Print(a0), Print(b0)) = sametys(a0, b0)
263 : jhr 458 | same _ = false
264 :    
265 :     fun hash (Add(a0)) = 0w3 + hashty a0
266 :     | hash (Sub(a0)) = 0w5 + hashty a0
267 :     | hash (Mul(a0)) = 0w7 + hashty a0
268 :     | hash (Div(a0)) = 0w11 + hashty a0
269 :     | hash (Neg(a0)) = 0w13 + hashty a0
270 : jhr 1116 | hash (Abs(a0)) = 0w17 + hashty a0
271 :     | hash (LT(a0)) = 0w19 + hashty a0
272 :     | hash (LTE(a0)) = 0w23 + hashty a0
273 :     | hash (EQ(a0)) = 0w29 + hashty a0
274 :     | hash (NEQ(a0)) = 0w31 + hashty a0
275 :     | hash (GT(a0)) = 0w37 + hashty a0
276 :     | hash (GTE(a0)) = 0w41 + hashty a0
277 :     | hash Not = 0w43
278 :     | hash Max = 0w47
279 :     | hash Min = 0w53
280 : jhr 1295 | hash (Clamp(a0)) = 0w59 + hashty a0
281 :     | hash (Lerp(a0)) = 0w61 + hashty a0
282 :     | hash (Dot(a0)) = 0w67 + hashint a0
283 :     | hash (MulVecMat(a0,a1)) = 0w71 + hashint a0 + hashint a1
284 :     | hash (MulMatVec(a0,a1)) = 0w73 + hashint a0 + hashint a1
285 :     | hash (MulMatMat(a0,a1,a2)) = 0w79 + hashint a0 + hashint a1 + hashint a2
286 : jhr 2356 | hash (MulVecTen3(a0,a1,a2)) = 0w83 + hashint a0 + hashint a1 + hashint a2
287 :     | hash (MulTen3Vec(a0,a1,a2)) = 0w89 + hashint a0 + hashint a1 + hashint a2
288 :     | hash (ColonMul(a0,a1)) = 0w97 + hashty a0 + hashty a1
289 :     | hash Cross = 0w101
290 :     | hash (Norm(a0)) = 0w103 + hashty a0
291 :     | hash (Normalize(a0)) = 0w107 + hashint a0
292 :     | hash (Scale(a0)) = 0w109 + hashty a0
293 :     | hash (PrincipleEvec(a0)) = 0w113 + hashty a0
294 :     | hash EigenVecs2x2 = 0w127
295 :     | hash EigenVecs3x3 = 0w131
296 :     | hash EigenVals2x2 = 0w137
297 :     | hash EigenVals3x3 = 0w139
298 :     | hash (Identity(a0)) = 0w149 + hashint a0
299 :     | hash (Zero(a0)) = 0w151 + hashty a0
300 :     | hash (Transpose(a0,a1)) = 0w157 + hashint a0 + hashint a1
301 :     | hash (Select(a0,a1)) = 0w163 + hashty a0 + hashint a1
302 :     | hash (Index(a0,a1)) = 0w167 + hashty a0 + hashint a1
303 :     | hash (Subscript(a0)) = 0w173 + hashty a0
304 :     | hash (Ceiling(a0)) = 0w179 + hashint a0
305 :     | hash (Floor(a0)) = 0w181 + hashint a0
306 :     | hash (Round(a0)) = 0w191 + hashint a0
307 :     | hash (Trunc(a0)) = 0w193 + hashint a0
308 :     | hash IntToReal = 0w197
309 :     | hash (RealToInt(a0)) = 0w199 + hashint a0
310 :     | hash (ImageAddress(a0)) = 0w211 + ImageInfo.hash a0
311 :     | hash (LoadVoxels(a0,a1)) = 0w223 + ImageInfo.hash a0 + hashint a1
312 :     | hash (PosToImgSpace(a0)) = 0w227 + ImageInfo.hash a0
313 :     | hash (TensorToWorldSpace(a0,a1)) = 0w229 + ImageInfo.hash a0 + hashty a1
314 : jhr 2636 | hash (Inside(a0,a1)) = 0w233 + ImageInfo.hash a0 + hashint a1
315 :     | hash (LoadImage(a0,a1,a2)) = 0w239 + hashty a0 + hashstring a1 + ImageInfo.hash a2
316 :     | hash (Input(a0)) = 0w241 + hashinput a0
317 :     | hash (Print(a0)) = 0w251 + hashtys a0
318 : jhr 458
319 :     fun toString (Add(a0)) = concat["Add<", tyToString a0, ">"]
320 :     | toString (Sub(a0)) = concat["Sub<", tyToString a0, ">"]
321 :     | toString (Mul(a0)) = concat["Mul<", tyToString a0, ">"]
322 :     | toString (Div(a0)) = concat["Div<", tyToString a0, ">"]
323 :     | toString (Neg(a0)) = concat["Neg<", tyToString a0, ">"]
324 : jhr 1116 | toString (Abs(a0)) = concat["Abs<", tyToString a0, ">"]
325 : jhr 458 | toString (LT(a0)) = concat["LT<", tyToString a0, ">"]
326 :     | toString (LTE(a0)) = concat["LTE<", tyToString a0, ">"]
327 :     | toString (EQ(a0)) = concat["EQ<", tyToString a0, ">"]
328 :     | toString (NEQ(a0)) = concat["NEQ<", tyToString a0, ">"]
329 :     | toString (GT(a0)) = concat["GT<", tyToString a0, ">"]
330 :     | toString (GTE(a0)) = concat["GTE<", tyToString a0, ">"]
331 :     | toString Not = "Not"
332 :     | toString Max = "Max"
333 :     | toString Min = "Min"
334 : jhr 1295 | toString (Clamp(a0)) = concat["Clamp<", tyToString a0, ">"]
335 : jhr 1116 | toString (Lerp(a0)) = concat["Lerp<", tyToString a0, ">"]
336 : jhr 458 | toString (Dot(a0)) = concat["Dot<", intToString a0, ">"]
337 : jhr 1116 | toString (MulVecMat(a0,a1)) = concat["MulVecMat<", intToString a0, ",", intToString a1, ">"]
338 :     | toString (MulMatVec(a0,a1)) = concat["MulMatVec<", intToString a0, ",", intToString a1, ">"]
339 :     | toString (MulMatMat(a0,a1,a2)) = concat["MulMatMat<", intToString a0, ",", intToString a1, ",", intToString a2, ">"]
340 : jhr 2356 | toString (MulVecTen3(a0,a1,a2)) = concat["MulVecTen3<", intToString a0, ",", intToString a1, ",", intToString a2, ">"]
341 :     | toString (MulTen3Vec(a0,a1,a2)) = concat["MulTen3Vec<", intToString a0, ",", intToString a1, ",", intToString a2, ">"]
342 :     | toString (ColonMul(a0,a1)) = concat["ColonMul<", tyToString a0, ",", tyToString a1, ">"]
343 : jhr 458 | toString Cross = "Cross"
344 : jhr 1116 | toString (Norm(a0)) = concat["Norm<", tyToString a0, ">"]
345 :     | toString (Normalize(a0)) = concat["Normalize<", intToString a0, ">"]
346 :     | toString (Scale(a0)) = concat["Scale<", tyToString a0, ">"]
347 : jhr 458 | toString (PrincipleEvec(a0)) = concat["PrincipleEvec<", tyToString a0, ">"]
348 : jhr 1640 | toString EigenVecs2x2 = "EigenVecs2x2"
349 :     | toString EigenVecs3x3 = "EigenVecs3x3"
350 :     | toString EigenVals2x2 = "EigenVals2x2"
351 :     | toString EigenVals3x3 = "EigenVals3x3"
352 : jhr 1116 | toString (Identity(a0)) = concat["Identity<", intToString a0, ">"]
353 :     | toString (Zero(a0)) = concat["Zero<", tyToString a0, ">"]
354 : jhr 2356 | toString (Transpose(a0,a1)) = concat["Transpose<", intToString a0, ",", intToString a1, ">"]
355 : jhr 1640 | toString (Select(a0,a1)) = concat["Select<", tyToString a0, ",", intToString a1, ">"]
356 :     | toString (Index(a0,a1)) = concat["Index<", tyToString a0, ",", intToString a1, ">"]
357 : jhr 458 | toString (Subscript(a0)) = concat["Subscript<", tyToString a0, ">"]
358 : jhr 1116 | toString (Ceiling(a0)) = concat["Ceiling<", intToString a0, ">"]
359 : jhr 458 | toString (Floor(a0)) = concat["Floor<", intToString a0, ">"]
360 : jhr 1116 | toString (Round(a0)) = concat["Round<", intToString a0, ">"]
361 :     | toString (Trunc(a0)) = concat["Trunc<", intToString a0, ">"]
362 : jhr 458 | toString IntToReal = "IntToReal"
363 : jhr 1116 | toString (RealToInt(a0)) = concat["RealToInt<", intToString a0, ">"]
364 : jhr 511 | toString (ImageAddress(a0)) = concat["ImageAddress<", ImageInfo.toString a0, ">"]
365 : jhr 1116 | toString (LoadVoxels(a0,a1)) = concat["LoadVoxels<", ImageInfo.toString a0, ",", intToString a1, ">"]
366 : jhr 458 | toString (PosToImgSpace(a0)) = concat["PosToImgSpace<", ImageInfo.toString a0, ">"]
367 : jhr 1116 | toString (TensorToWorldSpace(a0,a1)) = concat["TensorToWorldSpace<", ImageInfo.toString a0, ",", tyToString a1, ">"]
368 :     | toString (Inside(a0,a1)) = concat["Inside<", ImageInfo.toString a0, ",", intToString a1, ">"]
369 : jhr 2636 | toString (LoadImage(a0,a1,a2)) = concat["LoadImage<", tyToString a0, ",", stringToString a1, ",", ImageInfo.toString a2, ">"]
370 :     | toString (Input(a0)) = concat["Input<", inputToString a0, ">"]
371 : jhr 1640 | toString (Print(a0)) = concat["Print<", tysToString a0, ">"]
372 : jhr 458
373 :     end
374 :    
375 :     structure LowIL = SSAFn(
376 : jhr 1232 val ilName = "low-il"
377 : jhr 458 structure Ty = LowILTypes
378 :     structure Op = LowOps)
379 : jhr 1116
380 :     structure LowILCensus = CensusFn(LowIL)
381 :    

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0