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 2525, Tue Jan 21 19:14:22 2014 UTC revision 2529, Wed Jan 29 06:58:55 2014 UTC
# Line 57  Line 57 
57        | divSca        | divSca
58        | cons of ty        | cons of ty
59        | img of int * ty * int        | img of int * ty * int
60          | imgAddr of ty * int
61          | imgLoad of int * int
62        | addVec of int        | addVec of int
63        | subVec of int        | subVec of int
64        | prodVec of int        | prodVec of int
# Line 122  Line 124 
124        | resultArity divSca = 1        | resultArity divSca = 1
125        | resultArity (cons _) = 1        | resultArity (cons _) = 1
126        | resultArity (img _) = 1        | resultArity (img _) = 1
127          | resultArity (imgAddr _) = 1
128          | resultArity (imgLoad _) = 1
129        | resultArity (addVec _) = 1        | resultArity (addVec _) = 1
130        | resultArity (subVec _) = 1        | resultArity (subVec _) = 1
131        | resultArity (prodVec _) = 1        | resultArity (prodVec _) = 1
# Line 187  Line 191 
191        | arity divSca = 2        | arity divSca = 2
192        | arity (cons _) = 2        | arity (cons _) = 2
193        | arity (img _) = 2        | arity (img _) = 2
194          | arity (imgAddr _) = 2
195          | arity (imgLoad _) = 2
196        | arity (addVec _) = 2        | arity (addVec _) = 2
197        | arity (subVec _) = 2        | arity (subVec _) = 2
198        | arity (prodVec _) = 2        | arity (prodVec _) = 2
# Line 259  Line 265 
265        | same (divSca, divSca) = true        | same (divSca, divSca) = true
266        | same (cons(a0), cons(b0)) = samety(a0, b0)        | same (cons(a0), cons(b0)) = samety(a0, b0)
267        | same (img(a0,a1,a2), img(b0,b1,b2)) = sameint(a0, b0) andalso samety(a1, b1) andalso sameint(a2, b2)        | same (img(a0,a1,a2), img(b0,b1,b2)) = sameint(a0, b0) andalso samety(a1, b1) andalso sameint(a2, b2)
268          | same (imgAddr(a0,a1), imgAddr(b0,b1)) = samety(a0, b0) andalso sameint(a1, b1)
269          | same (imgLoad(a0,a1), imgLoad(b0,b1)) = sameint(a0, b0) andalso sameint(a1, b1)
270        | same (addVec(a0), addVec(b0)) = sameint(a0, b0)        | same (addVec(a0), addVec(b0)) = sameint(a0, b0)
271        | same (subVec(a0), subVec(b0)) = sameint(a0, b0)        | same (subVec(a0), subVec(b0)) = sameint(a0, b0)
272        | same (prodVec(a0), prodVec(b0)) = sameint(a0, b0)        | same (prodVec(a0), prodVec(b0)) = sameint(a0, b0)
# Line 325  Line 333 
333        | hash divSca = 0w83        | hash divSca = 0w83
334        | hash (cons(a0)) = 0w89 + hashty a0        | hash (cons(a0)) = 0w89 + hashty a0
335        | hash (img(a0,a1,a2)) = 0w97 + hashint a0 + hashty a1 + hashint a2        | hash (img(a0,a1,a2)) = 0w97 + hashint a0 + hashty a1 + hashint a2
336        | hash (addVec(a0)) = 0w101 + hashint a0        | hash (imgAddr(a0,a1)) = 0w101 + hashty a0 + hashint a1
337        | hash (subVec(a0)) = 0w103 + hashint a0        | hash (imgLoad(a0,a1)) = 0w103 + hashint a0 + hashint a1
338        | hash (prodVec(a0)) = 0w107 + hashint a0        | hash (addVec(a0)) = 0w107 + hashint a0
339        | hash (prodScaV(a0)) = 0w109 + hashint a0        | hash (subVec(a0)) = 0w109 + hashint a0
340        | hash (sumVec(a0)) = 0w113 + hashint a0        | hash (prodVec(a0)) = 0w113 + hashint a0
341        | hash (Clamp(a0)) = 0w127 + hashty a0        | hash (prodScaV(a0)) = 0w127 + hashint a0
342        | hash (Lerp(a0)) = 0w131 + hashty a0        | hash (sumVec(a0)) = 0w131 + hashint a0
343        | hash (Norm(a0)) = 0w137 + hashty a0        | hash (Clamp(a0)) = 0w137 + hashty a0
344        | hash (Normalize(a0)) = 0w139 + hashint a0        | hash (Lerp(a0)) = 0w139 + hashty a0
345        | hash (PrincipleEvec(a0)) = 0w149 + hashty a0        | hash (Norm(a0)) = 0w149 + hashty a0
346        | hash EigenVecs2x2 = 0w151        | hash (Normalize(a0)) = 0w151 + hashint a0
347        | hash EigenVecs3x3 = 0w157        | hash (PrincipleEvec(a0)) = 0w157 + hashty a0
348        | hash EigenVals2x2 = 0w163        | hash EigenVecs2x2 = 0w163
349        | hash EigenVals3x3 = 0w167        | hash EigenVecs3x3 = 0w167
350        | hash (Zero(a0)) = 0w173 + hashty a0        | hash EigenVals2x2 = 0w173
351        | hash (Select(a0,a1)) = 0w179 + hashty a0 + hashint a1        | hash EigenVals3x3 = 0w179
352        | hash (Index(a0,a1)) = 0w181 + hashty a0 + hashint a1        | hash (Zero(a0)) = 0w181 + hashty a0
353        | hash (Subscript(a0)) = 0w191 + hashty a0        | hash (Select(a0,a1)) = 0w191 + hashty a0 + hashint a1
354        | hash (MkDynamic(a0,a1)) = 0w193 + hashty a0 + hashint a1        | hash (Index(a0,a1)) = 0w193 + hashty a0 + hashint a1
355        | hash (Append(a0)) = 0w197 + hashty a0        | hash (Subscript(a0)) = 0w197 + hashty a0
356        | hash (Prepend(a0)) = 0w199 + hashty a0        | hash (MkDynamic(a0,a1)) = 0w199 + hashty a0 + hashint a1
357        | hash (Concat(a0)) = 0w211 + hashty a0        | hash (Append(a0)) = 0w211 + hashty a0
358        | hash (Length(a0)) = 0w223 + hashty a0        | hash (Prepend(a0)) = 0w223 + hashty a0
359        | hash (Ceiling(a0)) = 0w227 + hashint a0        | hash (Concat(a0)) = 0w227 + hashty a0
360        | hash (Floor(a0)) = 0w229 + hashint a0        | hash (Length(a0)) = 0w229 + hashty a0
361        | hash (Round(a0)) = 0w233 + hashint a0        | hash (Ceiling(a0)) = 0w233 + hashint a0
362        | hash (Trunc(a0)) = 0w239 + hashint a0        | hash (Floor(a0)) = 0w239 + hashint a0
363        | hash IntToReal = 0w241        | hash (Round(a0)) = 0w241 + hashint a0
364        | hash (RealToInt(a0)) = 0w251 + hashint a0        | hash (Trunc(a0)) = 0w251 + hashint a0
365        | hash (Transform(a0)) = 0w257 + ImageInfo.hash a0        | hash IntToReal = 0w257
366        | hash (Translate(a0)) = 0w263 + ImageInfo.hash a0        | hash (RealToInt(a0)) = 0w263 + hashint a0
367        | hash (Kernel(a0,a1)) = 0w269 + Kernel.hash a0 + hashint a1        | hash (Transform(a0)) = 0w269 + ImageInfo.hash a0
368        | hash (ImageAddress(a0)) = 0w271 + ImageInfo.hash a0        | hash (Translate(a0)) = 0w271 + ImageInfo.hash a0
369        | hash (LoadVoxels(a0,a1)) = 0w277 + ImageInfo.hash a0 + hashint a1        | hash (Kernel(a0,a1)) = 0w277 + Kernel.hash a0 + hashint a1
370        | hash (Inside(a0,a1)) = 0w281 + ImageInfo.hash a0 + hashint a1        | hash (ImageAddress(a0)) = 0w281 + ImageInfo.hash a0
371        | hash (LoadSeq(a0,a1)) = 0w283 + hashty a0 + hashstring a1        | hash (LoadVoxels(a0,a1)) = 0w283 + ImageInfo.hash a0 + hashint a1
372        | hash (LoadImage(a0)) = 0w293 + ImageInfo.hash a0        | hash (Inside(a0,a1)) = 0w293 + ImageInfo.hash a0 + hashint a1
373        | hash (Input(a0,a1,a2)) = 0w307 + hashty a0 + hashstring a1 + hashstring a2        | hash (LoadSeq(a0,a1)) = 0w307 + hashty a0 + hashstring a1
374        | hash (InputWithDefault(a0,a1,a2)) = 0w311 + hashty a0 + hashstring a1 + hashstring a2        | hash (LoadImage(a0)) = 0w311 + ImageInfo.hash a0
375        | hash (Print(a0)) = 0w313 + hashtys a0        | hash (Input(a0,a1,a2)) = 0w313 + hashty a0 + hashstring a1 + hashstring a2
376          | hash (InputWithDefault(a0,a1,a2)) = 0w317 + hashty a0 + hashstring a1 + hashstring a2
377          | hash (Print(a0)) = 0w331 + hashtys a0
378    
379      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
380        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 390  Line 400 
400        | toString divSca = "divSca"        | toString divSca = "divSca"
401        | toString (cons(a0)) = concat["cons<", tyToString a0, ">"]        | toString (cons(a0)) = concat["cons<", tyToString a0, ">"]
402        | toString (img(a0,a1,a2)) = concat["img<", intToString a0, ",", tyToString a1, ",", intToString a2, ">"]        | toString (img(a0,a1,a2)) = concat["img<", intToString a0, ",", tyToString a1, ",", intToString a2, ">"]
403          | toString (imgAddr(a0,a1)) = concat["imgAddr<", tyToString a0, ",", intToString a1, ">"]
404          | toString (imgLoad(a0,a1)) = concat["imgLoad<", intToString a0, ",", intToString a1, ">"]
405        | toString (addVec(a0)) = concat["addVec<", intToString a0, ">"]        | toString (addVec(a0)) = concat["addVec<", intToString a0, ">"]
406        | toString (subVec(a0)) = concat["subVec<", intToString a0, ">"]        | toString (subVec(a0)) = concat["subVec<", intToString a0, ">"]
407        | toString (prodVec(a0)) = concat["prodVec<", intToString a0, ">"]        | toString (prodVec(a0)) = concat["prodVec<", intToString a0, ">"]

Legend:
Removed from v.2525  
changed lines
  Added in v.2529

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