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

SCM Repository

[diderot] Diff of /trunk/src/compiler/mid-il/mid-il.sml
ViewVC logotype

Diff of /trunk/src/compiler/mid-il/mid-il.sml

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

revision 349, Fri Sep 24 00:24:20 2010 UTC revision 1232, Mon May 16 23:37:52 2011 UTC
# Line 1  Line 1 
1  (* mid-il.sml  (* mid-il.sml
2   *   *
3   * COPYRIGHT (c) 2010 The Diderot Project (http://diderot.cs.uchicago.edu)   * COPYRIGHT (c) 2010 The Diderot Project (http://diderot-language.cs.uchicago.edu)
4   * All rights reserved.   * All rights reserved.
5   *   *
6   * Middle-level version of the Diderot IL.   * Middle-level version of the Diderot IL.
# Line 11  Line 11 
11  structure MidOps =  structure MidOps =
12    struct    struct
13    
14      datatype ty = BoolTy | StringTy | IntTy | VecTy of int      type ty = MidILTypes.ty
15    
16      val realTy = VecTy 0      val samety = MidILTypes.same
17        val hashty = MidILTypes.hash
18      fun samety (ty1 : ty, ty2) = (ty1 = ty2)      val tyToString = MidILTypes.toString
     fun hashty BoolTy = 0w1  
       | hashty StringTy = 0w2  
       | hashty IntTy = 0w3  
       | hashty (VecTy d) = Word.fromInt d + 0w4  
     fun tyToString BoolTy = "bool"  
       | tyToString StringTy = "string"  
       | tyToString IntTy = "int"  
       | tyToString (VecTy 0) = "real"  
       | tyToString (VecTy d) = "vec" ^ Int.toString d  
19    
20      (* required helper functions for the int type *)
21      fun sameint (i1 : int, i2) = (i1 = i2)      fun sameint (i1 : int, i2) = (i1 = i2)
22      fun hashint i = Word.fromInt i      fun hashint i = Word.fromInt i
23      fun intToString i = Int.toString i      fun intToString i = Int.toString i
24    
25      (* required helper functions for the string type *)
26      fun samestring (s1 : string, s2) = (s1 = s2)      fun samestring (s1 : string, s2) = (s1 = s2)
27      val hashstring = HashString.hashString      val hashstring = HashString.hashString
28      fun stringToString s = String.concat["\"", s, "\""]      fun stringToString s = String.concat["\"", s, "\""]
# Line 40  Line 33 
33        | Mul of ty        | Mul of ty
34        | Div of ty        | Div of ty
35        | Neg of ty        | Neg of ty
36          | Abs of ty
37        | LT of ty        | LT of ty
38        | LTE of ty        | LTE of ty
39        | EQ of ty        | EQ of ty
# Line 49  Line 43 
43        | Not        | Not
44        | Max        | Max
45        | Min        | Min
46        | Sin        | Lerp of ty
       | Cos  
       | Pow  
47        | Dot of int        | Dot of int
48          | MulVecMat of int * int
49          | MulMatVec of int * int
50          | MulMatMat of int * int * int
51        | Cross        | Cross
52        | Select of int * int        | Select of ty * int
53        | Norm of int        | Norm of ty
54        | Scale of int        | Normalize of int
55        | InvScale of int        | Scale of ty
56        | CL        | CL
57        | PrincipleEvec of ty        | PrincipleEvec of ty
58          | Identity of int
59          | Zero of ty
60          | Trace of int
61        | Subscript of ty        | Subscript of ty
62          | Ceiling of int
63        | Floor of int        | Floor of int
64          | Round of int
65          | Trunc of int
66        | IntToReal        | IntToReal
67        | TruncToInt of int        | RealToInt of int
68        | RoundToInt of int        | VoxelAddress of ImageInfo.info * int
69        | CeilToInt of int        | LoadVoxels of ImageInfo.info * int
70        | FloorToInt of int        | PosToImgSpace of ImageInfo.info
71        | VoxelAddress of ImageInfo.info        | TensorToWorldSpace of ImageInfo.info * ty
       | LoadVoxels of RawTypes.ty * int  
       | Transform of ImageInfo.info  
72        | EvalKernel of int * Kernel.kernel * int        | EvalKernel of int * Kernel.kernel * int
73        | LoadImage of ImageInfo.info        | LoadImage of ImageInfo.info
74        | Inside of ImageInfo.info        | Inside of ImageInfo.info * int
75        | Input of string        | Input of ty * string
76        | InputWithDefault of string        | InputWithDefault of ty * string
77    
78      fun arity (Add _) = 2      fun arity (Add _) = 2
79        | arity (Sub _) = 2        | arity (Sub _) = 2
80        | arity (Mul _) = 2        | arity (Mul _) = 2
81        | arity (Div _) = 2        | arity (Div _) = 2
82        | arity (Neg _) = 1        | arity (Neg _) = 1
83          | arity (Abs _) = 1
84        | arity (LT _) = 2        | arity (LT _) = 2
85        | arity (LTE _) = 2        | arity (LTE _) = 2
86        | arity (EQ _) = 2        | arity (EQ _) = 2
# Line 90  Line 90 
90        | arity Not = 1        | arity Not = 1
91        | arity Max = 2        | arity Max = 2
92        | arity Min = 2        | arity Min = 2
93        | arity Sin = 1        | arity (Lerp _) = 3
       | arity Cos = 1  
       | arity Pow = 2  
94        | arity (Dot _) = 2        | arity (Dot _) = 2
95          | arity (MulVecMat _) = 2
96          | arity (MulMatVec _) = 2
97          | arity (MulMatMat _) = 2
98        | arity Cross = 2        | arity Cross = 2
99        | arity (Select _) = 1        | arity (Select _) = 1
100        | arity (Norm _) = 1        | arity (Norm _) = 1
101          | arity (Normalize _) = 1
102        | arity (Scale _) = 2        | arity (Scale _) = 2
       | arity (InvScale _) = 2  
103        | arity CL = 1        | arity CL = 1
104        | arity (PrincipleEvec _) = 2        | arity (PrincipleEvec _) = 2
105          | arity (Identity _) = 0
106          | arity (Zero _) = 0
107          | arity (Trace _) = 1
108        | arity (Subscript _) = 2        | arity (Subscript _) = 2
109          | arity (Ceiling _) = 1
110        | arity (Floor _) = 1        | arity (Floor _) = 1
111          | arity (Round _) = 1
112          | arity (Trunc _) = 1
113        | arity IntToReal = 1        | arity IntToReal = 1
114        | arity (TruncToInt _) = 1        | arity (RealToInt _) = 1
       | arity (RoundToInt _) = 1  
       | arity (CeilToInt _) = 1  
       | arity (FloorToInt _) = 1  
115        | arity (VoxelAddress _) = ~1        | arity (VoxelAddress _) = ~1
116        | arity (LoadVoxels _) = 1        | arity (LoadVoxels _) = 1
117        | arity (Transform _) = 1        | arity (PosToImgSpace _) = 2
118          | arity (TensorToWorldSpace _) = 2
119        | arity (EvalKernel _) = 1        | arity (EvalKernel _) = 1
120        | arity (LoadImage _) = 0        | arity (LoadImage _) = 1
121        | arity (Inside _) = 1        | arity (Inside _) = 2
122        | arity (Input _) = 0        | arity (Input _) = 0
123        | arity (InputWithDefault _) = 1        | arity (InputWithDefault _) = 1
124    
# Line 122  Line 127 
127        | same (Mul(a0), Mul(b0)) = samety(a0, b0)        | same (Mul(a0), Mul(b0)) = samety(a0, b0)
128        | same (Div(a0), Div(b0)) = samety(a0, b0)        | same (Div(a0), Div(b0)) = samety(a0, b0)
129        | same (Neg(a0), Neg(b0)) = samety(a0, b0)        | same (Neg(a0), Neg(b0)) = samety(a0, b0)
130          | same (Abs(a0), Abs(b0)) = samety(a0, b0)
131        | same (LT(a0), LT(b0)) = samety(a0, b0)        | same (LT(a0), LT(b0)) = samety(a0, b0)
132        | same (LTE(a0), LTE(b0)) = samety(a0, b0)        | same (LTE(a0), LTE(b0)) = samety(a0, b0)
133        | same (EQ(a0), EQ(b0)) = samety(a0, b0)        | same (EQ(a0), EQ(b0)) = samety(a0, b0)
# Line 131  Line 137 
137        | same (Not, Not) = true        | same (Not, Not) = true
138        | same (Max, Max) = true        | same (Max, Max) = true
139        | same (Min, Min) = true        | same (Min, Min) = true
140        | same (Sin, Sin) = true        | same (Lerp(a0), Lerp(b0)) = samety(a0, b0)
       | same (Cos, Cos) = true  
       | same (Pow, Pow) = true  
141        | same (Dot(a0), Dot(b0)) = sameint(a0, b0)        | same (Dot(a0), Dot(b0)) = sameint(a0, b0)
142          | same (MulVecMat(a0,a1), MulVecMat(b0,b1)) = sameint(a0, b0) andalso sameint(a1, b1)
143          | same (MulMatVec(a0,a1), MulMatVec(b0,b1)) = sameint(a0, b0) andalso sameint(a1, b1)
144          | same (MulMatMat(a0,a1,a2), MulMatMat(b0,b1,b2)) = sameint(a0, b0) andalso sameint(a1, b1) andalso sameint(a2, b2)
145        | same (Cross, Cross) = true        | same (Cross, Cross) = true
146        | same (Select(a0,a1), Select(b0,b1)) = sameint(a0, b0) andalso sameint(a1, b1)        | same (Select(a0,a1), Select(b0,b1)) = samety(a0, b0) andalso sameint(a1, b1)
147        | same (Norm(a0), Norm(b0)) = sameint(a0, b0)        | same (Norm(a0), Norm(b0)) = samety(a0, b0)
148        | same (Scale(a0), Scale(b0)) = sameint(a0, b0)        | same (Normalize(a0), Normalize(b0)) = sameint(a0, b0)
149        | same (InvScale(a0), InvScale(b0)) = sameint(a0, b0)        | same (Scale(a0), Scale(b0)) = samety(a0, b0)
150        | same (CL, CL) = true        | same (CL, CL) = true
151        | same (PrincipleEvec(a0), PrincipleEvec(b0)) = samety(a0, b0)        | same (PrincipleEvec(a0), PrincipleEvec(b0)) = samety(a0, b0)
152          | same (Identity(a0), Identity(b0)) = sameint(a0, b0)
153          | same (Zero(a0), Zero(b0)) = samety(a0, b0)
154          | same (Trace(a0), Trace(b0)) = sameint(a0, b0)
155        | same (Subscript(a0), Subscript(b0)) = samety(a0, b0)        | same (Subscript(a0), Subscript(b0)) = samety(a0, b0)
156          | same (Ceiling(a0), Ceiling(b0)) = sameint(a0, b0)
157        | same (Floor(a0), Floor(b0)) = sameint(a0, b0)        | same (Floor(a0), Floor(b0)) = sameint(a0, b0)
158          | same (Round(a0), Round(b0)) = sameint(a0, b0)
159          | same (Trunc(a0), Trunc(b0)) = sameint(a0, b0)
160        | same (IntToReal, IntToReal) = true        | same (IntToReal, IntToReal) = true
161        | same (TruncToInt(a0), TruncToInt(b0)) = sameint(a0, b0)        | same (RealToInt(a0), RealToInt(b0)) = sameint(a0, b0)
162        | same (RoundToInt(a0), RoundToInt(b0)) = sameint(a0, b0)        | same (VoxelAddress(a0,a1), VoxelAddress(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)
163        | same (CeilToInt(a0), CeilToInt(b0)) = sameint(a0, b0)        | same (LoadVoxels(a0,a1), LoadVoxels(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)
164        | same (FloorToInt(a0), FloorToInt(b0)) = sameint(a0, b0)        | same (PosToImgSpace(a0), PosToImgSpace(b0)) = ImageInfo.same(a0, b0)
165        | same (VoxelAddress(a0), VoxelAddress(b0)) = ImageInfo.same(a0, b0)        | same (TensorToWorldSpace(a0,a1), TensorToWorldSpace(b0,b1)) = ImageInfo.same(a0, b0) andalso samety(a1, b1)
       | same (LoadVoxels(a0,a1), LoadVoxels(b0,b1)) = RawTypes.same(a0, b0) andalso sameint(a1, b1)  
       | same (Transform(a0), Transform(b0)) = ImageInfo.same(a0, b0)  
166        | same (EvalKernel(a0,a1,a2), EvalKernel(b0,b1,b2)) = sameint(a0, b0) andalso Kernel.same(a1, b1) andalso sameint(a2, b2)        | same (EvalKernel(a0,a1,a2), EvalKernel(b0,b1,b2)) = sameint(a0, b0) andalso Kernel.same(a1, b1) andalso sameint(a2, b2)
167        | same (LoadImage(a0), LoadImage(b0)) = ImageInfo.same(a0, b0)        | same (LoadImage(a0), LoadImage(b0)) = ImageInfo.same(a0, b0)
168        | same (Inside(a0), Inside(b0)) = ImageInfo.same(a0, b0)        | same (Inside(a0,a1), Inside(b0,b1)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1)
169        | same (Input(a0), Input(b0)) = samestring(a0, b0)        | same (Input(a0,a1), Input(b0,b1)) = samety(a0, b0) andalso samestring(a1, b1)
170        | same (InputWithDefault(a0), InputWithDefault(b0)) = samestring(a0, b0)        | same (InputWithDefault(a0,a1), InputWithDefault(b0,b1)) = samety(a0, b0) andalso samestring(a1, b1)
171        | same _ = false        | same _ = false
172    
173      fun hash (Add(a0)) = 0w3 + hashty a0      fun hash (Add(a0)) = 0w3 + hashty a0
# Line 164  Line 175 
175        | hash (Mul(a0)) = 0w7 + hashty a0        | hash (Mul(a0)) = 0w7 + hashty a0
176        | hash (Div(a0)) = 0w11 + hashty a0        | hash (Div(a0)) = 0w11 + hashty a0
177        | hash (Neg(a0)) = 0w13 + hashty a0        | hash (Neg(a0)) = 0w13 + hashty a0
178        | hash (LT(a0)) = 0w17 + hashty a0        | hash (Abs(a0)) = 0w17 + hashty a0
179        | hash (LTE(a0)) = 0w19 + hashty a0        | hash (LT(a0)) = 0w19 + hashty a0
180        | hash (EQ(a0)) = 0w23 + hashty a0        | hash (LTE(a0)) = 0w23 + hashty a0
181        | hash (NEQ(a0)) = 0w29 + hashty a0        | hash (EQ(a0)) = 0w29 + hashty a0
182        | hash (GT(a0)) = 0w31 + hashty a0        | hash (NEQ(a0)) = 0w31 + hashty a0
183        | hash (GTE(a0)) = 0w37 + hashty a0        | hash (GT(a0)) = 0w37 + hashty a0
184        | hash Not = 0w41        | hash (GTE(a0)) = 0w41 + hashty a0
185        | hash Max = 0w43        | hash Not = 0w43
186        | hash Min = 0w47        | hash Max = 0w47
187        | hash Sin = 0w53        | hash Min = 0w53
188        | hash Cos = 0w59        | hash (Lerp(a0)) = 0w59 + hashty a0
189        | hash Pow = 0w61        | hash (Dot(a0)) = 0w61 + hashint a0
190        | hash (Dot(a0)) = 0w67 + hashint a0        | hash (MulVecMat(a0,a1)) = 0w67 + hashint a0 + hashint a1
191        | hash Cross = 0w71        | hash (MulMatVec(a0,a1)) = 0w71 + hashint a0 + hashint a1
192        | hash (Select(a0,a1)) = 0w73 + hashint a0 + hashint a1        | hash (MulMatMat(a0,a1,a2)) = 0w73 + hashint a0 + hashint a1 + hashint a2
193        | hash (Norm(a0)) = 0w79 + hashint a0        | hash Cross = 0w79
194        | hash (Scale(a0)) = 0w83 + hashint a0        | hash (Select(a0,a1)) = 0w83 + hashty a0 + hashint a1
195        | hash (InvScale(a0)) = 0w89 + hashint a0        | hash (Norm(a0)) = 0w89 + hashty a0
196        | hash CL = 0w97        | hash (Normalize(a0)) = 0w97 + hashint a0
197        | hash (PrincipleEvec(a0)) = 0w101 + hashty a0        | hash (Scale(a0)) = 0w101 + hashty a0
198        | hash (Subscript(a0)) = 0w103 + hashty a0        | hash CL = 0w103
199        | hash (Floor(a0)) = 0w107 + hashint a0        | hash (PrincipleEvec(a0)) = 0w107 + hashty a0
200        | hash IntToReal = 0w109        | hash (Identity(a0)) = 0w109 + hashint a0
201        | hash (TruncToInt(a0)) = 0w113 + hashint a0        | hash (Zero(a0)) = 0w113 + hashty a0
202        | hash (RoundToInt(a0)) = 0w127 + hashint a0        | hash (Trace(a0)) = 0w127 + hashint a0
203        | hash (CeilToInt(a0)) = 0w131 + hashint a0        | hash (Subscript(a0)) = 0w131 + hashty a0
204        | hash (FloorToInt(a0)) = 0w137 + hashint a0        | hash (Ceiling(a0)) = 0w137 + hashint a0
205        | hash (VoxelAddress(a0)) = 0w139 + ImageInfo.hash a0        | hash (Floor(a0)) = 0w139 + hashint a0
206        | hash (LoadVoxels(a0,a1)) = 0w149 + RawTypes.hash a0 + hashint a1        | hash (Round(a0)) = 0w149 + hashint a0
207        | hash (Transform(a0)) = 0w151 + ImageInfo.hash a0        | hash (Trunc(a0)) = 0w151 + hashint a0
208        | hash (EvalKernel(a0,a1,a2)) = 0w157 + hashint a0 + Kernel.hash a1 + hashint a2        | hash IntToReal = 0w157
209        | hash (LoadImage(a0)) = 0w163 + ImageInfo.hash a0        | hash (RealToInt(a0)) = 0w163 + hashint a0
210        | hash (Inside(a0)) = 0w167 + ImageInfo.hash a0        | hash (VoxelAddress(a0,a1)) = 0w167 + ImageInfo.hash a0 + hashint a1
211        | hash (Input(a0)) = 0w173 + hashstring a0        | hash (LoadVoxels(a0,a1)) = 0w173 + ImageInfo.hash a0 + hashint a1
212        | hash (InputWithDefault(a0)) = 0w179 + hashstring a0        | hash (PosToImgSpace(a0)) = 0w179 + ImageInfo.hash a0
213          | hash (TensorToWorldSpace(a0,a1)) = 0w181 + ImageInfo.hash a0 + hashty a1
214          | hash (EvalKernel(a0,a1,a2)) = 0w191 + hashint a0 + Kernel.hash a1 + hashint a2
215          | hash (LoadImage(a0)) = 0w193 + ImageInfo.hash a0
216          | hash (Inside(a0,a1)) = 0w197 + ImageInfo.hash a0 + hashint a1
217          | hash (Input(a0,a1)) = 0w199 + hashty a0 + hashstring a1
218          | hash (InputWithDefault(a0,a1)) = 0w211 + hashty a0 + hashstring a1
219    
220      fun toString (Add(a0)) = concat["Add<", tyToString a0, ">"]      fun toString (Add(a0)) = concat["Add<", tyToString a0, ">"]
221        | toString (Sub(a0)) = concat["Sub<", tyToString a0, ">"]        | toString (Sub(a0)) = concat["Sub<", tyToString a0, ">"]
222        | toString (Mul(a0)) = concat["Mul<", tyToString a0, ">"]        | toString (Mul(a0)) = concat["Mul<", tyToString a0, ">"]
223        | toString (Div(a0)) = concat["Div<", tyToString a0, ">"]        | toString (Div(a0)) = concat["Div<", tyToString a0, ">"]
224        | toString (Neg(a0)) = concat["Neg<", tyToString a0, ">"]        | toString (Neg(a0)) = concat["Neg<", tyToString a0, ">"]
225          | toString (Abs(a0)) = concat["Abs<", tyToString a0, ">"]
226        | toString (LT(a0)) = concat["LT<", tyToString a0, ">"]        | toString (LT(a0)) = concat["LT<", tyToString a0, ">"]
227        | toString (LTE(a0)) = concat["LTE<", tyToString a0, ">"]        | toString (LTE(a0)) = concat["LTE<", tyToString a0, ">"]
228        | toString (EQ(a0)) = concat["EQ<", tyToString a0, ">"]        | toString (EQ(a0)) = concat["EQ<", tyToString a0, ">"]
# Line 214  Line 232 
232        | toString Not = "Not"        | toString Not = "Not"
233        | toString Max = "Max"        | toString Max = "Max"
234        | toString Min = "Min"        | toString Min = "Min"
235        | toString Sin = "Sin"        | toString (Lerp(a0)) = concat["Lerp<", tyToString a0, ">"]
       | toString Cos = "Cos"  
       | toString Pow = "Pow"  
236        | toString (Dot(a0)) = concat["Dot<", intToString a0, ">"]        | toString (Dot(a0)) = concat["Dot<", intToString a0, ">"]
237          | toString (MulVecMat(a0,a1)) = concat["MulVecMat<", intToString a0, ",", intToString a1, ">"]
238          | toString (MulMatVec(a0,a1)) = concat["MulMatVec<", intToString a0, ",", intToString a1, ">"]
239          | toString (MulMatMat(a0,a1,a2)) = concat["MulMatMat<", intToString a0, ",", intToString a1, ",", intToString a2, ">"]
240        | toString Cross = "Cross"        | toString Cross = "Cross"
241        | toString (Select(a0,a1)) = concat["Select<", intToString a0, ",", intToString a1, ">"]        | toString (Select(a0,a1)) = concat["Select<", tyToString a0, ",", intToString a1, ">"]
242        | toString (Norm(a0)) = concat["Norm<", intToString a0, ">"]        | toString (Norm(a0)) = concat["Norm<", tyToString a0, ">"]
243        | toString (Scale(a0)) = concat["Scale<", intToString a0, ">"]        | toString (Normalize(a0)) = concat["Normalize<", intToString a0, ">"]
244        | toString (InvScale(a0)) = concat["InvScale<", intToString a0, ">"]        | toString (Scale(a0)) = concat["Scale<", tyToString a0, ">"]
245        | toString CL = "CL"        | toString CL = "CL"
246        | toString (PrincipleEvec(a0)) = concat["PrincipleEvec<", tyToString a0, ">"]        | toString (PrincipleEvec(a0)) = concat["PrincipleEvec<", tyToString a0, ">"]
247          | toString (Identity(a0)) = concat["Identity<", intToString a0, ">"]
248          | toString (Zero(a0)) = concat["Zero<", tyToString a0, ">"]
249          | toString (Trace(a0)) = concat["Trace<", intToString a0, ">"]
250        | toString (Subscript(a0)) = concat["Subscript<", tyToString a0, ">"]        | toString (Subscript(a0)) = concat["Subscript<", tyToString a0, ">"]
251          | toString (Ceiling(a0)) = concat["Ceiling<", intToString a0, ">"]
252        | toString (Floor(a0)) = concat["Floor<", intToString a0, ">"]        | toString (Floor(a0)) = concat["Floor<", intToString a0, ">"]
253          | toString (Round(a0)) = concat["Round<", intToString a0, ">"]
254          | toString (Trunc(a0)) = concat["Trunc<", intToString a0, ">"]
255        | toString IntToReal = "IntToReal"        | toString IntToReal = "IntToReal"
256        | toString (TruncToInt(a0)) = concat["TruncToInt<", intToString a0, ">"]        | toString (RealToInt(a0)) = concat["RealToInt<", intToString a0, ">"]
257        | toString (RoundToInt(a0)) = concat["RoundToInt<", intToString a0, ">"]        | toString (VoxelAddress(a0,a1)) = concat["VoxelAddress<", ImageInfo.toString a0, ",", intToString a1, ">"]
258        | toString (CeilToInt(a0)) = concat["CeilToInt<", intToString a0, ">"]        | toString (LoadVoxels(a0,a1)) = concat["LoadVoxels<", ImageInfo.toString a0, ",", intToString a1, ">"]
259        | toString (FloorToInt(a0)) = concat["FloorToInt<", intToString a0, ">"]        | toString (PosToImgSpace(a0)) = concat["PosToImgSpace<", ImageInfo.toString a0, ">"]
260        | toString (VoxelAddress(a0)) = concat["VoxelAddress<", ImageInfo.toString a0, ">"]        | toString (TensorToWorldSpace(a0,a1)) = concat["TensorToWorldSpace<", ImageInfo.toString a0, ",", tyToString a1, ">"]
       | toString (LoadVoxels(a0,a1)) = concat["LoadVoxels<", RawTypes.toString a0, ",", intToString a1, ">"]  
       | toString (Transform(a0)) = concat["Transform<", ImageInfo.toString a0, ">"]  
261        | toString (EvalKernel(a0,a1,a2)) = concat["EvalKernel<", intToString a0, ",", Kernel.toString a1, ",", intToString a2, ">"]        | toString (EvalKernel(a0,a1,a2)) = concat["EvalKernel<", intToString a0, ",", Kernel.toString a1, ",", intToString a2, ">"]
262        | toString (LoadImage(a0)) = concat["LoadImage<", ImageInfo.toString a0, ">"]        | toString (LoadImage(a0)) = concat["LoadImage<", ImageInfo.toString a0, ">"]
263        | toString (Inside(a0)) = concat["Inside<", ImageInfo.toString a0, ">"]        | toString (Inside(a0,a1)) = concat["Inside<", ImageInfo.toString a0, ",", intToString a1, ">"]
264        | toString (Input(a0)) = concat["Input<", stringToString a0, ">"]        | toString (Input(a0,a1)) = concat["Input<", tyToString a0, ",", stringToString a1, ">"]
265        | toString (InputWithDefault(a0)) = concat["InputWithDefault<", stringToString a0, ">"]        | toString (InputWithDefault(a0,a1)) = concat["InputWithDefault<", tyToString a0, ",", stringToString a1, ">"]
266    
267    end    end
268    
269  structure MidIL = SSAFn(MidOps)  structure MidIL = SSAFn(
270      val ilName = "mid-il"
271      structure Ty = MidILTypes
272      structure Op = MidOps)
273    
274    structure MidILCensus = CensusFn(MidIL)
275    

Legend:
Removed from v.349  
changed lines
  Added in v.1232

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