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

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/mid-ir/mid-ir.sml
ViewVC logotype

Diff of /branches/vis15/src/compiler/mid-ir/mid-ir.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3628, Sun Jan 31 14:30:06 2016 UTC revision 3866, Mon May 16 16:48:13 2016 UTC
# Line 23  Line 23 
23      type tys = ty list      type tys = ty list
24      fun sametys (tys1, tys2) = ListPair.allEq samety (tys1, tys2)      fun sametys (tys1, tys2) = ListPair.allEq samety (tys1, tys2)
25      fun hashtys tys = List.foldl (fn (ty, s) => hashty ty + 0w3 * s) 0w0 tys      fun hashtys tys = List.foldl (fn (ty, s) => hashty ty + 0w3 * s) 0w0 tys
26      fun tysToString tys = String.concat["[", String.concatWith "," (List.map tyToString tys), "]" ]      fun tysToString tys = String.concat["[", String.concatWithMap "," tyToString tys, "]" ]
27    
28    (* required helper functions for the int type *)    (* required helper functions for the int type *)
29      fun sameint (i1 : int, i2) = (i1 = i2)      fun sameint (i1 : int, i2) = (i1 = i2)
# Line 35  Line 35 
35      val hashstring = HashString.hashString      val hashstring = HashString.hashString
36      fun stringToString s = String.concat["\"", s, "\""]      fun stringToString s = String.concat["\"", s, "\""]
37    
38    (* required helper functions for the mask type *)    (* required helper functions for the shape type *)
39      type mask = bool list      type shape = TensorShape.t
40      val samemask : (mask * mask -> bool) = (op =)      val sameshape = TensorShape.same
41      fun hashmask m =      val hashshape = TensorShape.hash
42            List.foldl (fn (false, w) => w+w | (true, w) => w+w+0w1)      val shapeToString = TensorShape.toString
             (Word.fromInt(List.length m)) m  
     fun maskToString m =  
           String.concat(List.map (fn true => "_" | false => ":") m)  
43    
44    (* required helper functions for the index control type type *)    (* required helper functions for the index control type type *)
45      type idxctl = IndexCtl.ctl      type idxctl = IndexCtl.ctl
# Line 68  Line 65 
65        | Max of ty        | Max of ty
66        | Min of ty        | Min of ty
67        | Clamp of ty        | Clamp of ty
68          | MapClamp of ty
69        | Lerp of ty        | Lerp of ty
70          | TensorIndex of ty * shape
71        | EigenVecs2x2        | EigenVecs2x2
72        | EigenVecs3x3        | EigenVecs3x3
73        | EigenVals2x2        | EigenVals2x2
74        | EigenVals3x3        | EigenVals3x3
75        | Zero of ty        | Zero of ty
76        | Select of ty * int        | Select of ty * int
       | Index of ty * int  
77        | Subscript of ty        | Subscript of ty
78        | MkDynamic of ty * int        | MkDynamic of ty * int
79        | Append of ty        | Append of ty
# Line 98  Line 96 
96        | R_Product of ty        | R_Product of ty
97        | R_Mean of ty        | R_Mean of ty
98        | R_Variance of ty        | R_Variance of ty
99          | BuildPos of int
100          | EvalKernel of int * Kernel.kernel * int
101        | Kernel of Kernel.kernel * int        | Kernel of Kernel.kernel * int
102        | Transform of ImageInfo.info        | Transform of ImageInfo.info
103        | Translate of ImageInfo.info        | Translate of ImageInfo.info
       | EvalKernel of int * Kernel.kernel * int  
       | VoxelAddress of ImageInfo.info * int  
       | VoxelAddressWithCtl of ImageInfo.info * int * idxctl  
