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

SCM Repository

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

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

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

revision 3507, Fri Dec 18 12:49:08 2015 UTC revision 3508, Fri Dec 18 14:19:30 2015 UTC
# Line 89  Line 89 
89        | Append of ty        | Append of ty
90        | Prepend of ty        | Prepend of ty
91        | Concat of ty        | Concat of ty
92          | Range
93        | Length of ty        | Length of ty
94        | Sqrt        | Sqrt
95        | Cos        | Cos
# Line 153  Line 154 
154        | resultArity (Append _) = 2        | resultArity (Append _) = 2
155        | resultArity (Prepend _) = 2        | resultArity (Prepend _) = 2
156        | resultArity (Concat _) = 2        | resultArity (Concat _) = 2
157          | resultArity Range = 2
158        | resultArity (Length _) = 1        | resultArity (Length _) = 1
159        | resultArity Sqrt = 1        | resultArity Sqrt = 1
160        | resultArity Cos = 1        | resultArity Cos = 1
# Line 217  Line 219 
219        | arity (Append _) = 1        | arity (Append _) = 1
220        | arity (Prepend _) = 1        | arity (Prepend _) = 1
221        | arity (Concat _) = 1        | arity (Concat _) = 1
222          | arity Range = 1
223        | arity (Length _) = 1        | arity (Length _) = 1
224        | arity Sqrt = 1        | arity Sqrt = 1
225        | arity Cos = 1        | arity Cos = 1
# Line 288  Line 291 
291        | same (Append(a0), Append(b0)) = samety(a0, b0)        | same (Append(a0), Append(b0)) = samety(a0, b0)
292        | same (Prepend(a0), Prepend(b0)) = samety(a0, b0)        | same (Prepend(a0), Prepend(b0)) = samety(a0, b0)
293        | same (Concat(a0), Concat(b0)) = samety(a0, b0)        | same (Concat(a0), Concat(b0)) = samety(a0, b0)
294          | same (Range, Range) = true
295        | same (Length(a0), Length(b0)) = samety(a0, b0)        | same (Length(a0), Length(b0)) = samety(a0, b0)
296        | same (Sqrt, Sqrt) = true        | same (Sqrt, Sqrt) = true
297        | same (Cos, Cos) = true        | same (Cos, Cos) = true
# Line 353  Line 357 
357        | hash (Append(a0)) = 0w157 + hashty a0        | hash (Append(a0)) = 0w157 + hashty a0
358        | hash (Prepend(a0)) = 0w163 + hashty a0        | hash (Prepend(a0)) = 0w163 + hashty a0
359        | hash (Concat(a0)) = 0w167 + hashty a0        | hash (Concat(a0)) = 0w167 + hashty a0
360        | hash (Length(a0)) = 0w173 + hashty a0        | hash Range = 0w173
361        | hash Sqrt = 0w179        | hash (Length(a0)) = 0w179 + hashty a0
362        | hash Cos = 0w181        | hash Sqrt = 0w181
363        | hash ArcCos = 0w191        | hash Cos = 0w191
364        | hash Sine = 0w193        | hash ArcCos = 0w193
365        | hash ArcSin = 0w197        | hash Sine = 0w197
366        | hash Tan = 0w199        | hash ArcSin = 0w199
367        | hash ArcTan = 0w211        | hash Tan = 0w211
368        | hash (Ceiling(a0)) = 0w223 + hashint a0        | hash ArcTan = 0w223
369        | hash (Floor(a0)) = 0w227 + hashint a0        | hash (Ceiling(a0)) = 0w227 + hashint a0
370        | hash (Round(a0)) = 0w229 + hashint a0        | hash (Floor(a0)) = 0w229 + hashint a0
371        | hash (Trunc(a0)) = 0w233 + hashint a0        | hash (Round(a0)) = 0w233 + hashint a0
372        | hash IntToReal = 0w239        | hash (Trunc(a0)) = 0w239 + hashint a0
373        | hash (RealToInt(a0)) = 0w241 + hashint a0        | hash IntToReal = 0w241
374        | hash (Transform(a0)) = 0w251 + ImageInfo.hash a0        | hash (RealToInt(a0)) = 0w251 + hashint a0
375        | hash (Translate(a0)) = 0w257 + ImageInfo.hash a0        | hash (Transform(a0)) = 0w257 + ImageInfo.hash a0
376        | hash (Kernel(a0,a1)) = 0w263 + Kernel.hash a0 + hashint a1        | hash (Translate(a0)) = 0w263 + ImageInfo.hash a0
377        | hash (ImageAddress(a0)) = 0w269 + ImageInfo.hash a0        | hash (Kernel(a0,a1)) = 0w269 + Kernel.hash a0 + hashint a1
378        | hash (ControlIndex(a0,a1,a2)) = 0w271 + ImageInfo.hash a0 + hashidxctl a1 + hashint a2        | hash (ImageAddress(a0)) = 0w271 + ImageInfo.hash a0
379        | hash (LoadVoxels(a0,a1)) = 0w277 + ImageInfo.hash a0 + hashint a1        | hash (ControlIndex(a0,a1,a2)) = 0w277 + ImageInfo.hash a0 + hashidxctl a1 + hashint a2
380        | hash (Inside(a0,a1)) = 0w281 + ImageInfo.hash a0 + hashint a1        | hash (LoadVoxels(a0,a1)) = 0w281 + ImageInfo.hash a0 + hashint a1
381        | hash (ImageDim(a0,a1)) = 0w283 + ImageInfo.hash a0 + hashint a1        | hash (Inside(a0,a1)) = 0w283 + ImageInfo.hash a0 + hashint a1
382        | hash (LoadSeq(a0,a1)) = 0w293 + hashty a0 + hashstring a1        | hash (ImageDim(a0,a1)) = 0w293 + ImageInfo.hash a0 + hashint a1
383        | hash (LoadImage(a0,a1)) = 0w307 + hashty a0 + hashstring a1        | hash (LoadSeq(a0,a1)) = 0w307 + hashty a0 + hashstring a1
384        | hash (Print(a0)) = 0w311 + hashtys a0        | hash (LoadImage(a0,a1)) = 0w311 + hashty a0 + hashstring a1
385          | hash (Print(a0)) = 0w313 + hashtys a0
386    
387      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
388        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 417  Line 422 
422        | toString (Append(a0)) = concat["Append<", tyToString a0, ">"]        | toString (Append(a0)) = concat["Append<", tyToString a0, ">"]
423        | toString (Prepend(a0)) = concat["Prepend<", tyToString a0, ">"]        | toString (Prepend(a0)) = concat["Prepend<", tyToString a0, ">"]
424        | toString (Concat(a0)) = concat["Concat<", tyToString a0, ">"]        | toString (Concat(a0)) = concat["Concat<", tyToString a0, ">"]
425          | toString Range = "Range"
426        | toString (Length(a0)) = concat["Length<", tyToString a0, ">"]        | toString (Length(a0)) = concat["Length<", tyToString a0, ">"]
427        | toString Sqrt = "Sqrt"        | toString Sqrt = "Sqrt"
428        | toString Cos = "Cos"        | toString Cos = "Cos"
# Line 446  Line 452 
452    end    end
453    
454  structure LowIR = SSAFn(  structure LowIR = SSAFn(
455    val ilName = "low-ir"    val irName = "low-ir"
456    structure Ty = LowTypes    structure Ty = LowTypes
457    structure Op = LowOps)    structure Op = LowOps)
458    

Legend:
Removed from v.3507  
changed lines
  Added in v.3508

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