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

SCM Repository

[diderot] Diff of /branches/charisee/src/compiler/low-il/low-il.sml
ViewVC logotype

Diff of /branches/charisee/src/compiler/low-il/low-il.sml

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

revision 2623, Thu May 15 20:01:40 2014 UTC revision 2624, Fri May 16 17:53:41 2014 UTC
# Line 55  Line 55 
55        | subSca        | subSca
56        | prodSca        | prodSca
57        | divSca        | divSca
       | cons of ty * int  
58        | imgAddr of ImageInfo.info * ty * int        | imgAddr of ImageInfo.info * ty * int
59        | imgLoad of ImageInfo.info * int * int        | imgLoad of ImageInfo.info * int * int
60        | addVec of int        | addVec of int
# Line 123  Line 122 
122        | resultArity subSca = 1        | resultArity subSca = 1
123        | resultArity prodSca = 1        | resultArity prodSca = 1
124        | resultArity divSca = 1        | resultArity divSca = 1
       | resultArity (cons _) = 1  
125        | resultArity (imgAddr _) = 1        | resultArity (imgAddr _) = 1
126        | resultArity (imgLoad _) = 1        | resultArity (imgLoad _) = 1
127        | resultArity (addVec _) = 1        | resultArity (addVec _) = 1
# Line 191  Line 189 
189        | arity subSca = 2        | arity subSca = 2
190        | arity prodSca = 2        | arity prodSca = 2
191        | arity divSca = 2        | arity divSca = 2
       | arity (cons _) = 2  
192        | arity (imgAddr _) = 2        | arity (imgAddr _) = 2
193        | arity (imgLoad _) = 2        | arity (imgLoad _) = 2
194        | arity (addVec _) = 2        | arity (addVec _) = 2
# Line 266  Line 263 
263        | same (subSca, subSca) = true        | same (subSca, subSca) = true
264        | same (prodSca, prodSca) = true        | same (prodSca, prodSca) = true
265        | same (divSca, divSca) = true        | same (divSca, divSca) = true
       | same (cons(a0,a1), cons(b0,b1)) = samety(a0, b0) andalso sameint(a1, b1)  