104        | LoadVoxels of ImageInfo.info * int        | LoadVoxels of ImageInfo.info * int
105          | LoadVoxelsWithCtl of ImageInfo.info * int * idxctl
106        | Inside of ImageInfo.info * int        | Inside of ImageInfo.info * int
107        | ImageDim of ImageInfo.info * int        | ImageDim of ImageInfo.info * int
108          | BorderCtlDefault of ImageInfo.info
109          | BorderCtlClamp of ImageInfo.info
110          | BorderCtlMirror of ImageInfo.info
111          | BorderCtlWrap of ImageInfo.info
112        | LoadSeq of ty * string        | LoadSeq of ty * string
113        | LoadImage of ty * string        | LoadImage of ty * string
114        | Print of tys        | Print of tys
# Line 129  Line 131 
131        | resultArity (Max _) = 1        | resultArity (Max _) = 1
132        | resultArity (Min _) = 1        | resultArity (Min _) = 1
133        | resultArity (Clamp _) = 1        | resultArity (Clamp _) = 1
134          | resultArity (MapClamp _) = 1
135        | resultArity (Lerp _) = 1        | resultArity (Lerp _) = 1
136          | resultArity (TensorIndex _) = 1
137        | resultArity EigenVecs2x2 = 1        | resultArity EigenVecs2x2 = 1
138        | resultArity EigenVecs3x3 = 1        | resultArity EigenVecs3x3 = 1
139        | resultArity EigenVals2x2 = 1        | resultArity EigenVals2x2 = 1
140        | resultArity EigenVals3x3 = 1        | resultArity EigenVals3x3 = 1
141        | resultArity (Zero _) = 1        | resultArity (Zero _) = 1
142        | resultArity (Select _) = 1        | resultArity (Select _) = 1
       | resultArity (Index _) = 1  
143        | resultArity (Subscript _) = 1        | resultArity (Subscript _) = 1
144        | resultArity (MkDynamic _) = 1        | resultArity (MkDynamic _) = 1
145        | resultArity (Append _) = 2        | resultArity (Append _) = 1
146        | resultArity (Prepend _) = 2        | resultArity (Prepend _) = 1
147        | resultArity (Concat _) = 2        | resultArity (Concat _) = 1
148        | resultArity Range = 2        | resultArity Range = 1
149        | resultArity (Length _) = 1        | resultArity (Length _) = 1
150        | resultArity (SphereQuery _) = 1        | resultArity (SphereQuery _) = 1
151        | resultArity (Ceiling _) = 1        | resultArity (Ceiling _) = 1
# Line 159  Line 162 
162        | resultArity (R_Product _) = 1        | resultArity (R_Product _) = 1
163        | resultArity (R_Mean _) = 1        | resultArity (R_Mean _) = 1
164        | resultArity (R_Variance _) = 1        | resultArity (R_Variance _) = 1
165          | resultArity (BuildPos _) = 1
166          | resultArity (EvalKernel _) = 1
167        | resultArity (Kernel _) = 1        | resultArity (Kernel _) = 1
168        | resultArity (Transform _) = 1        | resultArity (Transform _) = 1
169        | resultArity (Translate _) = 1        | resultArity (Translate _) = 1
       | resultArity (EvalKernel _) = 1  
       | resultArity (VoxelAddress _) = 1  
       | resultArity (VoxelAddressWithCtl _) = 1  
