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 4433, Fri Aug 19 15:12:41 2016 UTC revision 4434, Fri Aug 19 16:45:13 2016 UTC
# Line 55  Line 55 
55        | GT of ty        | GT of ty
56        | GTE of ty        | GTE of ty
57        | Power        | Power
58        | Not        | BAnd
59          | BOr
60          | BNot
61        | Abs of ty        | Abs of ty
62        | Max of ty        | Max of ty
63        | Min of ty        | Min of ty
# Line 107  Line 109 
109        | resultArity (GT _) = 1        | resultArity (GT _) = 1
110        | resultArity (GTE _) = 1        | resultArity (GTE _) = 1
111        | resultArity Power = 1        | resultArity Power = 1
112        | resultArity Not = 1        | resultArity BAnd = 1
113          | resultArity BOr = 1
114          | resultArity BNot = 1
115        | resultArity (Abs _) = 1        | resultArity (Abs _) = 1
116        | resultArity (Max _) = 1        | resultArity (Max _) = 1
117        | resultArity (Min _) = 1        | resultArity (Min _) = 1
# Line 159  Line 163 
163        | arity (GT _) = 2        | arity (GT _) = 2
164        | arity (GTE _) = 2        | arity (GTE _) = 2
165        | arity Power = 2        | arity Power = 2
166        | arity Not = 1        | arity BAnd = 2
167          | arity BOr = 2
168          | arity BNot = 1
169        | arity (Abs _) = 1        | arity (Abs _) = 1
170        | arity (Max _) = 2        | arity (Max _) = 2
171        | arity (Min _) = 2        | arity (Min _) = 2
# Line 218  Line 224 
224        | same (GT(a0), GT(b0)) = samety(a0, b0)        | same (GT(a0), GT(b0)) = samety(a0, b0)
225        | same (GTE(a0), GTE(b0)) = samety(a0, b0)        | same (GTE(a0), GTE(b0)) = samety(a0, b0)
226        | same (Power, Power) = true        | same (Power, Power) = true
227        | same (Not, Not) = true        | same (BAnd, BAnd) = true
228          | same (BOr, BOr) = true
229          | same (BNot, BNot) = true
230        | same (Abs(a0), Abs(b0)) = samety(a0, b0)        | same (Abs(a0), Abs(b0)) = samety(a0, b0)
231        | same (Max(a0), Max(b0)) = samety(a0, b0)        | same (Max(a0), Max(b0)) = samety(a0, b0)
232        | same (Min(a0), Min(b0)) = samety(a0, b0)        | same (Min(a0), Min(b0)) = samety(a0, b0)
# Line 271  Line 279 
279        | hash (GT(a0)) = 0w37 + hashty a0        | hash (GT(a0)) = 0w37 + hashty a0
280        | hash (GTE(a0)) = 0w41 + hashty a0        | hash (GTE(a0)) = 0w41 + hashty a0
281        | hash Power = 0w43        | hash Power = 0w43
282        | hash Not = 0w47        | hash BAnd = 0w47
283        | hash (Abs(a0)) = 0w53 + hashty a0        | hash BOr = 0w53
284        | hash (Max(a0)) = 0w59 + hashty a0        | hash BNot = 0w59
285        | hash (Min(a0)) = 0w61 + hashty a0        | hash (Abs(a0)) = 0w61 + hashty a0
286        | hash (Clamp(a0)) = 0w67 + hashty a0        | hash (Max(a0)) = 0w67 + hashty a0
287        | hash (MapClamp(a0)) = 0w71 + hashty a0        | hash (Min(a0)) = 0w71 + hashty a0
288        | hash (Lerp(a0)) = 0w73 + hashty a0        | hash (Clamp(a0)) = 0w73 + hashty a0
289        | hash Eigen2x2 = 0w79        | hash (MapClamp(a0)) = 0w79 + hashty a0
290        | hash Eigen3x3 = 0w83        | hash (Lerp(a0)) = 0w83 + hashty a0
291        | hash (Zero(a0)) = 0w89 + hashty a0        | hash Eigen2x2 = 0w89
292        | hash (TensorIndex(a0,a1)) = 0w97 + hashty a0 + hashshape a1        | hash Eigen3x3 = 0w97
293        | hash (Select(a0,a1)) = 0w101 + hashty a0 + hashint a1        | hash (Zero(a0)) = 0w101 + hashty a0
294        | hash (Subscript(a0)) = 0w103 + hashty a0        | hash (TensorIndex(a0,a1)) = 0w103 + hashty a0 + hashshape a1
295        | hash (MkDynamic(a0,a1)) = 0w107 + hashty a0 + hashint a1        | hash (Select(a0,a1)) = 0w107 + hashty a0 + hashint a1
296        | hash (Append(a0)) = 0w109 + hashty a0        | hash (Subscript(a0)) = 0w109 + hashty a0
297        | hash (Prepend(a0)) = 0w113 + hashty a0        | hash (MkDynamic(a0,a1)) = 0w113 + hashty a0 + hashint a1
298        | hash (Concat(a0)) = 0w127 + hashty a0        | hash (Append(a0)) = 0w127 + hashty a0
299        | hash Range = 0w131        | hash (Prepend(a0)) = 0w131 + hashty a0
300        | hash (Length(a0)) = 0w137 + hashty a0        | hash (Concat(a0)) = 0w137 + hashty a0
301        | hash (SphereQuery(a0,a1)) = 0w139 + hashint a0 + hashty a1        | hash Range = 0w139
302        | hash IntToReal = 0w149        | hash (Length(a0)) = 0w149 + hashty a0
303        | hash TruncToInt = 0w151        | hash (SphereQuery(a0,a1)) = 0w151 + hashint a0 + hashty a1
304        | hash RoundToInt = 0w157        | hash IntToReal = 0w157
305        | hash CeilToInt = 0w163        | hash TruncToInt = 0w163
306        | hash FloorToInt = 0w167        | hash RoundToInt = 0w167
307        | hash (NumStrands(a0)) = 0w173 + StrandSets.hash a0        | hash CeilToInt = 0w173
308        | hash (Strands(a0,a1)) = 0w179 + hashty a0 + StrandSets.hash a1        | hash FloorToInt = 0w179
309        | hash (Kernel(a0,a1)) = 0w181 + Kernel.hash a0 + hashint a1        | hash (NumStrands(a0)) = 0w181 + StrandSets.hash a0
310        | hash (Inside(a0,a1)) = 0w191 + ImageInfo.hash a0 + hashint a1        | hash (Strands(a0,a1)) = 0w191 + hashty a0 + StrandSets.hash a1
311        | hash (ImageDim(a0,a1)) = 0w193 + ImageInfo.hash a0 + hashint a1        | hash (Kernel(a0,a1)) = 0w193 + Kernel.hash a0 + hashint a1
312        | hash (BorderCtlDefault(a0)) = 0w197 + ImageInfo.hash a0        | hash (Inside(a0,a1)) = 0w197 + ImageInfo.hash a0 + hashint a1
313        | hash (BorderCtlClamp(a0)) = 0w199 + ImageInfo.hash a0        | hash (ImageDim(a0,a1)) = 0w199 + ImageInfo.hash a0 + hashint a1
314        | hash (BorderCtlMirror(a0)) = 0w211 + ImageInfo.hash a0        | hash (BorderCtlDefault(a0)) = 0w211 + ImageInfo.hash a0
315        | hash (BorderCtlWrap(a0)) = 0w223 + ImageInfo.hash a0        | hash (BorderCtlClamp(a0)) = 0w223 + ImageInfo.hash a0
316        | hash (LoadSeq(a0,a1)) = 0w227 + hashty a0 + hashstring a1        | hash (BorderCtlMirror(a0)) = 0w227 + ImageInfo.hash a0
317        | hash (LoadImage(a0,a1)) = 0w229 + hashty a0 + hashstring a1        | hash (BorderCtlWrap(a0)) = 0w229 + ImageInfo.hash a0
318        | hash (Print(a0)) = 0w233 + hashtys a0        | hash (LoadSeq(a0,a1)) = 0w233 + hashty a0 + hashstring a1
319        | hash (MathFn(a0)) = 0w239 + MathFns.hash a0        | hash (LoadImage(a0,a1)) = 0w239 + hashty a0 + hashstring a1
320          | hash (Print(a0)) = 0w241 + hashtys a0
321          | hash (MathFn(a0)) = 0w251 + MathFns.hash a0
322    
323      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
324        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 323  Line 333 
333        | toString (GT(a0)) = concat["GT<", tyToString a0, ">"]        | toString (GT(a0)) = concat["GT<", tyToString a0, ">"]
334        | toString (GTE(a0)) = concat["GTE<", tyToString a0, ">"]        | toString (GTE(a0)) = concat["GTE<", tyToString a0, ">"]
335        | toString Power = "Power"        | toString Power = "Power"
336        | toString Not = "Not"        | toString BAnd = "BAnd"
337          | toString BOr = "BOr"
338          | toString BNot = "BNot"
339        | toString (Abs(a0)) = concat["Abs<", tyToString a0, ">"]        | toString (Abs(a0)) = concat["Abs<", tyToString a0, ">"]
340        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]
341        | 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