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 4433, Fri Aug 19 15:12:41 2016 UTC revision 4434, Fri Aug 19 16:45:13 2016 UTC
# Line 83  Line 83 
83        | NEQ of ty        | NEQ of ty
84        | GT of ty        | GT of ty
85        | GTE of ty        | GTE of ty
86        | Not        | BAnd
87          | BOr
88          | BNot
89        | Abs of ty        | Abs of ty
90        | Max of ty        | Max of ty
91        | Min of ty        | Min of ty
# Line 165  Line 167 
167        | resultArity (NEQ _) = 1        | resultArity (NEQ _) = 1
168        | resultArity (GT _) = 1        | resultArity (GT _) = 1
169        | resultArity (GTE _) = 1        | resultArity (GTE _) = 1
170        | resultArity Not = 1        | resultArity BAnd = 1
171          | resultArity BOr = 1
172          | resultArity BNot = 1
173        | resultArity (Abs _) = 1        | resultArity (Abs _) = 1
174        | resultArity (Max _) = 1        | resultArity (Max _) = 1
175        | resultArity (Min _) = 1        | resultArity (Min _) = 1
# Line 247  Line 251 
251        | arity (NEQ _) = 2        | arity (NEQ _) = 2
252        | arity (GT _) = 2        | arity (GT _) = 2
253        | arity (GTE _) = 2        | arity (GTE _) = 2
254        | arity Not = 1        | arity BAnd = 2
255          | arity BOr = 2
256          | arity BNot = 1
257        | arity (Abs _) = 1        | arity (Abs _) = 1
258        | arity (Max _) = 2        | arity (Max _) = 2
259        | arity (Min _) = 2        | arity (Min _) = 2
# Line 335  Line 341 
341        | same (NEQ(a0), NEQ(b0)) = samety(a0, b0)        | same (NEQ(a0), NEQ(b0)) = samety(a0, b0)
342        | same (GT(a0), GT(b0)) = samety(a0, b0)        | same (GT(a0), GT(b0)) = samety(a0, b0)
343        | same (GTE(a0), GTE(b0)) = samety(a0, b0)        | same (GTE(a0), GTE(b0)) = samety(a0, b0)
344        | same (Not, Not) = true        | same (BAnd, BAnd) = true
345          | same (BOr, BOr) = true
346          | same (BNot, BNot) = true
347        | same (Abs(a0), Abs(b0)) = samety(a0, b0)        | same (Abs(a0), Abs(b0)) = samety(a0, b0)
348        | same (Max(a0), Max(b0)) = samety(a0, b0)        | same (Max(a0), Max(b0)) = samety(a0, b0)
349        | same (Min(a0), Min(b0)) = samety(a0, b0)        | same (Min(a0), Min(b0)) = samety(a0, b0)
# Line 418  Line 426 
426        | hash (NEQ(a0)) = 0w83 + hashty a0        | hash (NEQ(a0)) = 0w83 + hashty a0
427        | hash (GT(a0)) = 0w89 + hashty a0        | hash (GT(a0)) = 0w89 + hashty a0
428        | hash (GTE(a0)) = 0w97 + hashty a0        | hash (GTE(a0)) = 0w97 + hashty a0
429        | hash Not = 0w101        | hash BAnd = 0w101
430        | hash (Abs(a0)) = 0w103 + hashty a0        | hash BOr = 0w103
431        | hash (Max(a0)) = 0w107 + hashty a0        | hash BNot = 0w107
432        | hash (Min(a0)) = 0w109 + hashty a0        | hash (Abs(a0)) = 0w109 + hashty a0
433        | hash (VAdd(a0,a1)) = 0w113 + hashint a0 + hashint a1        | hash (Max(a0)) = 0w113 + hashty a0
434        | hash (VSub(a0,a1)) = 0w127 + hashint a0 + hashint a1        | hash (Min(a0)) = 0w127 + hashty a0
435        | hash (VScale(a0,a1)) = 0w131 + hashint a0 + hashint a1        | hash (VAdd(a0,a1)) = 0w131 + hashint a0 + hashint a1
436        | hash (VMul(a0,a1)) = 0w137 + hashint a0 + hashint a1        | hash (VSub(a0,a1)) = 0w137 + hashint a0 + hashint a1
437        | hash (VNeg(a0,a1)) = 0w139 + hashint a0 + hashint a1        | hash (VScale(a0,a1)) = 0w139 + hashint a0 + hashint a1
438        | hash (VSum(a0,a1)) = 0w149 + hashint a0 + hashint a1        | hash (VMul(a0,a1)) = 0w149 + hashint a0 + hashint a1
439        | hash (VDot(a0,a1)) = 0w151 + hashint a0 + hashint a1        | hash (VNeg(a0,a1)) = 0w151 + hashint a0 + hashint a1
440        | hash (VIndex(a0,a1,a2)) = 0w157 + hashint a0 + hashint a1 + hashint a2        | hash (VSum(a0,a1)) = 0w157 + hashint a0 + hashint a1
441        | hash (VClamp(a0,a1)) = 0w163 + hashint a0 + hashint a1        | hash (VDot(a0,a1)) = 0w163 + hashint a0 + hashint a1
442        | hash (VMapClamp(a0,a1)) = 0w167 + hashint a0 + hashint a1        | hash (VIndex(a0,a1,a2)) = 0w167 + hashint a0 + hashint a1 + hashint a2
443        | hash (VLerp(a0,a1)) = 0w173 + hashint a0 + hashint a1        | hash (VClamp(a0,a1)) = 0w173 + hashint a0 + hashint a1
444        | hash (VCeiling(a0,a1)) = 0w179 + hashint a0 + hashint a1        | hash (VMapClamp(a0,a1)) = 0w179 + hashint a0 + hashint a1
445        | hash (VFloor(a0,a1)) = 0w181 + hashint a0 + hashint a1        | hash (VLerp(a0,a1)) = 0w181 + hashint a0 + hashint a1
446        | hash (VRound(a0,a1)) = 0w191 + hashint a0 + hashint a1        | hash (VCeiling(a0,a1)) = 0w191 + hashint a0 + hashint a1
447        | hash (VTrunc(a0,a1)) = 0w193 + hashint a0 + hashint a1        | hash (VFloor(a0,a1)) = 0w193 + hashint a0 + hashint a1
448        | hash (VToInt(a0,a1)) = 0w197 + hashint a0 + hashint a1        | hash (VRound(a0,a1)) = 0w197 + hashint a0 + hashint a1
449        | hash (TensorIndex(a0,a1)) = 0w199 + hashty a0 + hashshape a1        | hash (VTrunc(a0,a1)) = 0w199 + hashint a0 + hashint a1
450        | hash (ProjectLast(a0,a1)) = 0w211 + hashty a0 + hashshape a1        | hash (VToInt(a0,a1)) = 0w211 + hashint a0 + hashint a1
451        | hash (TensorCopy(a0)) = 0w223 + hashshape a0        | hash (TensorIndex(a0,a1)) = 0w223 + hashty a0 + hashshape a1
452        | hash (TensorRef(a0)) = 0w227 + hashshape a0        | hash (ProjectLast(a0,a1)) = 0w227 + hashty a0 + hashshape a1
453        | hash EigenVecs2x2 = 0w229        | hash (TensorCopy(a0)) = 0w229 + hashshape a0
454        | hash EigenVecs3x3 = 0w233        | hash (TensorRef(a0)) = 0w233 + hashshape a0
455        | hash EigenVals2x2 = 0w239        | hash EigenVecs2x2 = 0w239
456        | hash EigenVals3x3 = 0w241        | hash EigenVecs3x3 = 0w241
457        | hash (Select(a0,a1)) = 0w251 + hashty a0 + hashint a1        | hash EigenVals2x2 = 0w251
458        | hash (Subscript(a0)) = 0w257 + hashty a0        | hash EigenVals3x3 = 0w257
459        | hash (MkDynamic(a0,a1)) = 0w263 + hashty a0 + hashint a1        | hash (Select(a0,a1)) = 0w263 + hashty a0 + hashint a1
460        | hash (Append(a0,a1)) = 0w269 + hashty a0 + hashty a1        | hash (Subscript(a0)) = 0w269 + hashty a0
461        | hash (Prepend(a0,a1)) = 0w271 + hashty a0 + hashty a1        | hash (MkDynamic(a0,a1)) = 0w271 + hashty a0 + hashint a1
462        | hash (Concat(a0)) = 0w277 + hashty a0        | hash (Append(a0,a1)) = 0w277 + hashty a0 + hashty a1
463        | hash Range = 0w281        | hash (Prepend(a0,a1)) = 0w281 + hashty a0 + hashty a1
464        | hash (Length(a0)) = 0w283 + hashty a0        | hash (Concat(a0)) = 0w283 + hashty a0
465        | hash (SphereQuery(a0,a1)) = 0w293 + hashint a0 + hashty a1        | hash Range = 0w293
466        | hash Sqrt = 0w307        | hash (Length(a0)) = 0w307 + hashty a0
467        | hash Cos = 0w311        | hash (SphereQuery(a0,a1)) = 0w311 + hashint a0 + hashty a1
468        | hash ArcCos = 0w313        | hash Sqrt = 0w313
469        | hash Sin = 0w317        | hash Cos = 0w317
470        | hash ArcSin = 0w331        | hash ArcCos = 0w331
471        | hash Tan = 0w337        | hash Sin = 0w337
472        | hash ArcTan = 0w347        | hash ArcSin = 0w347
473        | hash Exp = 0w349        | hash Tan = 0w349
474        | hash IntToReal = 0w353        | hash ArcTan = 0w353
475        | hash (NumStrands(a0)) = 0w359 + StrandSets.hash a0        | hash Exp = 0w359
476        | hash (Strands(a0,a1)) = 0w367 + hashty a0 + StrandSets.hash a1        | hash IntToReal = 0w367
477        | hash (Transform(a0)) = 0w373 + ImageInfo.hash a0        | hash (NumStrands(a0)) = 0w373 + StrandSets.hash a0
478        | hash (Translate(a0)) = 0w379 + ImageInfo.hash a0        | hash (Strands(a0,a1)) = 0w379 + hashty a0 + StrandSets.hash a1
479        | hash (BaseAddress(a0)) = 0w383 + ImageInfo.hash a0        | hash (Transform(a0)) = 0w383 + ImageInfo.hash a0
480        | hash (ControlIndex(a0,a1,a2)) = 0w389 + ImageInfo.hash a0 + hashidxctl a1 + hashint a2        | hash (Translate(a0)) = 0w389 + ImageInfo.hash a0
481        | hash (LoadVoxel(a0)) = 0w397 + ImageInfo.hash a0        | hash (BaseAddress(a0)) = 0w397 + ImageInfo.hash a0
482        | hash (Inside(a0,a1,a2)) = 0w401 + VectorLayout.hash a0 + ImageInfo.hash a1 + hashint a2        | hash (ControlIndex(a0,a1,a2)) = 0w401 + ImageInfo.hash a0 + hashidxctl a1 + hashint a2
483        | hash (IndexInside(a0,a1)) = 0w409 + ImageInfo.hash a0 + hashint a1        | hash (LoadVoxel(a0)) = 0w409 + ImageInfo.hash a0
484        | hash (ImageDim(a0,a1)) = 0w419 + ImageInfo.hash a0 + hashint a1        | hash (Inside(a0,a1,a2)) = 0w419 + VectorLayout.hash a0 + ImageInfo.hash a1 + hashint a2
485        | hash (MathFn(a0)) = 0w421 + MathFns.hash a0        | hash (IndexInside(a0,a1)) = 0w421 + ImageInfo.hash a0 + hashint a1
486          | hash (ImageDim(a0,a1)) = 0w431 + ImageInfo.hash a0 + hashint a1
487          | hash (MathFn(a0)) = 0w433 + MathFns.hash a0
488    
489      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
490        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 500  Line 510 
510        | toString (NEQ(a0)) = concat["NEQ<", tyToString a0, ">"]        | toString (NEQ(a0)) = concat["NEQ<", tyToString a0, ">"]
511        | toString (GT(a0)) = concat["GT<", tyToString a0, ">"]        | toString (GT(a0)) = concat["GT<", tyToString a0, ">"]
512        | toString (GTE(a0)) = concat["GTE<", tyToString a0, ">"]        | toString (GTE(a0)) = concat["GTE<", tyToString a0, ">"]
513        | toString Not = "Not"        | toString BAnd = "BAnd"
514          | toString BOr = "BOr"
515          | toString BNot = "BNot"
516        | toString (Abs(a0)) = concat["Abs<", tyToString a0, ">"]        | toString (Abs(a0)) = concat["Abs<", tyToString a0, ">"]
517        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]
518        | toString (Min(a0)) = concat["Min<", tyToString a0, ">"]        | toString (Min(a0)) = concat["Min<", tyToString a0, ">"]

Legend:
Removed from v.4433  
changed lines
  Added in v.4434

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