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 3731, Thu Apr 7 19:25:15 2016 UTC revision 3732, Thu Apr 7 20:56:16 2016 UTC
# Line 98  Line 98 
98        | R_Product of ty        | R_Product of ty
99        | R_Mean of ty        | R_Mean of ty
100        | R_Variance of ty        | R_Variance of ty
101          | BuildPos of int
102          | EvalKernel of int * Kernel.kernel * int
103        | Kernel of Kernel.kernel * int        | Kernel of Kernel.kernel * int
104        | Transform of ImageInfo.info        | Transform of ImageInfo.info
105        | Translate of ImageInfo.info        | Translate of ImageInfo.info
# Line 162  Line 164 
164        | resultArity (R_Product _) = 1        | resultArity (R_Product _) = 1
165        | resultArity (R_Mean _) = 1        | resultArity (R_Mean _) = 1
166        | resultArity (R_Variance _) = 1        | resultArity (R_Variance _) = 1
167          | resultArity (BuildPos _) = 1
168          | resultArity (EvalKernel _) = 1
169        | resultArity (Kernel _) = 1        | resultArity (Kernel _) = 1
170        | resultArity (Transform _) = 1        | resultArity (Transform _) = 1
171        | resultArity (Translate _) = 1        | resultArity (Translate _) = 1
# Line 226  Line 230 
230        | arity (R_Product _) = 3        | arity (R_Product _) = 3
231        | arity (R_Mean _) = 3        | arity (R_Mean _) = 3
232        | arity (R_Variance _) = 4        | arity (R_Variance _) = 4
233          | arity (BuildPos _) = 1
234          | arity (EvalKernel _) = 1
235        | arity (Kernel _) = 0        | arity (Kernel _) = 0
236        | arity (Transform _) = 1        | arity (Transform _) = 1
237        | arity (Translate _) = 1        | arity (Translate _) = 1
# Line 297  Line 303 
303        | same (R_Product(a0), R_Product(b0)) = samety(a0, b0)        | same (R_Product(a0), R_Product(b0)) = samety(a0, b0)
304        | same (R_Mean(a0), R_Mean(b0)) = samety(a0, b0)        | same (R_Mean(a0), R_Mean(b0)) = samety(a0, b0)
305        | same (R_Variance(a0), R_Variance(b0)) = samety(a0, b0)        | same (R_Variance(a0), R_Variance(b0)) = samety(a0, b0)
306          | same (BuildPos(a0), BuildPos(b0)) = sameint(a0, b0)
307          | same (EvalKernel(a0,a1,a2), EvalKernel(b0,b1,b2)) = sameint(a0, b0) andalso Kernel.same(a1, b1) andalso sameint(a2, b2)
308        | 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)
309        | same (Transform(a0), Transform(b0)) = ImageInfo.same(a0, b0)        | same (Transform(a0), Transform(b0)) = ImageInfo.same(a0, b0)
310        | same (Translate(a0), Translate(b0)) = ImageInfo.same(a0, b0)        | same (Translate(a0), Translate(b0)) = ImageInfo.same(a0, b0)
# Line 362  Line 370 
370        | hash (R_Product(a0)) = 0w199 + hashty a0        | hash (R_Product(a0)) = 0w199 + hashty a0
371        | hash (R_Mean(a0)) = 0w211 + hashty a0        | hash (R_Mean(a0)) = 0w211 + hashty a0
372        | hash (R_Variance(a0)) = 0w223 + hashty a0        | hash (R_Variance(a0)) = 0w223 + hashty a0
373        | hash (Kernel(a0,a1)) = 0w227 + Kernel.hash a0 + hashint a1        | hash (BuildPos(a0)) = 0w227 + hashint a0
374        | hash (Transform(a0)) = 0w229 + ImageInfo.hash a0        | hash (EvalKernel(a0,a1,a2)) = 0w229 + hashint a0 + Kernel.hash a1 + hashint a2
375        | hash (Translate(a0)) = 0w233 + ImageInfo.hash a0        | hash (Kernel(a0,a1)) = 0w233 + Kernel.hash a0 + hashint a1
376        | hash (VoxelAddress(a0,a1)) = 0w239 + ImageInfo.hash a0 + hashint a1        | hash (Transform(a0)) = 0w239 + ImageInfo.hash a0
377        | hash (VoxelAddressWithCtl(a0,a1,a2)) = 0w241 + ImageInfo.hash a0 + hashint a1 + hashidxctl a2        | hash (Translate(a0)) = 0w241 + ImageInfo.hash a0
378        | hash (LoadVoxels(a0,a1)) = 0w251 + ImageInfo.hash a0 + hashint a1        | hash (VoxelAddress(a0,a1)) = 0w251 + ImageInfo.hash a0 + hashint a1
379        | hash (Inside(a0,a1)) = 0w257 + ImageInfo.hash a0 + hashint a1        | hash (VoxelAddressWithCtl(a0,a1,a2)) = 0w257 + ImageInfo.hash a0 + hashint a1 + hashidxctl a2
380        | hash (ImageDim(a0,a1)) = 0w263 + ImageInfo.hash a0 + hashint a1        | hash (LoadVoxels(a0,a1)) = 0w263 + ImageInfo.hash a0 + hashint a1
381        | hash (BorderCtlDefault(a0)) = 0w269 + ImageInfo.hash a0        | hash (Inside(a0,a1)) = 0w269 + ImageInfo.hash a0 + hashint a1
382        | hash (BorderCtlClamp(a0)) = 0w271 + ImageInfo.hash a0        | hash (ImageDim(a0,a1)) = 0w271 + ImageInfo.hash a0 + hashint a1
383        | hash (BorderCtlMirror(a0)) = 0w277 + ImageInfo.hash a0        | hash (BorderCtlDefault(a0)) = 0w277 + ImageInfo.hash a0
384        | hash (BorderCtlWrap(a0)) = 0w281 + ImageInfo.hash a0        | hash (BorderCtlClamp(a0)) = 0w281 + ImageInfo.hash a0
385        | hash (LoadSeq(a0,a1)) = 0w283 + hashty a0 + hashstring a1        | hash (BorderCtlMirror(a0)) = 0w283 + ImageInfo.hash a0
386        | hash (LoadImage(a0,a1)) = 0w293 + hashty a0 + hashstring a1        | hash (BorderCtlWrap(a0)) = 0w293 + ImageInfo.hash a0
387        | hash (Print(a0)) = 0w307 + hashtys a0        | hash (LoadSeq(a0,a1)) = 0w307 + hashty a0 + hashstring a1
388        | hash (MathFn(a0)) = 0w311 + MathFns.hash a0        | hash (LoadImage(a0,a1)) = 0w311 + hashty a0 + hashstring a1
389          | hash (Print(a0)) = 0w313 + hashtys a0
390          | hash (MathFn(a0)) = 0w317 + MathFns.hash a0
391    
392      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
393        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 426  Line 436 
436        | toString (R_Product(a0)) = concat["R_Product<", tyToString a0, ">"]        | toString (R_Product(a0)) = concat["R_Product<", tyToString a0, ">"]
437        | toString (R_Mean(a0)) = concat["R_Mean<", tyToString a0, ">"]        | toString (R_Mean(a0)) = concat["R_Mean<", tyToString a0, ">"]
438        | toString (R_Variance(a0)) = concat["R_Variance<", tyToString a0, ">"]        | toString (R_Variance(a0)) = concat["R_Variance<", tyToString a0, ">"]
439          | toString (BuildPos(a0)) = concat["BuildPos<", intToString a0, ">"]
440          | toString (EvalKernel(a0,a1,a2)) = concat["EvalKernel<", intToString a0, ",", Kernel.toString a1, ",", intToString a2, ">"]
441        | toString (Kernel(a0,a1)) = concat["Kernel<", Kernel.toString a0, ",", intToString a1, ">"]        | toString (Kernel(a0,a1)) = concat["Kernel<", Kernel.toString a0, ",", intToString a1, ">"]
442        | toString (Transform(a0)) = concat["Transform<", ImageInfo.toString a0, ">"]        | toString (Transform(a0)) = concat["Transform<", ImageInfo.toString a0, ">"]
443        | toString (Translate(a0)) = concat["Translate<", ImageInfo.toString a0, ">"]        | toString (Translate(a0)) = concat["Translate<", ImageInfo.toString a0, ">"]

Legend:
Removed from v.3731  
changed lines
  Added in v.3732

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