170        | resultArity (LoadVoxels _) = 1        | resultArity (LoadVoxels _) = 1
171          | resultArity (LoadVoxelsWithCtl _) = 1
172        | resultArity (Inside _) = 1        | resultArity (Inside _) = 1
173        | resultArity (ImageDim _) = 1        | resultArity (ImageDim _) = 1
174          | resultArity (BorderCtlDefault _) = 1
175          | resultArity (BorderCtlClamp _) = 1
176          | resultArity (BorderCtlMirror _) = 1
177          | resultArity (BorderCtlWrap _) = 1
178        | resultArity (LoadSeq _) = 1        | resultArity (LoadSeq _) = 1
179        | resultArity (LoadImage _) = 1        | resultArity (LoadImage _) = 1
180        | resultArity (Print _) = 0        | resultArity (Print _) = 0
# Line 190  Line 197 
197        | arity (Max _) = 2        | arity (Max _) = 2
198        | arity (Min _) = 2        | arity (Min _) = 2
199        | arity (Clamp _) = 3        | arity (Clamp _) = 3
200          | arity (MapClamp _) = 3
201        | arity (Lerp _) = 3        | arity (Lerp _) = 3
202          | arity (TensorIndex _) = 1
203        | arity EigenVecs2x2 = 1        | arity EigenVecs2x2 = 1
204        | arity EigenVecs3x3 = 1        | arity EigenVecs3x3 = 1
205        | arity EigenVals2x2 = 1        | arity EigenVals2x2 = 1
206        | arity EigenVals3x3 = 1        | arity EigenVals3x3 = 1
207        | arity (Zero _) = 0        | arity (Zero _) = 0
208        | arity (Select _) = 1        | arity (Select _) = 1
       | arity (Index _) = 1  
209        | arity (Subscript _) = 2        | arity (Subscript _) = 2
210        | arity (MkDynamic _) = 1        | arity (MkDynamic _) = 1
211        | arity (Append _) = 1        | arity (Append _) = 2
212        | arity (Prepend _) = 1        | arity (Prepend _) = 2
213        | arity (Concat _) = 1        | arity (Concat _) = 2
214        | arity Range = 1        | arity Range = 2
215        | arity (Length _) = 1        | arity (Length _) = 1
216        | arity (SphereQuery _) = 2        | arity (SphereQuery _) = 2
217        | arity (Ceiling _) = 1        | arity (Ceiling _) = 1
# Line 220  Line 228 
228        | arity (R_Product _) = 3        | arity (R_Product _) = 3
229        | arity (R_Mean _) = 3        | arity (R_Mean _) = 3
230        | arity (R_Variance _) = 4        | arity (R_Variance _) = 4
231          | arity (BuildPos _) = 1
232          | arity (EvalKernel _) = 1
233        | arity (Kernel _) = 0        | arity (Kernel _) = 0
234        | arity (Transform _) = 1        | arity (Transform _) = 1
235        | arity (Translate _) = 1        | arity (Translate _) = 1
236        | arity (EvalKernel _) = 1        | arity (LoadVoxels _) = 2
237        | arity (VoxelAddress _) = ~1        | arity (LoadVoxelsWithCtl _) = 2
       | arity (VoxelAddressWithCtl _) = ~1  
       | arity (LoadVoxels _) = 1  
238        | arity (Inside _) = 2        | arity (Inside _) = 2
239        | arity (ImageDim _) = 1        | arity (ImageDim _) = 1
240          | arity (BorderCtlDefault _) = 2
241          | arity (BorderCtlClamp _) = 1
242          | arity (BorderCtlMirror _) = 1
243          | arity (BorderCtlWrap _) = 1
244        | arity (LoadSeq _) = 0        | arity (LoadSeq _) = 0
245        | arity (LoadImage _) = 0        | arity (LoadImage _) = 0
246        | arity (Print _) = ~1        | arity (Print _) = ~1
# Line 258  Line 270 
270        | same (Max(a0), Max(b0)) = samety(a0, b0)        | same (Max(a0), Max(b0)) = samety(a0, b0)
271        | same (Min(a0), Min(b0)) = samety(a0, b0)        | same (Min(a0), Min(b0)) = samety(a0, b0)
272        | same (Clamp(a0), Clamp(b0)) = samety(a0, b0)        | same (Clamp(a0), Clamp(b0)) = samety(a0, b0)
273          | same (MapClamp(a0), MapClamp(b0)) = samety(a0, b0)
274        | same (Lerp(a0), Lerp(b0)) = samety(a0, b0)        | same (Lerp(a0), Lerp(b0)) = samety(a0, b0)
275          | same (TensorIndex(a0,a1), TensorIndex(b0,b1)) = samety(a0, b0) andalso sameshape(a1, b1)
276        | same (EigenVecs2x2, EigenVecs2x2) = true        | same (EigenVecs2x2, EigenVecs2x2) = true
277        | same (EigenVecs3x3, EigenVecs3x3) = true        | same (EigenVecs3x3, EigenVecs3x3) = true
278        | same (EigenVals2x2, EigenVals2x2) = true        | same (EigenVals2x2, EigenVals2x2) = true
279        | same (EigenVals3x3, EigenVals3x3) = true        | same (EigenVals3x3, EigenVals3x3) = true
280        | same (Zero(a0), Zero(b0)) = samety(a0, b0)        | same (Zero(a0), Zero(b0)) = samety(a0, b0)
281        | same (Select(a0,a1), Select(b0,b1)) = samety(a0, b0) andalso sameint(a1, b1)        | same (Select(a0,a1), Select(b0,b1)) = samety(a0, b0) andalso sameint(a1, b1)
       | same (Index(a0,a1), Index(b0,b1)) = samety(a0, b0) andalso sameint(a1, b1)  
