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

SCM Repository

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

Diff of /branches/vis15/src/compiler/high-ir/high-ir.sml

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

revision 3829, Thu May 5 21:05:37 2016 UTC revision 3830, Thu May 5 22:13:46 2016 UTC
# Line 66  Line 66 
66        | Max of ty        | Max of ty
67        | Min of ty        | Min of ty
68        | Clamp of ty        | Clamp of ty
69          | MapClamp of ty
70        | Lerp of ty        | Lerp of ty
71        | Eigen2x2        | Eigen2x2
72        | Eigen3x3        | Eigen3x3
# Line 124  Line 125 
125        | resultArity (Max _) = 1        | resultArity (Max _) = 1
126        | resultArity (Min _) = 1        | resultArity (Min _) = 1
127        | resultArity (Clamp _) = 1        | resultArity (Clamp _) = 1
128          | resultArity (MapClamp _) = 1
129        | resultArity (Lerp _) = 1        | resultArity (Lerp _) = 1
130        | resultArity Eigen2x2 = 1        | resultArity Eigen2x2 = 1
131        | resultArity Eigen3x3 = 1        | resultArity Eigen3x3 = 1
# Line 182  Line 184 
184        | arity (Max _) = 2        | arity (Max _) = 2
185        | arity (Min _) = 2        | arity (Min _) = 2
186        | arity (Clamp _) = 3        | arity (Clamp _) = 3
187          | arity (MapClamp _) = 3
188        | arity (Lerp _) = 3        | arity (Lerp _) = 3
189        | arity Eigen2x2 = 1        | arity Eigen2x2 = 1
190        | arity Eigen3x3 = 1        | arity Eigen3x3 = 1
# Line 247  Line 250 
250        | same (Max(a0), Max(b0)) = samety(a0, b0)        | same (Max(a0), Max(b0)) = samety(a0, b0)
251        | same (Min(a0), Min(b0)) = samety(a0, b0)        | same (Min(a0), Min(b0)) = samety(a0, b0)
252        | same (Clamp(a0), Clamp(b0)) = samety(a0, b0)        | same (Clamp(a0), Clamp(b0)) = samety(a0, b0)
253          | same (MapClamp(a0), MapClamp(b0)) = samety(a0, b0)
254        | same (Lerp(a0), Lerp(b0)) = samety(a0, b0)        | same (Lerp(a0), Lerp(b0)) = samety(a0, b0)
255        | same (Eigen2x2, Eigen2x2) = true        | same (Eigen2x2, Eigen2x2) = true
256        | same (Eigen3x3, Eigen3x3) = true        | same (Eigen3x3, Eigen3x3) = true
# Line 306  Line 310 
310        | hash (Max(a0)) = 0w59 + hashty a0        | hash (Max(a0)) = 0w59 + hashty a0
311        | hash (Min(a0)) = 0w61 + hashty a0        | hash (Min(a0)) = 0w61 + hashty a0
312        | hash (Clamp(a0)) = 0w67 + hashty a0        | hash (Clamp(a0)) = 0w67 + hashty a0
313        | hash (Lerp(a0)) = 0w71 + hashty a0        | hash (MapClamp(a0)) = 0w71 + hashty a0
314        | hash Eigen2x2 = 0w73        | hash (Lerp(a0)) = 0w73 + hashty a0
315        | hash Eigen3x3 = 0w79        | hash Eigen2x2 = 0w79
316        | hash (Zero(a0)) = 0w83 + hashty a0        | hash Eigen3x3 = 0w83
317        | hash (TensorSlice(a0,a1)) = 0w89 + hashty a0 + hashmask a1        | hash (Zero(a0)) = 0w89 + hashty a0
318        | hash (TensorIndex(a0,a1)) = 0w97 + hashty a0 + hashshape a1        | hash (TensorSlice(a0,a1)) = 0w97 + hashty a0 + hashmask a1
319        | hash (Select(a0,a1)) = 0w101 + hashty a0 + hashint a1        | hash (TensorIndex(a0,a1)) = 0w101 + hashty a0 + hashshape a1
320        | hash (Subscript(a0)) = 0w103 + hashty a0        | hash (Select(a0,a1)) = 0w103 + hashty a0 + hashint a1
321        | hash (MkDynamic(a0,a1)) = 0w107 + hashty a0 + hashint a1        | hash (Subscript(a0)) = 0w107 + hashty a0
322        | hash (Append(a0)) = 0w109 + hashty a0        | hash (MkDynamic(a0,a1)) = 0w109 + hashty a0 + hashint a1
323        | hash (Prepend(a0)) = 0w113 + hashty a0        | hash (Append(a0)) = 0w113 + hashty a0
324        | hash (Concat(a0)) = 0w127 + hashty a0        | hash (Prepend(a0)) = 0w127 + hashty a0
325        | hash Range = 0w131        | hash (Concat(a0)) = 0w131 + hashty a0
326        | hash (Length(a0)) = 0w137 + hashty a0        | hash Range = 0w137
327        | hash (SphereQuery(a0,a1)) = 0w139 + hashty a0 + hashty a1        | hash (Length(a0)) = 0w139 + hashty a0
328        | hash IntToReal = 0w149        | hash (SphereQuery(a0,a1)) = 0w149 + hashty a0 + hashty a1
329        | hash TruncToInt = 0w151        | hash IntToReal = 0w151
330        | hash RoundToInt = 0w157        | hash TruncToInt = 0w157
331        | hash CeilToInt = 0w163        | hash RoundToInt = 0w163
332        | hash FloorToInt = 0w167        | hash CeilToInt = 0w167
333        | hash (R_All(a0)) = 0w173 + hashty a0        | hash FloorToInt = 0w173
334        | hash (R_Exists(a0)) = 0w179 + hashty a0        | hash (R_All(a0)) = 0w179 + hashty a0
335        | hash (R_Max(a0)) = 0w181 + hashty a0        | hash (R_Exists(a0)) = 0w181 + hashty a0
336        | hash (R_Min(a0)) = 0w191 + hashty a0        | hash (R_Max(a0)) = 0w191 + hashty a0
337        | hash (R_Sum(a0)) = 0w193 + hashty a0        | hash (R_Min(a0)) = 0w193 + hashty a0
338        | hash (R_Product(a0)) = 0w197 + hashty a0        | hash (R_Sum(a0)) = 0w197 + hashty a0
339        | hash (R_Mean(a0)) = 0w199 + hashty a0        | hash (R_Product(a0)) = 0w199 + hashty a0
340        | hash (R_Variance(a0)) = 0w211 + hashty a0        | hash (R_Mean(a0)) = 0w211 + hashty a0
341        | hash (Kernel(a0,a1)) = 0w223 + Kernel.hash a0 + hashint a1        | hash (R_Variance(a0)) = 0w223 + hashty a0
342        | hash (Inside(a0)) = 0w227 + hashint a0        | hash (Kernel(a0,a1)) = 0w227 + Kernel.hash a0 + hashint a1
343        | hash (ImageDim(a0,a1)) = 0w229 + ImageInfo.hash a0 + hashint a1        | hash (Inside(a0)) = 0w229 + hashint a0
344        | hash (BorderCtlDefault(a0)) = 0w233 + ImageInfo.hash a0        | hash (ImageDim(a0,a1)) = 0w233 + ImageInfo.hash a0 + hashint a1
345        | hash (BorderCtlClamp(a0)) = 0w239 + ImageInfo.hash a0        | hash (BorderCtlDefault(a0)) = 0w239 + ImageInfo.hash a0
346        | hash (BorderCtlMirror(a0)) = 0w241 + ImageInfo.hash a0        | hash (BorderCtlClamp(a0)) = 0w241 + ImageInfo.hash a0
347        | hash (BorderCtlWrap(a0)) = 0w251 + ImageInfo.hash a0        | hash (BorderCtlMirror(a0)) = 0w251 + ImageInfo.hash a0
348        | hash (LoadSeq(a0,a1)) = 0w257 + hashty a0 + hashstring a1        | hash (BorderCtlWrap(a0)) = 0w257 + ImageInfo.hash a0
349        | hash (LoadImage(a0,a1)) = 0w263 + hashty a0 + hashstring a1        | hash (LoadSeq(a0,a1)) = 0w263 + hashty a0 + hashstring a1
350        | hash (Print(a0)) = 0w269 + hashtys a0        | hash (LoadImage(a0,a1)) = 0w269 + hashty a0 + hashstring a1
351        | hash (MathFn(a0)) = 0w271 + MathFns.hash a0        | hash (Print(a0)) = 0w271 + hashtys a0
352          | hash (MathFn(a0)) = 0w277 + MathFns.hash a0
353    
354      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
355        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 364  Line 369 
369        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]
370        | toString (Min(a0)) = concat["Min<", tyToString a0, ">"]        | toString (Min(a0)) = concat["Min<", tyToString a0, ">"]
371        | toString (Clamp(a0)) = concat["Clamp<", tyToString a0, ">"]        | toString (Clamp(a0)) = concat["Clamp<", tyToString a0, ">"]
372          | toString (MapClamp(a0)) = concat["MapClamp<", tyToString a0, ">"]
373        | toString (Lerp(a0)) = concat["Lerp<", tyToString a0, ">"]        | toString (Lerp(a0)) = concat["Lerp<", tyToString a0, ">"]
374        | toString Eigen2x2 = "Eigen2x2"        | toString Eigen2x2 = "Eigen2x2"
375        | toString Eigen3x3 = "Eigen3x3"        | toString Eigen3x3 = "Eigen3x3"

Legend:
Removed from v.3829  
changed lines
  Added in v.3830

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