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

SCM Repository

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

Diff of /branches/vis15/src/compiler/low-ir/low-ir.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 105  Line 105 
105        | Tan        | Tan
106        | ArcTan        | ArcTan
107        | Exp        | Exp
108          | Sgn
109        | Ceiling of int        | Ceiling of int
110        | Floor of int        | Floor of int
111        | Round of int        | Round of int
# Line 184  Line 185 
185        | resultArity Tan = 1        | resultArity Tan = 1
186        | resultArity ArcTan = 1        | resultArity ArcTan = 1
187        | resultArity Exp = 1        | resultArity Exp = 1
188          | resultArity Sgn = 1
189        | resultArity (Ceiling _) = 1        | resultArity (Ceiling _) = 1
190        | resultArity (Floor _) = 1        | resultArity (Floor _) = 1
191        | resultArity (Round _) = 1        | resultArity (Round _) = 1
# Line 263  Line 265 
265        | arity Tan = 1        | arity Tan = 1
266        | arity ArcTan = 1        | arity ArcTan = 1
267        | arity Exp = 1        | arity Exp = 1
268          | arity Sgn = 1
269        | arity (Ceiling _) = 1        | arity (Ceiling _) = 1
270        | arity (Floor _) = 1        | arity (Floor _) = 1
271        | arity (Round _) = 1        | arity (Round _) = 1
# Line 351  Line 354 
354        | same (Tan, Tan) = true        | same (Tan, Tan) = true
355        | same (ArcTan, ArcTan) = true        | same (ArcTan, ArcTan) = true
356        | same (Exp, Exp) = true        | same (Exp, Exp) = true
357          | same (Sgn, Sgn) = true
358        | same (Ceiling(a0), Ceiling(b0)) = sameint(a0, b0)        | same (Ceiling(a0), Ceiling(b0)) = sameint(a0, b0)
359        | same (Floor(a0), Floor(b0)) = sameint(a0, b0)        | same (Floor(a0), Floor(b0)) = sameint(a0, b0)
360        | same (Round(a0), Round(b0)) = sameint(a0, b0)        | same (Round(a0), Round(b0)) = sameint(a0, b0)
# Line 431  Line 435 
435        | hash Tan = 0w263        | hash Tan = 0w263
436        | hash ArcTan = 0w269        | hash ArcTan = 0w269
437        | hash Exp = 0w271        | hash Exp = 0w271
438        | hash (Ceiling(a0)) = 0w277 + hashint a0        | hash Sgn = 0w277
439        | hash (Floor(a0)) = 0w281 + hashint a0        | hash (Ceiling(a0)) = 0w281 + hashint a0
440        | hash (Round(a0)) = 0w283 + hashint a0        | hash (Floor(a0)) = 0w283 + hashint a0
441        | hash (Trunc(a0)) = 0w293 + hashint a0        | hash (Round(a0)) = 0w293 + hashint a0
442        | hash IntToReal = 0w307        | hash (Trunc(a0)) = 0w307 + hashint a0
443        | hash (RealToInt(a0)) = 0w311 + hashint a0        | hash IntToReal = 0w311
444        | hash (NumStrands(a0)) = 0w313 + StrandSets.hash a0        | hash (RealToInt(a0)) = 0w313 + hashint a0
445        | hash (Strands(a0,a1)) = 0w317 + hashty a0 + StrandSets.hash a1        | hash (NumStrands(a0)) = 0w317 + StrandSets.hash a0
446        | hash (Transform(a0)) = 0w331 + ImageInfo.hash a0        | hash (Strands(a0,a1)) = 0w331 + hashty a0 + StrandSets.hash a1
447        | hash (Translate(a0)) = 0w337 + ImageInfo.hash a0        | hash (Transform(a0)) = 0w337 + ImageInfo.hash a0
448        | hash (ControlIndex(a0,a1,a2)) = 0w347 + ImageInfo.hash a0 + hashidxctl a1 + hashint a2        | hash (Translate(a0)) = 0w347 + ImageInfo.hash a0
449        | hash (LoadVoxel(a0)) = 0w349 + ImageInfo.hash a0        | hash (ControlIndex(a0,a1,a2)) = 0w349 + ImageInfo.hash a0 + hashidxctl a1 + hashint a2
450        | hash (Inside(a0,a1)) = 0w353 + ImageInfo.hash a0 + hashint a1        | hash (LoadVoxel(a0)) = 0w353 + ImageInfo.hash a0
451        | hash (IndexInside(a0,a1)) = 0w359 + ImageInfo.hash a0 + hashint a1        | hash (Inside(a0,a1)) = 0w359 + ImageInfo.hash a0 + hashint a1
452        | hash (ImageDim(a0,a1)) = 0w367 + ImageInfo.hash a0 + hashint a1        | hash (IndexInside(a0,a1)) = 0w367 + ImageInfo.hash a0 + hashint a1
453        | hash (LoadSeq(a0,a1)) = 0w373 + hashty a0 + hashstring a1        | hash (ImageDim(a0,a1)) = 0w373 + ImageInfo.hash a0 + hashint a1
454        | hash (LoadImage(a0,a1)) = 0w379 + hashty a0 + hashstring a1        | hash (LoadSeq(a0,a1)) = 0w379 + hashty a0 + hashstring a1
455        | hash KillAll = 0w383        | hash (LoadImage(a0,a1)) = 0w383 + hashty a0 + hashstring a1
456        | hash StabilizeAll = 0w389        | hash KillAll = 0w389
457        | hash (Print(a0)) = 0w397 + hashtys a0        | hash StabilizeAll = 0w397
458        | hash (MathFn(a0)) = 0w401 + MathFns.hash a0        | hash (Print(a0)) = 0w401 + hashtys a0
459          | hash (MathFn(a0)) = 0w409 + MathFns.hash a0
460    
461      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
462        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 510  Line 515 
515        | toString Tan = "Tan"        | toString Tan = "Tan"
516        | toString ArcTan = "ArcTan"        | toString ArcTan = "ArcTan"
517        | toString Exp = "Exp"        | toString Exp = "Exp"
518          | toString Sgn = "Sgn"
519        | toString (Ceiling(a0)) = concat["Ceiling<", intToString a0, ">"]        | toString (Ceiling(a0)) = concat["Ceiling<", intToString a0, ">"]
520        | toString (Floor(a0)) = concat["Floor<", intToString a0, ">"]        | toString (Floor(a0)) = concat["Floor<", intToString a0, ">"]
521        | toString (Round(a0)) = concat["Round<", intToString a0, ">"]        | toString (Round(a0)) = concat["Round<", intToString 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