282        | same (Subscript(a0), Subscript(b0)) = samety(a0, b0)        | same (Subscript(a0), Subscript(b0)) = samety(a0, b0)
283        | same (MkDynamic(a0,a1), MkDynamic(b0,b1)) = samety(a0, b0) andalso sameint(a1, b1)        | same (MkDynamic(a0,a1), MkDynamic(b0,b1)) = samety(a0, b0) andalso sameint(a1, b1)
284        | same (Append(a0), Append(b0)) = samety(a0, b0)        | same (Append(a0), Append(b0)) = samety(a0, b0)
# Line 288  Line 301 
301        | same (R_Product(a0), R_Product(b0)) = samety(a0, b0)        | same (R_Product(a0), R_Product(b0)) = samety(a0, b0)
302        | same (R_Mean(a0), R_Mean(b0)) = samety(a0, b0)        | same (R_Mean(a0), R_Mean(b0)) = samety(a0, b0)
303        | same (R_Variance(a0), R_Variance(b0)) = samety(a0, b0)        | same (R_Variance(a0), R_Variance(b0)) = samety(a0, b0)
304          | same (BuildPos(a0), BuildPos(b0)) = sameint(a0, b0)
305          | same (EvalKernel(a0,a1,a2), EvalKernel(b0,b1,b2)) = sameint(a0, b0) andalso Kernel.same(a1, b1) andalso sameint(a2, b2)
306        | same (Kernel(a0,a1), Kernel(b0,b1)) = Kernel.same(a0, b0) andalso sameint(a1, b1)        | same (Kernel(a0,a1), Kernel(b0,b1)) = Kernel.same(a0, b0) andalso sameint(a1, b1)
307        | same (Transform(a0), Transform(b0)) = ImageInfo.same(a0, b0)        | same (Transform(a0), Transform(b0)) = ImageInfo.same(a0, b0)
308        | same (Translate(a0), Translate(b0)) = ImageInfo.same(a0, b0)        | same (Translate(a0), Translate(b0)) = ImageInfo.same(a0, b0)
       | same (EvalKernel(a0,a1,a2), EvalKernel(b0,b1,b2)) = sameint(a0, b0) andalso Kernel.same(a1, b1) andalso sameint(a2, b2)  
       | same (VoxelAddress(a0,a1), VoxelAddress(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)  
       | same (VoxelAddressWithCtl(a0,a1,a2), VoxelAddressWithCtl(b0,b1,b2)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1) andalso sameidxctl(a2, b2)  
309        | same (LoadVoxels(a0,a1), LoadVoxels(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)        | same (LoadVoxels(a0,a1), LoadVoxels(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)
310          | same (LoadVoxelsWithCtl(a0,a1,a2), LoadVoxelsWithCtl(b0,b1,b2)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1) andalso sameidxctl(a2, b2)
311        | same (Inside(a0,a1), Inside(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)        | same (Inside(a0,a1), Inside(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)
312        | same (ImageDim(a0,a1), ImageDim(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)        | same (ImageDim(a0,a1), ImageDim(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)
313          | same (BorderCtlDefault(a0), BorderCtlDefault(b0)) = ImageInfo.same(a0, b0)
314          | same (BorderCtlClamp(a0), BorderCtlClamp(b0)) = ImageInfo.same(a0, b0)
315          | same (BorderCtlMirror(a0), BorderCtlMirror(b0)) = ImageInfo.same(a0, b0)
316          | same (BorderCtlWrap(a0), BorderCtlWrap(b0)) = ImageInfo.same(a0, b0)
317        | same (LoadSeq(a0,a1), LoadSeq(b0,b1)) = samety(a0, b0) andalso samestring(a1, b1)        | same (LoadSeq(a0,a1), LoadSeq(b0,b1)) = samety(a0, b0) andalso samestring(a1, b1)
318        | same (LoadImage(a0,a1), LoadImage(b0,b1)) = samety(a0, b0) andalso samestring(a1, b1)        | same (LoadImage(a0,a1), LoadImage(b0,b1)) = samety(a0, b0) andalso samestring(a1, b1)
319        | same (Print(a0), Print(b0)) = sametys(a0, b0)        | same (Print(a0), Print(b0)) = sametys(a0, b0)
# Line 320  Line 337 
337        | hash (Max(a0)) = 0w53 + hashty a0        | hash (Max(a0)) = 0w53 + hashty a0
338        | hash (Min(a0)) = 0w59 + hashty a0        | hash (Min(a0)) = 0w59 + hashty a0
339        | hash (Clamp(a0)) = 0w61 + hashty a0        | hash (Clamp(a0)) = 0w61 + hashty a0
340        | hash (Lerp(a0)) = 0w67 + hashty a0        | hash (MapClamp(a0)) = 0w67 + hashty a0
341        | hash EigenVecs2x2 = 0w71        | hash (Lerp(a0)) = 0w71 + hashty a0
342        | hash EigenVecs3x3 = 0w73        | hash (TensorIndex(a0,a1)) = 0w73 + hashty a0 + hashshape a1
343        | hash EigenVals2x2 = 0w79        | hash EigenVecs2x2 = 0w79
344        | hash EigenVals3x3 = 0w83        | hash EigenVecs3x3 = 0w83
345        | hash (Zero(a0)) = 0w89 + hashty a0        | hash EigenVals2x2 = 0w89
346        | hash (Select(a0,a1)) = 0w97 + hashty a0 + hashint a1        | hash EigenVals3x3 = 0w97
347        | hash (Index(a0,a1)) = 0w101 + hashty a0 + hashint a1        | hash (Zero(a0)) = 0w101 + hashty a0
348        | hash (Subscript(a0)) = 0w103 + hashty a0        | hash (Select(a0,a1)) = 0w103 + hashty a0 + hashint a1
349        | hash (MkDynamic(a0,a1)) = 0w107 + hashty a0 + hashint a1        | hash (Subscript(a0)) = 0w107 + hashty a0
350        | hash (Append(a0)) = 0w109 + hashty a0        | hash (MkDynamic(a0,a1)) = 0w109 + hashty a0 + hashint a1
351        | hash (Prepend(a0)) = 0w113 + hashty a0        | hash (Append(a0)) = 0w113 + hashty a0
352        | hash (Concat(a0)) = 0w127 + hashty a0        | hash (Prepend(a0)) = 0w127 + hashty a0
353        | hash Range = 0w131        | hash (Concat(a0)) = 0w131 + hashty a0
354        | hash (Length(a0)) = 0w137 + hashty a0        | hash Range = 0w137
355        | hash (SphereQuery(a0,a1)) = 0w139 + hashty a0 + hashty a1        | hash (Length(a0)) = 0w139 + hashty a0
356        | hash (Ceiling(a0)) = 0w149 + hashint a0        | hash (SphereQuery(a0,a1)) = 0w149 + hashty a0 + hashty a1
357        | hash (Floor(a0)) = 0w151 + hashint a0        | hash (Ceiling(a0)) = 0w151 + hashint a0
358        | hash (Round(a0)) = 0w157 + hashint a0        | hash (Floor(a0)) = 0w157 + hashint a0
359        | hash (Trunc(a0)) = 0w163 + hashint a0        | hash (Round(a0)) = 0w163 + hashint a0
360        | hash IntToReal = 0w167        | hash (Trunc(a0)) = 0w167 + hashint a0
361        | hash (RealToInt(a0)) = 0w173 + hashint a0        | hash IntToReal = 0w173
362        | hash (R_All(a0)) = 0w179 + hashty a0        | hash (RealToInt(a0)) = 0w179 + hashint a0
363        | hash (R_Exists(a0)) = 0w181 + hashty a0        | hash (R_All(a0)) = 0w181 + hashty a0
364        | hash (R_Max(a0)) = 0w191 + hashty a0        | hash (R_Exists(a0)) = 0w191 + hashty a0
365        | hash (R_Min(a0)) = 0w193 + hashty a0        | hash (R_Max(a0)) = 0w193 + hashty a0
366        | hash (R_Sum(a0)) = 0w197 + hashty a0        | hash (R_Min(a0)) = 0w197 + hashty a0
367        | hash (R_Product(a0)) = 0w199 + hashty a0        | hash (R_Sum(a0)) = 0w199 + hashty a0
368        | hash (R_Mean(a0)) = 0w211 + hashty a0        | hash (R_Product(a0)) = 0w211 + hashty a0
369        | hash (R_Variance(a0)) = 0w223 + hashty a0        | hash (R_Mean(a0)) = 0w223 + hashty a0
370        | hash (Kernel(a0,a1)) = 0w227 + Kernel.hash a0 + hashint a1        | hash (R_Variance(a0)) = 0w227 + hashty a0
371        | hash (Transform(a0)) = 0w229 + ImageInfo.hash a0        | hash (BuildPos(a0)) = 0w229 + hashint a0
372        | hash (Translate(a0)) = 0w233 + ImageInfo.hash a0        | hash (EvalKernel(a0,a1,a2)) = 0w233 + hashint a0 + Kernel.hash a1 + hashint a2
373        | hash (EvalKernel(a0,a1,a2)) = 0w239 + hashint a0 + Kernel.hash a1 + hashint a2        | hash (Kernel(a0,a1)) = 0w239 + Kernel.hash a0 + hashint a1
374        | hash (VoxelAddress(a0,a1)) = 0w241 + ImageInfo.hash a0 + hashint a1        | hash (Transform(a0)) = 0w241 + ImageInfo.hash a0
375        | hash (VoxelAddressWithCtl(a0,a1,a2)) = 0w251 + ImageInfo.hash a0 + hashint a1 + hashidxctl a2        | hash (Translate(a0)) = 0w251 + ImageInfo.hash a0
376        | hash (LoadVoxels(a0,a1)) = 0w257 + ImageInfo.hash a0 + hashint a1        | hash (LoadVoxels(a0,a1)) = 0w257 + ImageInfo.hash a0 + hashint a1
377        | hash (Inside(a0,a1)) = 0w263 + ImageInfo.hash a0 + hashint a1        | hash (LoadVoxelsWithCtl(a0,a1,a2)) = 0w263 + ImageInfo.hash a0 + hashint a1 + hashidxctl a2
378        | hash (ImageDim(a0,a1)) = 0w269 + ImageInfo.hash a0 + hashint a1        | hash (Inside(a0,a1)) = 0w269 + ImageInfo.hash a0 + hashint a1
379        | hash (LoadSeq(a0,a1)) = 0w271 + hashty a0 + hashstring a1        | hash (ImageDim(a0,a1)) = 0w271 + ImageInfo.hash a0 + hashint a1
380        | hash (LoadImage(a0,a1)) = 0w277 + hashty a0 + hashstring a1        | hash (BorderCtlDefault(a0)) = 0w277 + ImageInfo.hash a0
381        | hash (Print(a0)) = 0w281 + hashtys a0        | hash (BorderCtlClamp(a0)) = 0w281 + ImageInfo.hash a0
382        | hash (MathFn(a0)) = 0w283 + MathFns.hash a0        | hash (BorderCtlMirror(a0)) = 0w283 + ImageInfo.hash a0
383          | hash (BorderCtlWrap(a0)) = 0w293 + ImageInfo.hash a0
384          | hash (LoadSeq(a0,a1)) = 0w307 + hashty a0 + hashstring a1
385          | hash (LoadImage(a0,a1)) = 0w311 + hashty a0 + hashstring a1
386          | hash (Print(a0)) = 0w313 + hashtys a0
387          | hash (MathFn(a0)) = 0w317 + MathFns.hash a0
388    
389      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
390        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 381  Line 403 
403        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]
404        | toString (Min(a0)) = concat["Min<", tyToString a0, ">"]        | toString (Min(a0)) = concat["Min<", tyToString a0, ">"]
405        | toString (Clamp(a0)) = concat["Clamp<", tyToString a0, ">"]        | toString (Clamp(a0)) = concat["Clamp<", tyToString a0, ">"]
406          | toString (MapClamp(a0)) = concat["MapClamp<", tyToString a0, ">"]
407        | toString (Lerp(a0)) = concat["Lerp<", tyToString a0, ">"]        | toString (Lerp(a0)) = concat["Lerp<", tyToString a0, ">"]
408          | toString (TensorIndex(a0,a1)) = concat["TensorIndex<", tyToString a0, ",", shapeToString a1, ">"]
409        | toString EigenVecs2x2 = "EigenVecs2x2"        | toString EigenVecs2x2 = "EigenVecs2x2"
410        | toString EigenVecs3x3 = "EigenVecs3x3"        | toString EigenVecs3x3 = "EigenVecs3x3"
411        | toString EigenVals2x2 = "EigenVals2x2"        | toString EigenVals2x2 = "EigenVals2x2"
412        | toString EigenVals3x3 = "EigenVals3x3"        | toString EigenVals3x3 = "EigenVals3x3"
413        | toString (Zero(a0)) = concat["Zero<", tyToString a0, ">"]        | toString (Zero(a0)) = concat["Zero<", tyToString a0, ">"]
414        | toString (Select(a0,a1)) = concat["Select<", tyToString a0, ",", intToString a1, ">"]        | toString (Select(a0,a1)) = concat["Select<", tyToString a0, ",", intToString a1, ">"]
       | toString (Index(a0,a1)) = concat["Index<", tyToString a0, ",", intToString a1, ">"]  
415        | toString (Subscript(a0)) = concat["Subscript<", tyToString a0, ">"]        | toString (Subscript(a0)) = concat["Subscript<", tyToString a0, ">"]
416        | toString (MkDynamic(a0,a1)) = concat["MkDynamic<", tyToString a0, ",", intToString a1, ">"]        | toString (MkDynamic(a0,a1)) = concat["MkDynamic<", tyToString a0, ",", intToString a1, ">"]
417        | toString (Append(a0)) = concat["Append<", tyToString a0, ">"]        | toString (Append(a0)) = concat["Append<", tyToString a0, ">"]
# Line 411  Line 434 
434        | toString (R_Product(a0)) = concat["R_Product<", tyToString a0, ">"]        | toString (R_Product(a0)) = concat["R_Product<", tyToString a0, ">"]
435        | toString (R_Mean(a0)) = concat["R_Mean<", tyToString a0, ">"]        | toString (R_Mean(a0)) = concat["R_Mean<", tyToString a0, ">"]
436        | toString (R_Variance(a0)) = concat["R_Variance<", tyToString a0, ">"]        | toString (R_Variance(a0)) = concat["R_Variance<", tyToString a0, ">"]
437          | toString (BuildPos(a0)) = concat["BuildPos<", intToString a0, ">"]
438          | toString (EvalKernel(a0,a1,a2)) = concat["EvalKernel<", intToString a0, ",", Kernel.toString a1, ",", intToString a2, ">"]
439        | toString (Kernel(a0,a1)) = concat["Kernel<", Kernel.toString a0, ",", intToString a1, ">"]        | toString (Kernel(a0,a1)) = concat["Kernel<", Kernel.toString a0, ",", intToString a1, ">"]
440        | toString (Transform(a0)) = concat["Transform<", ImageInfo.toString a0, ">"]        | toString (Transform(a0)) = concat["Transform<", ImageInfo.toString a0, ">"]
441        | toString (Translate(a0)) = concat["Translate<", ImageInfo.toString a0, ">"]        | toString (Translate(a0)) = concat["Translate<", ImageInfo.toString a0, ">"]
       | toString (EvalKernel(a0,a1,a2)) = concat["EvalKernel<", intToString a0, ",", Kernel.toString a1, ",", intToString a2, ">"]  
       | toString (VoxelAddress(a0,a1)) = concat["VoxelAddress<", ImageInfo.toString a0, ",", intToString a1, ">"]  
       | toString (VoxelAddressWithCtl(a0,a1,a2)) = concat["VoxelAddressWithCtl<", ImageInfo.toString a0, ",", intToString a1, ",", idxctlToString a2, ">"]  
442        | toString (LoadVoxels(a0,a1)) = concat["LoadVoxels<", ImageInfo.toString a0, ",", intToString a1, ">"]        | toString (LoadVoxels(a0,a1)) = concat["LoadVoxels<", ImageInfo.toString a0, ",", intToString a1, ">"]
443          | toString (LoadVoxelsWithCtl(a0,a1,a2)) = concat["LoadVoxelsWithCtl<", ImageInfo.toString a0, ",", intToString a1, ",", idxctlToString a2, ">"]
444        | toString (Inside(a0,a1)) = concat["Inside<", ImageInfo.toString a0, ",", intToString a1, ">"]        | toString (Inside(a0,a1)) = concat["Inside<", ImageInfo.toString a0, ",", intToString a1, ">"]
445        | toString (ImageDim(a0,a1)) = concat["ImageDim<", ImageInfo.toString a0, ",", intToString a1, ">"]        | toString (ImageDim(a0,a1)) = concat["ImageDim<", ImageInfo.toString a0, ",", intToString a1, ">"]
446          | toString (BorderCtlDefault(a0)) = concat["BorderCtlDefault<", ImageInfo.toString a0, ">"]
447          | toString (BorderCtlClamp(a0)) = concat["BorderCtlClamp<", ImageInfo.toString a0, ">"]
448          | toString (BorderCtlMirror(a0)) = concat["BorderCtlMirror<", ImageInfo.toString a0, ">"]
449          | toString (BorderCtlWrap(a0)) = concat["BorderCtlWrap<", ImageInfo.toString a0, ">"]
450        | toString (LoadSeq(a0,a1)) = concat["LoadSeq<", tyToString a0, ",", stringToString a1, ">"]        | toString (LoadSeq(a0,a1)) = concat["LoadSeq<", tyToString a0, ",", stringToString a1, ">"]
451        | toString (LoadImage(a0,a1)) = concat["LoadImage<", tyToString a0, ",", stringToString a1, ">"]        | toString (LoadImage(a0,a1)) = concat["LoadImage<", tyToString a0, ",", stringToString a1, ">"]
452        | toString (Print(a0)) = concat["Print<", tysToString a0, ">"]        | toString (Print(a0)) = concat["Print<", tysToString a0, ">"]

Legend:
Removed from v.3628  
changed lines
  Added in v.3866

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