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 3843, Tue May 10 15:10:58 2016 UTC revision 3844, Tue May 10 19:15:03 2016 UTC
# Line 88  Line 88 
88        | VMul of int        | VMul of int
89        | VNeg of int        | VNeg of int
90        | VSum of int        | VSum of int
91          | VIndex of int * int
92        | VClamp of int        | VClamp of int
93        | VMapClamp of int        | VMapClamp of int
94        | VLerp of int        | VLerp of int
# Line 167  Line 168 
168        | resultArity (VMul _) = 1        | resultArity (VMul _) = 1
169        | resultArity (VNeg _) = 1        | resultArity (VNeg _) = 1
170        | resultArity (VSum _) = 1        | resultArity (VSum _) = 1
171          | resultArity (VIndex _) = 1
172        | resultArity (VClamp _) = 1        | resultArity (VClamp _) = 1
173        | resultArity (VMapClamp _) = 1        | resultArity (VMapClamp _) = 1
174        | resultArity (VLerp _) = 1        | resultArity (VLerp _) = 1
# Line 246  Line 248 
248        | arity (VMul _) = 2        | arity (VMul _) = 2
249        | arity (VNeg _) = 2        | arity (VNeg _) = 2
250        | arity (VSum _) = 1        | arity (VSum _) = 1
251          | arity (VIndex _) = 1
252        | arity (VClamp _) = 3        | arity (VClamp _) = 3
253        | arity (VMapClamp _) = 3        | arity (VMapClamp _) = 3
254        | arity (VLerp _) = 3        | arity (VLerp _) = 3
# Line 331  Line 334 
334        | same (VMul(a0), VMul(b0)) = sameint(a0, b0)        | same (VMul(a0), VMul(b0)) = sameint(a0, b0)
335        | same (VNeg(a0), VNeg(b0)) = sameint(a0, b0)        | same (VNeg(a0), VNeg(b0)) = sameint(a0, b0)
336        | same (VSum(a0), VSum(b0)) = sameint(a0, b0)        | same (VSum(a0), VSum(b0)) = sameint(a0, b0)
337          | same (VIndex(a0,a1), VIndex(b0,b1)) = sameint(a0, b0) andalso sameint(a1, b1)
338        | same (VClamp(a0), VClamp(b0)) = sameint(a0, b0)        | same (VClamp(a0), VClamp(b0)) = sameint(a0, b0)
339        | same (VMapClamp(a0), VMapClamp(b0)) = sameint(a0, b0)        | same (VMapClamp(a0), VMapClamp(b0)) = sameint(a0, b0)
340        | same (VLerp(a0), VLerp(b0)) = sameint(a0, b0)        | same (VLerp(a0), VLerp(b0)) = sameint(a0, b0)
# Line 411  Line 415 
415        | hash (VMul(a0)) = 0w107 + hashint a0        | hash (VMul(a0)) = 0w107 + hashint a0
416        | hash (VNeg(a0)) = 0w109 + hashint a0        | hash (VNeg(a0)) = 0w109 + hashint a0
417        | hash (VSum(a0)) = 0w113 + hashint a0        | hash (VSum(a0)) = 0w113 + hashint a0
418        | hash (VClamp(a0)) = 0w127 + hashint a0        | hash (VIndex(a0,a1)) = 0w127 + hashint a0 + hashint a1
419        | hash (VMapClamp(a0)) = 0w131 + hashint a0        | hash (VClamp(a0)) = 0w131 + hashint a0
420        | hash (VLerp(a0)) = 0w137 + hashint a0        | hash (VMapClamp(a0)) = 0w137 + hashint a0
421        | hash (TensorIndex(a0,a1)) = 0w139 + hashty a0 + hashshape a1        | hash (VLerp(a0)) = 0w139 + hashint a0
422        | hash EigenVecs2x2 = 0w149        | hash (TensorIndex(a0,a1)) = 0w149 + hashty a0 + hashshape a1
423        | hash EigenVecs3x3 = 0w151        | hash EigenVecs2x2 = 0w151
424        | hash EigenVals2x2 = 0w157        | hash EigenVecs3x3 = 0w157
425        | hash EigenVals3x3 = 0w163        | hash EigenVals2x2 = 0w163
426        | hash (Zero(a0)) = 0w167 + hashty a0        | hash EigenVals3x3 = 0w167
427        | hash (Select(a0,a1)) = 0w173 + hashty a0 + hashint a1        | hash (Zero(a0)) = 0w173 + hashty a0
428        | hash (Subscript(a0)) = 0w179 + hashty a0        | hash (Select(a0,a1)) = 0w179 + hashty a0 + hashint a1
429        | hash (MkDynamic(a0,a1)) = 0w181 + hashty a0 + hashint a1        | hash (Subscript(a0)) = 0w181 + hashty a0
430        | hash (Append(a0)) = 0w191 + hashty a0        | hash (MkDynamic(a0,a1)) = 0w191 + hashty a0 + hashint a1
431        | hash (Prepend(a0)) = 0w193 + hashty a0        | hash (Append(a0)) = 0w193 + hashty a0
432        | hash (Concat(a0)) = 0w197 + hashty a0        | hash (Prepend(a0)) = 0w197 + hashty a0
433        | hash Range = 0w199        | hash (Concat(a0)) = 0w199 + hashty a0
434        | hash (Length(a0)) = 0w211 + hashty a0        | hash Range = 0w211
435        | hash (SphereQuery(a0,a1)) = 0w223 + hashty a0 + hashty a1        | hash (Length(a0)) = 0w223 + hashty a0
436        | hash Sqrt = 0w227        | hash (SphereQuery(a0,a1)) = 0w227 + hashty a0 + hashty a1
437        | hash Cos = 0w229        | hash Sqrt = 0w229
438        | hash ArcCos = 0w233        | hash Cos = 0w233
439        | hash Sin = 0w239        | hash ArcCos = 0w239
440        | hash ArcSin = 0w241        | hash Sin = 0w241
441        | hash Tan = 0w251        | hash ArcSin = 0w251
442        | hash ArcTan = 0w257        | hash Tan = 0w257
443        | hash Exp = 0w263        | hash ArcTan = 0w263
444        | hash (Ceiling(a0)) = 0w269 + hashint a0        | hash Exp = 0w269
445        | hash (Floor(a0)) = 0w271 + hashint a0        | hash (Ceiling(a0)) = 0w271 + hashint a0
446        | hash (Round(a0)) = 0w277 + hashint a0        | hash (Floor(a0)) = 0w277 + hashint a0
447        | hash (Trunc(a0)) = 0w281 + hashint a0        | hash (Round(a0)) = 0w281 + hashint a0
448        | hash IntToReal = 0w283        | hash (Trunc(a0)) = 0w283 + hashint a0
449        | hash (RealToInt(a0)) = 0w293 + hashint a0        | hash IntToReal = 0w293
450        | hash (R_All(a0)) = 0w307 + hashty a0        | hash (RealToInt(a0)) = 0w307 + hashint a0
451        | hash (R_Exists(a0)) = 0w311 + hashty a0        | hash (R_All(a0)) = 0w311 + hashty a0
452        | hash (R_Max(a0)) = 0w313 + hashty a0        | hash (R_Exists(a0)) = 0w313 + hashty a0
453        | hash (R_Min(a0)) = 0w317 + hashty a0        | hash (R_Max(a0)) = 0w317 + hashty a0
454        | hash (R_Sum(a0)) = 0w331 + hashty a0        | hash (R_Min(a0)) = 0w331 + hashty a0
455        | hash (R_Product(a0)) = 0w337 + hashty a0        | hash (R_Sum(a0)) = 0w337 + hashty a0
456        | hash (R_Mean(a0)) = 0w347 + hashty a0        | hash (R_Product(a0)) = 0w347 + hashty a0
457        | hash (R_Variance(a0)) = 0w349 + hashty a0        | hash (R_Mean(a0)) = 0w349 + hashty a0
458        | hash (Transform(a0,a1)) = 0w353 + ImageInfo.hash a0 + hashint a1        | hash (R_Variance(a0)) = 0w353 + hashty a0
459        | hash (Translate(a0)) = 0w359 + ImageInfo.hash a0        | hash (Transform(a0,a1)) = 0w359 + ImageInfo.hash a0 + hashint a1
460        | hash (BaseAddress(a0)) = 0w367 + ImageInfo.hash a0        | hash (Translate(a0)) = 0w367 + ImageInfo.hash a0
461        | hash (ControlIndex(a0,a1,a2)) = 0w373 + ImageInfo.hash a0 + hashidxctl a1 + hashint a2        | hash (BaseAddress(a0)) = 0w373 + ImageInfo.hash a0
462        | hash (Inside(a0,a1)) = 0w379 + ImageInfo.hash a0 + hashint a1        | hash (ControlIndex(a0,a1,a2)) = 0w379 + ImageInfo.hash a0 + hashidxctl a1 + hashint a2
463        | hash (ImageDim(a0,a1)) = 0w383 + ImageInfo.hash a0 + hashint a1        | hash (Inside(a0,a1)) = 0w383 + ImageInfo.hash a0 + hashint a1
464        | hash (LoadSeq(a0,a1)) = 0w389 + hashty a0 + hashstring a1        | hash (ImageDim(a0,a1)) = 0w389 + ImageInfo.hash a0 + hashint a1
465        | hash (LoadImage(a0,a1)) = 0w397 + hashty a0 + hashstring a1        | hash (LoadSeq(a0,a1)) = 0w397 + hashty a0 + hashstring a1
466        | hash (MathFn(a0)) = 0w401 + MathFns.hash a0        | hash (LoadImage(a0,a1)) = 0w401 + hashty a0 + hashstring a1
467          | hash (MathFn(a0)) = 0w409 + MathFns.hash a0
468    
469      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
470        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 490  Line 495 
495        | toString (VMul(a0)) = concat["VMul<", intToString a0, ">"]        | toString (VMul(a0)) = concat["VMul<", intToString a0, ">"]
496        | toString (VNeg(a0)) = concat["VNeg<", intToString a0, ">"]        | toString (VNeg(a0)) = concat["VNeg<", intToString a0, ">"]
497        | toString (VSum(a0)) = concat["VSum<", intToString a0, ">"]        | toString (VSum(a0)) = concat["VSum<", intToString a0, ">"]
498          | toString (VIndex(a0,a1)) = concat["VIndex<", intToString a0, ",", intToString a1, ">"]
499        | toString (VClamp(a0)) = concat["VClamp<", intToString a0, ">"]        | toString (VClamp(a0)) = concat["VClamp<", intToString a0, ">"]
500        | toString (VMapClamp(a0)) = concat["VMapClamp<", intToString a0, ">"]        | toString (VMapClamp(a0)) = concat["VMapClamp<", intToString a0, ">"]
501        | toString (VLerp(a0)) = concat["VLerp<", intToString a0, ">"]        | toString (VLerp(a0)) = concat["VLerp<", intToString a0, ">"]

Legend:
Removed from v.3843  
changed lines
  Added in v.3844

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