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

SCM Repository

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

Diff of /branches/vis15/src/compiler/mid-ir/mid-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 60  Line 60 
60        | NEQ of ty        | NEQ of ty
61        | GT of ty        | GT of ty
62        | GTE of ty        | GTE of ty
63        | Not        | BAnd
64          | BOr
65          | BNot
66        | Abs of ty        | Abs of ty
67        | Max of ty        | Max of ty
68        | Min of ty        | Min of ty
# Line 121  Line 123 
123        | resultArity (NEQ _) = 1        | resultArity (NEQ _) = 1
124        | resultArity (GT _) = 1        | resultArity (GT _) = 1
125        | resultArity (GTE _) = 1        | resultArity (GTE _) = 1
126        | resultArity Not = 1        | resultArity BAnd = 1
127          | resultArity BOr = 1
128          | resultArity BNot = 1
129        | resultArity (Abs _) = 1        | resultArity (Abs _) = 1
130        | resultArity (Max _) = 1        | resultArity (Max _) = 1
131        | resultArity (Min _) = 1        | resultArity (Min _) = 1
# Line 182  Line 186 
186        | arity (NEQ _) = 2        | arity (NEQ _) = 2
187        | arity (GT _) = 2        | arity (GT _) = 2
188        | arity (GTE _) = 2        | arity (GTE _) = 2
189        | arity Not = 1        | arity BAnd = 2
190          | arity BOr = 2
191          | arity BNot = 1
192        | arity (Abs _) = 1        | arity (Abs _) = 1
193        | arity (Max _) = 2        | arity (Max _) = 2
194        | arity (Min _) = 2        | arity (Min _) = 2
# Line 250  Line 256 
256        | same (NEQ(a0), NEQ(b0)) = samety(a0, b0)        | same (NEQ(a0), NEQ(b0)) = samety(a0, b0)
257        | same (GT(a0), GT(b0)) = samety(a0, b0)        | same (GT(a0), GT(b0)) = samety(a0, b0)
258        | same (GTE(a0), GTE(b0)) = samety(a0, b0)        | same (GTE(a0), GTE(b0)) = samety(a0, b0)
259        | same (Not, Not) = true        | same (BAnd, BAnd) = true
260          | same (BOr, BOr) = true
261          | same (BNot, BNot) = true
262        | same (Abs(a0), Abs(b0)) = samety(a0, b0)        | same (Abs(a0), Abs(b0)) = samety(a0, b0)
263        | same (Max(a0), Max(b0)) = samety(a0, b0)        | same (Max(a0), Max(b0)) = samety(a0, b0)
264        | same (Min(a0), Min(b0)) = samety(a0, b0)        | same (Min(a0), Min(b0)) = samety(a0, b0)
# Line 312  Line 320 
320        | hash (NEQ(a0)) = 0w31 + hashty a0        | hash (NEQ(a0)) = 0w31 + hashty a0
321        | hash (GT(a0)) = 0w37 + hashty a0        | hash (GT(a0)) = 0w37 + hashty a0
322        | hash (GTE(a0)) = 0w41 + hashty a0        | hash (GTE(a0)) = 0w41 + hashty a0
323        | hash Not = 0w43        | hash BAnd = 0w43
324        | hash (Abs(a0)) = 0w47 + hashty a0        | hash BOr = 0w47
325        | hash (Max(a0)) = 0w53 + hashty a0        | hash BNot = 0w53
326        | hash (Min(a0)) = 0w59 + hashty a0        | hash (Abs(a0)) = 0w59 + hashty a0
327        | hash (Clamp(a0)) = 0w61 + hashty a0        | hash (Max(a0)) = 0w61 + hashty a0
328        | hash (MapClamp(a0)) = 0w67 + hashty a0        | hash (Min(a0)) = 0w67 + hashty a0
329        | hash (Lerp(a0)) = 0w71 + hashty a0        | hash (Clamp(a0)) = 0w71 + hashty a0
330        | hash (TensorIndex(a0,a1)) = 0w73 + hashty a0 + hashshape a1        | hash (MapClamp(a0)) = 0w73 + hashty a0
331        | hash EigenVecs2x2 = 0w79        | hash (Lerp(a0)) = 0w79 + hashty a0
332        | hash EigenVecs3x3 = 0w83        | hash (TensorIndex(a0,a1)) = 0w83 + hashty a0 + hashshape a1
333        | hash EigenVals2x2 = 0w89        | hash EigenVecs2x2 = 0w89
334        | hash EigenVals3x3 = 0w97        | hash EigenVecs3x3 = 0w97
335        | hash (Zero(a0)) = 0w101 + hashty a0        | hash EigenVals2x2 = 0w101
336        | hash (Select(a0,a1)) = 0w103 + hashty a0 + hashint a1        | hash EigenVals3x3 = 0w103
337        | hash (Subscript(a0)) = 0w107 + hashty a0        | hash (Zero(a0)) = 0w107 + hashty a0
338        | hash (MkDynamic(a0,a1)) = 0w109 + hashty a0 + hashint a1        | hash (Select(a0,a1)) = 0w109 + hashty a0 + hashint a1
339        | hash (Append(a0)) = 0w113 + hashty a0        | hash (Subscript(a0)) = 0w113 + hashty a0
340        | hash (Prepend(a0)) = 0w127 + hashty a0        | hash (MkDynamic(a0,a1)) = 0w127 + hashty a0 + hashint a1
341        | hash (Concat(a0)) = 0w131 + hashty a0        | hash (Append(a0)) = 0w131 + hashty a0
342        | hash Range = 0w137        | hash (Prepend(a0)) = 0w137 + hashty a0
343        | hash (Length(a0)) = 0w139 + hashty a0        | hash (Concat(a0)) = 0w139 + hashty a0
344        | hash (SphereQuery(a0,a1)) = 0w149 + hashint a0 + hashty a1        | hash Range = 0w149
345        | hash (Ceiling(a0)) = 0w151 + hashint a0        | hash (Length(a0)) = 0w151 + hashty a0
346        | hash (Floor(a0)) = 0w157 + hashint a0        | hash (SphereQuery(a0,a1)) = 0w157 + hashint a0 + hashty a1
347        | hash (Round(a0)) = 0w163 + hashint a0        | hash (Ceiling(a0)) = 0w163 + hashint a0
348        | hash (Trunc(a0)) = 0w167 + hashint a0        | hash (Floor(a0)) = 0w167 + hashint a0
349        | hash IntToReal = 0w173        | hash (Round(a0)) = 0w173 + hashint a0
350        | hash (RealToInt(a0)) = 0w179 + hashint a0        | hash (Trunc(a0)) = 0w179 + hashint a0
351        | hash (NumStrands(a0)) = 0w181 + StrandSets.hash a0        | hash IntToReal = 0w181
352        | hash (Strands(a0,a1)) = 0w191 + hashty a0 + StrandSets.hash a1        | hash (RealToInt(a0)) = 0w191 + hashint a0
353        | hash (BuildPos(a0)) = 0w193 + hashint a0        | hash (NumStrands(a0)) = 0w193 + StrandSets.hash a0
354        | hash (EvalKernel(a0,a1,a2)) = 0w197 + hashint a0 + Kernel.hash a1 + hashint a2        | hash (Strands(a0,a1)) = 0w197 + hashty a0 + StrandSets.hash a1
355        | hash (Kernel(a0,a1)) = 0w199 + Kernel.hash a0 + hashint a1        | hash (BuildPos(a0)) = 0w199 + hashint a0
356        | hash (Transform(a0)) = 0w211 + ImageInfo.hash a0        | hash (EvalKernel(a0,a1,a2)) = 0w211 + hashint a0 + Kernel.hash a1 + hashint a2
357        | hash (Translate(a0)) = 0w223 + ImageInfo.hash a0        | hash (Kernel(a0,a1)) = 0w223 + Kernel.hash a0 + hashint a1
358        | hash (LoadVoxels(a0,a1)) = 0w227 + ImageInfo.hash a0 + hashint a1        | hash (Transform(a0)) = 0w227 + ImageInfo.hash a0
359        | hash (LoadVoxelsWithCtl(a0,a1,a2)) = 0w229 + ImageInfo.hash a0 + hashint a1 + hashidxctl a2        | hash (Translate(a0)) = 0w229 + ImageInfo.hash a0
360        | hash (Inside(a0,a1)) = 0w233 + ImageInfo.hash a0 + hashint a1        | hash (LoadVoxels(a0,a1)) = 0w233 + ImageInfo.hash a0 + hashint a1
361        | hash (IndexInside(a0,a1)) = 0w239 + ImageInfo.hash a0 + hashint a1        | hash (LoadVoxelsWithCtl(a0,a1,a2)) = 0w239 + ImageInfo.hash a0 + hashint a1 + hashidxctl a2
362        | hash (ImageDim(a0,a1)) = 0w241 + ImageInfo.hash a0 + hashint a1        | hash (Inside(a0,a1)) = 0w241 + ImageInfo.hash a0 + hashint a1
363        | hash (BorderCtlDefault(a0)) = 0w251 + ImageInfo.hash a0        | hash (IndexInside(a0,a1)) = 0w251 + ImageInfo.hash a0 + hashint a1
364        | hash (BorderCtlClamp(a0)) = 0w257 + ImageInfo.hash a0        | hash (ImageDim(a0,a1)) = 0w257 + ImageInfo.hash a0 + hashint a1
365        | hash (BorderCtlMirror(a0)) = 0w263 + ImageInfo.hash a0        | hash (BorderCtlDefault(a0)) = 0w263 + ImageInfo.hash a0
366        | hash (BorderCtlWrap(a0)) = 0w269 + ImageInfo.hash a0        | hash (BorderCtlClamp(a0)) = 0w269 + ImageInfo.hash a0
367        | hash (LoadSeq(a0,a1)) = 0w271 + hashty a0 + hashstring a1        | hash (BorderCtlMirror(a0)) = 0w271 + ImageInfo.hash a0
368        | hash (LoadImage(a0,a1)) = 0w277 + hashty a0 + hashstring a1        | hash (BorderCtlWrap(a0)) = 0w277 + ImageInfo.hash a0
369        | hash (Print(a0)) = 0w281 + hashtys a0        | hash (LoadSeq(a0,a1)) = 0w281 + hashty a0 + hashstring a1
370        | hash (MathFn(a0)) = 0w283 + MathFns.hash a0        | hash (LoadImage(a0,a1)) = 0w283 + hashty a0 + hashstring a1
371          | hash (Print(a0)) = 0w293 + hashtys a0
372          | hash (MathFn(a0)) = 0w307 + MathFns.hash a0
373    
374      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
375        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 373  Line 383 
383        | toString (NEQ(a0)) = concat["NEQ<", tyToString a0, ">"]        | toString (NEQ(a0)) = concat["NEQ<", tyToString a0, ">"]
384        | toString (GT(a0)) = concat["GT<", tyToString a0, ">"]        | toString (GT(a0)) = concat["GT<", tyToString a0, ">"]
385        | toString (GTE(a0)) = concat["GTE<", tyToString a0, ">"]        | toString (GTE(a0)) = concat["GTE<", tyToString a0, ">"]
386        | toString Not = "Not"        | toString BAnd = "BAnd"
387          | toString BOr = "BOr"
388          | toString BNot = "BNot"
389        | toString (Abs(a0)) = concat["Abs<", tyToString a0, ">"]        | toString (Abs(a0)) = concat["Abs<", tyToString a0, ">"]
390        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]
391        | 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