266        | same (imgAddr(a0,a1,a2), imgAddr(b0,b1,b2)) = ImageInfo.same(a0, b0) andalso samety(a1, b1) andalso sameint(a2, b2)        | same (imgAddr(a0,a1,a2), imgAddr(b0,b1,b2)) = ImageInfo.same(a0, b0) andalso samety(a1, b1) andalso sameint(a2, b2)
267        | same (imgLoad(a0,a1,a2), imgLoad(b0,b1,b2)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1) andalso sameint(a2, b2)        | same (imgLoad(a0,a1,a2), imgLoad(b0,b1,b2)) = ImageInfo.same(a0, b0) andalso sameint(a1, b1) andalso sameint(a2, b2)
268        | same (addVec(a0), addVec(b0)) = sameint(a0, b0)        | same (addVec(a0), addVec(b0)) = sameint(a0, b0)
# Line 335  Line 331 
331        | hash subSca = 0w73        | hash subSca = 0w73
332        | hash prodSca = 0w79        | hash prodSca = 0w79
333        | hash divSca = 0w83        | hash divSca = 0w83
334        | hash (cons(a0,a1)) = 0w89 + hashty a0 + hashint a1        | hash (imgAddr(a0,a1,a2)) = 0w89 + ImageInfo.hash a0 + hashty a1 + hashint a2
335        | hash (imgAddr(a0,a1,a2)) = 0w97 + ImageInfo.hash a0 + hashty a1 + hashint a2        | hash (imgLoad(a0,a1,a2)) = 0w97 + ImageInfo.hash a0 + hashint a1 + hashint a2
336        | hash (imgLoad(a0,a1,a2)) = 0w101 + ImageInfo.hash a0 + hashint a1 + hashint a2        | hash (addVec(a0)) = 0w101 + hashint a0
337        | hash (addVec(a0)) = 0w103 + hashint a0        | hash (subVec(a0)) = 0w103 + hashint a0
338        | hash (subVec(a0)) = 0w107 + hashint a0        | hash (prodVec(a0)) = 0w107 + hashint a0
339        | hash (prodVec(a0)) = 0w109 + hashint a0        | hash (prodScaV(a0)) = 0w109 + hashint a0
340        | hash (prodScaV(a0)) = 0w113 + hashint a0        | hash (sumVec(a0)) = 0w113 + hashint a0
341        | hash (sumVec(a0)) = 0w127 + hashint a0        | hash (LoadVec(a0,a1)) = 0w127 + hashty a0 + hashint a1
342        | hash (LoadVec(a0,a1)) = 0w131 + hashty a0 + hashint a1        | hash (StoreVec(a0,a1)) = 0w131 + hashty a0 + hashint a1
343        | hash (StoreVec(a0,a1)) = 0w137 + hashty a0 + hashint a1        | hash (Clamp(a0)) = 0w137 + hashty a0
344        | hash (Clamp(a0)) = 0w139 + hashty a0        | hash (Lerp(a0)) = 0w139 + hashty a0
345        | hash (Lerp(a0)) = 0w149 + hashty a0        | hash (Norm(a0)) = 0w149 + hashty a0
346        | hash (Norm(a0)) = 0w151 + hashty a0        | hash (Normalize(a0)) = 0w151 + hashint a0
347        | hash (Normalize(a0)) = 0w157 + hashint a0        | hash (PrincipleEvec(a0)) = 0w157 + hashty a0
348        | hash (PrincipleEvec(a0)) = 0w163 + hashty a0        | hash EigenVecs2x2 = 0w163
349        | hash EigenVecs2x2 = 0w167        | hash EigenVecs3x3 = 0w167
350        | hash EigenVecs3x3 = 0w173        | hash EigenVals2x2 = 0w173
351        | hash EigenVals2x2 = 0w179        | hash EigenVals3x3 = 0w179
352        | hash EigenVals3x3 = 0w181        | hash (Zero(a0)) = 0w181 + hashty a0
353        | hash (Zero(a0)) = 0w191 + hashty a0        | hash (Select(a0,a1)) = 0w191 + hashty a0 + hashint a1
354        | hash (Select(a0,a1)) = 0w193 + hashty a0 + hashint a1        | hash (Index(a0,a1)) = 0w193 + hashty a0 + hashint a1
355        | hash (Index(a0,a1)) = 0w197 + hashty a0 + hashint a1        | hash (Subscript(a0)) = 0w197 + hashty a0
356        | hash (Subscript(a0)) = 0w199 + hashty a0        | hash (MkDynamic(a0,a1)) = 0w199 + hashty a0 + hashint a1
357        | hash (MkDynamic(a0,a1)) = 0w211 + hashty a0 + hashint a1        | hash (Append(a0)) = 0w211 + hashty a0
358        | hash (Append(a0)) = 0w223 + hashty a0        | hash (Prepend(a0)) = 0w223 + hashty a0
359        | hash (Prepend(a0)) = 0w227 + hashty a0        | hash (Concat(a0)) = 0w227 + hashty a0
360        | hash (Concat(a0)) = 0w229 + hashty a0        | hash (Length(a0)) = 0w229 + hashty a0
361        | hash (Length(a0)) = 0w233 + hashty a0        | hash (Ceiling(a0)) = 0w233 + hashint a0
362        | hash (Ceiling(a0)) = 0w239 + hashint a0        | hash (Floor(a0)) = 0w239 + hashint a0
363        | hash (Floor(a0)) = 0w241 + hashint a0        | hash (Round(a0)) = 0w241 + hashint a0
364        | hash (Round(a0)) = 0w251 + hashint a0        | hash (Trunc(a0)) = 0w251 + hashint a0
365        | hash (Trunc(a0)) = 0w257 + hashint a0        | hash IntToReal = 0w257
366        | hash IntToReal = 0w263        | hash (RealToInt(a0)) = 0w263 + hashint a0
367        | hash (RealToInt(a0)) = 0w269 + hashint a0        | hash (Transform(a0)) = 0w269 + ImageInfo.hash a0
368        | hash (Transform(a0)) = 0w271 + ImageInfo.hash a0        | hash (Translate(a0)) = 0w271 + ImageInfo.hash a0
369        | hash (Translate(a0)) = 0w277 + ImageInfo.hash a0        | hash (Kernel(a0,a1)) = 0w277 + Kernel.hash a0 + hashint a1
370        | hash (Kernel(a0,a1)) = 0w281 + Kernel.hash a0 + hashint a1        | hash (ImageAddress(a0)) = 0w281 + ImageInfo.hash a0
371        | hash (ImageAddress(a0)) = 0w283 + ImageInfo.hash a0        | hash (LoadVoxels(a0,a1)) = 0w283 + ImageInfo.hash a0 + hashint a1
372        | hash (LoadVoxels(a0,a1)) = 0w293 + ImageInfo.hash a0 + hashint a1        | hash (Inside(a0,a1)) = 0w293 + ImageInfo.hash a0 + hashint a1
373        | hash (Inside(a0,a1)) = 0w307 + ImageInfo.hash a0 + hashint a1        | hash (LoadSeq(a0,a1)) = 0w307 + hashty a0 + hashstring a1
374        | hash (LoadSeq(a0,a1)) = 0w311 + hashty a0 + hashstring a1        | hash (LoadImage(a0)) = 0w311 + ImageInfo.hash a0
375        | hash (LoadImage(a0)) = 0w313 + ImageInfo.hash a0        | hash (Input(a0,a1,a2)) = 0w313 + hashty a0 + hashstring a1 + hashstring a2
376        | hash (Input(a0,a1,a2)) = 0w317 + hashty a0 + hashstring a1 + hashstring a2        | hash (InputWithDefault(a0,a1,a2)) = 0w317 + hashty a0 + hashstring a1 + hashstring a2
377        | hash (InputWithDefault(a0,a1,a2)) = 0w331 + hashty a0 + hashstring a1 + hashstring a2        | hash (Print(a0)) = 0w331 + hashtys a0
       | hash (Print(a0)) = 0w337 + hashtys a0  
378    
379      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
380        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 403  Line 398 
398        | toString subSca = "subSca"        | toString subSca = "subSca"
399        | toString prodSca = "prodSca"        | toString prodSca = "prodSca"
400        | toString divSca = "divSca"        | toString divSca = "divSca"
       | toString (cons(a0,a1)) = concat["cons<", tyToString a0, ",", intToString a1, ">"]  
401        | toString (imgAddr(a0,a1,a2)) = concat["imgAddr<", ImageInfo.toString a0, ",", tyToString a1, ",", intToString a2, ">"]        | toString (imgAddr(a0,a1,a2)) = concat["imgAddr<", ImageInfo.toString a0, ",", tyToString a1, ",", intToString a2, ">"]
402        | toString (imgLoad(a0,a1,a2)) = concat["imgLoad<", ImageInfo.toString a0, ",", intToString a1, ",", intToString a2, ">"]        | toString (imgLoad(a0,a1,a2)) = concat["imgLoad<", ImageInfo.toString a0, ",", intToString a1, ",", intToString a2, ">"]
403        | toString (addVec(a0)) = concat["addVec<", intToString a0, ">"]        | toString (addVec(a0)) = concat["addVec<", intToString a0, ">"]

Legend:
Removed from v.2623  
changed lines
  Added in v.2624

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