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

SCM Repository

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

Diff of /branches/vis15/src/compiler/tree-ir/tree-ops.sml

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

revision 5284, Thu Aug 10 16:42:59 2017 UTC revision 5285, Thu Aug 10 16:50:56 2017 UTC
# Line 127  Line 127 
127        | Tan        | Tan
128        | ArcTan        | ArcTan
129        | Exp        | Exp
130          | Sgn
131        | IntToReal        | IntToReal
132        | NumStrands of StrandSets.t        | NumStrands of StrandSets.t
133        | Transform of ImageInfo.t        | Transform of ImageInfo.t
# Line 207  Line 208 
208        | resultArity Tan = 1        | resultArity Tan = 1
209        | resultArity ArcTan = 1        | resultArity ArcTan = 1
210        | resultArity Exp = 1        | resultArity Exp = 1
211          | resultArity Sgn = 1
212        | resultArity IntToReal = 1        | resultArity IntToReal = 1
213        | resultArity (NumStrands _) = 1        | resultArity (NumStrands _) = 1
214        | resultArity (Transform _) = 1        | resultArity (Transform _) = 1
# Line 287  Line 289 
289        | arity Tan = 1        | arity Tan = 1
290        | arity ArcTan = 1        | arity ArcTan = 1
291        | arity Exp = 1        | arity Exp = 1
292          | arity Sgn = 1
293        | arity IntToReal = 1        | arity IntToReal = 1
294        | arity (NumStrands _) = 0        | arity (NumStrands _) = 0
295        | arity (Transform _) = 1        | arity (Transform _) = 1
# Line 373  Line 376 
376        | same (Tan, Tan) = true        | same (Tan, Tan) = true
377        | same (ArcTan, ArcTan) = true        | same (ArcTan, ArcTan) = true
378        | same (Exp, Exp) = true        | same (Exp, Exp) = true
379          | same (Sgn, Sgn) = true
380        | same (IntToReal, IntToReal) = true        | same (IntToReal, IntToReal) = true
381        | same (NumStrands(a0), NumStrands(b0)) = StrandSets.same(a0, b0)        | same (NumStrands(a0), NumStrands(b0)) = StrandSets.same(a0, b0)
382        | same (Transform(a0), Transform(b0)) = ImageInfo.same(a0, b0)        | same (Transform(a0), Transform(b0)) = ImageInfo.same(a0, b0)
# Line 454  Line 458 
458        | hash Tan = 0w331        | hash Tan = 0w331
459        | hash ArcTan = 0w337        | hash ArcTan = 0w337
460        | hash Exp = 0w347        | hash Exp = 0w347
461        | hash IntToReal = 0w349        | hash Sgn = 0w349
462        | hash (NumStrands(a0)) = 0w353 + StrandSets.hash a0        | hash IntToReal = 0w353
463        | hash (Transform(a0)) = 0w359 + ImageInfo.hash a0        | hash (NumStrands(a0)) = 0w359 + StrandSets.hash a0
464        | hash (Translate(a0)) = 0w367 + ImageInfo.hash a0        | hash (Transform(a0)) = 0w367 + ImageInfo.hash a0
465        | hash (BaseAddress(a0)) = 0w373 + ImageInfo.hash a0        | hash (Translate(a0)) = 0w373 + ImageInfo.hash a0
466        | hash (ControlIndex(a0,a1,a2)) = 0w379 + ImageInfo.hash a0 + hashidxctl a1 + hashint a2        | hash (BaseAddress(a0)) = 0w379 + ImageInfo.hash a0
467        | hash (LoadVoxel(a0)) = 0w383 + ImageInfo.hash a0        | hash (ControlIndex(a0,a1,a2)) = 0w383 + ImageInfo.hash a0 + hashidxctl a1 + hashint a2
468        | hash (Inside(a0,a1,a2)) = 0w389 + VectorLayout.hash a0 + ImageInfo.hash a1 + hashint a2        | hash (LoadVoxel(a0)) = 0w389 + ImageInfo.hash a0
469        | hash (IndexInside(a0,a1)) = 0w397 + ImageInfo.hash a0 + hashint a1        | hash (Inside(a0,a1,a2)) = 0w397 + VectorLayout.hash a0 + ImageInfo.hash a1 + hashint a2
470        | hash (ImageDim(a0,a1)) = 0w401 + ImageInfo.hash a0 + hashint a1        | hash (IndexInside(a0,a1)) = 0w401 + ImageInfo.hash a0 + hashint a1
471        | hash (MathFn(a0)) = 0w409 + MathFns.hash a0        | hash (ImageDim(a0,a1)) = 0w409 + ImageInfo.hash a0 + hashint a1
472          | hash (MathFn(a0)) = 0w419 + MathFns.hash a0
473    
474      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
475        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 534  Line 539 
539        | toString Tan = "Tan"        | toString Tan = "Tan"
540        | toString ArcTan = "ArcTan"        | toString ArcTan = "ArcTan"
541        | toString Exp = "Exp"        | toString Exp = "Exp"
542          | toString Sgn = "Sgn"
543        | toString IntToReal = "IntToReal"        | toString IntToReal = "IntToReal"
544        | toString (NumStrands(a0)) = concat["NumStrands<", StrandSets.toString a0, ">"]        | toString (NumStrands(a0)) = concat["NumStrands<", StrandSets.toString a0, ">"]
545        | toString (Transform(a0)) = concat["Transform<", ImageInfo.toString a0, ">"]        | toString (Transform(a0)) = concat["Transform<", ImageInfo.toString a0, ">"]

Legend:
Removed from v.5284  
changed lines
  Added in v.5285

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