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

SCM Repository

[diderot] Diff of /branches/vis12/src/compiler/mid-il/mid-il.sml
ViewVC logotype

Diff of /branches/vis12/src/compiler/mid-il/mid-il.sml

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

revision 1689, Wed Jan 25 14:55:43 2012 UTC revision 1925, Sat Jun 23 14:16:09 2012 UTC
# Line 74  Line 74 
74        | Append of ty        | Append of ty
75        | Prepend of ty        | Prepend of ty
76        | Concat of ty        | Concat of ty
77          | Length of ty
78        | Ceiling of int        | Ceiling of int
79        | Floor of int        | Floor of int
80        | Round of int        | Round of int
# Line 131  Line 132 
132        | resultArity (Append _) = 2        | resultArity (Append _) = 2
133        | resultArity (Prepend _) = 2        | resultArity (Prepend _) = 2
134        | resultArity (Concat _) = 2        | resultArity (Concat _) = 2
135          | resultArity (Length _) = 1
136        | resultArity (Ceiling _) = 1        | resultArity (Ceiling _) = 1
137        | resultArity (Floor _) = 1        | resultArity (Floor _) = 1
138        | resultArity (Round _) = 1        | resultArity (Round _) = 1
# Line 188  Line 190 
190        | arity (Append _) = 1        | arity (Append _) = 1
191        | arity (Prepend _) = 1        | arity (Prepend _) = 1
192        | arity (Concat _) = 1        | arity (Concat _) = 1
193          | arity (Length _) = 1
194        | arity (Ceiling _) = 1        | arity (Ceiling _) = 1
195        | arity (Floor _) = 1        | arity (Floor _) = 1
196        | arity (Round _) = 1        | arity (Round _) = 1
# Line 245  Line 248 
248        | same (Append(a0), Append(b0)) = samety(a0, b0)        | same (Append(a0), Append(b0)) = samety(a0, b0)
249        | same (Prepend(a0), Prepend(b0)) = samety(a0, b0)        | same (Prepend(a0), Prepend(b0)) = samety(a0, b0)
250        | same (Concat(a0), Concat(b0)) = samety(a0, b0)        | same (Concat(a0), Concat(b0)) = samety(a0, b0)
251          | same (Length(a0), Length(b0)) = samety(a0, b0)
252        | same (Ceiling(a0), Ceiling(b0)) = sameint(a0, b0)        | same (Ceiling(a0), Ceiling(b0)) = sameint(a0, b0)
253        | same (Floor(a0), Floor(b0)) = sameint(a0, b0)        | same (Floor(a0), Floor(b0)) = sameint(a0, b0)
254        | same (Round(a0), Round(b0)) = sameint(a0, b0)        | same (Round(a0), Round(b0)) = sameint(a0, b0)
# Line 303  Line 307 
307        | hash (Append(a0)) = 0w167 + hashty a0        | hash (Append(a0)) = 0w167 + hashty a0
308        | hash (Prepend(a0)) = 0w173 + hashty a0        | hash (Prepend(a0)) = 0w173 + hashty a0
309        | hash (Concat(a0)) = 0w179 + hashty a0        | hash (Concat(a0)) = 0w179 + hashty a0
310        | hash (Ceiling(a0)) = 0w181 + hashint a0        | hash (Length(a0)) = 0w181 + hashty a0
311        | hash (Floor(a0)) = 0w191 + hashint a0        | hash (Ceiling(a0)) = 0w191 + hashint a0
312        | hash (Round(a0)) = 0w193 + hashint a0        | hash (Floor(a0)) = 0w193 + hashint a0
313        | hash (Trunc(a0)) = 0w197 + hashint a0        | hash (Round(a0)) = 0w197 + hashint a0
314        | hash IntToReal = 0w199        | hash (Trunc(a0)) = 0w199 + hashint a0
315        | hash (RealToInt(a0)) = 0w211 + hashint a0        | hash IntToReal = 0w211
316        | hash (VoxelAddress(a0,a1)) = 0w223 + ImageInfo.hash a0 + hashint a1        | hash (RealToInt(a0)) = 0w223 + hashint a0
317        | hash (LoadVoxels(a0,a1)) = 0w227 + ImageInfo.hash a0 + hashint a1        | hash (VoxelAddress(a0,a1)) = 0w227 + ImageInfo.hash a0 + hashint a1
318        | hash (PosToImgSpace(a0)) = 0w229 + ImageInfo.hash a0        | hash (LoadVoxels(a0,a1)) = 0w229 + ImageInfo.hash a0 + hashint a1
319        | hash (TensorToWorldSpace(a0,a1)) = 0w233 + ImageInfo.hash a0 + hashty a1        | hash (PosToImgSpace(a0)) = 0w233 + ImageInfo.hash a0
320        | hash (EvalKernel(a0,a1,a2)) = 0w239 + hashint a0 + Kernel.hash a1 + hashint a2        | hash (TensorToWorldSpace(a0,a1)) = 0w239 + ImageInfo.hash a0 + hashty a1
321        | hash (LoadImage(a0)) = 0w241 + ImageInfo.hash a0        | hash (EvalKernel(a0,a1,a2)) = 0w241 + hashint a0 + Kernel.hash a1 + hashint a2
322        | hash (Inside(a0,a1)) = 0w251 + ImageInfo.hash a0 + hashint a1        | hash (LoadImage(a0)) = 0w251 + ImageInfo.hash a0
323        | hash (Input(a0,a1,a2)) = 0w257 + hashty a0 + hashstring a1 + hashstring a2        | hash (Inside(a0,a1)) = 0w257 + ImageInfo.hash a0 + hashint a1
324        | hash (InputWithDefault(a0,a1,a2)) = 0w263 + hashty a0 + hashstring a1 + hashstring a2        | hash (Input(a0,a1,a2)) = 0w263 + hashty a0 + hashstring a1 + hashstring a2
325        | hash (Print(a0)) = 0w269 + hashtys a0        | hash (InputWithDefault(a0,a1,a2)) = 0w269 + hashty a0 + hashstring a1 + hashstring a2
326          | hash (Print(a0)) = 0w271 + hashtys a0
327    
328      fun toString (Add(a0)) = concat["Add<", tyToString a0, ">"]      fun toString (Add(a0)) = concat["Add<", tyToString a0, ">"]
329        | toString (Sub(a0)) = concat["Sub<", tyToString a0, ">"]        | toString (Sub(a0)) = concat["Sub<", tyToString a0, ">"]
# Line 360  Line 365 
365        | toString (Append(a0)) = concat["Append<", tyToString a0, ">"]        | toString (Append(a0)) = concat["Append<", tyToString a0, ">"]
366        | toString (Prepend(a0)) = concat["Prepend<", tyToString a0, ">"]        | toString (Prepend(a0)) = concat["Prepend<", tyToString a0, ">"]
367        | toString (Concat(a0)) = concat["Concat<", tyToString a0, ">"]        | toString (Concat(a0)) = concat["Concat<", tyToString a0, ">"]
368          | toString (Length(a0)) = concat["Length<", tyToString a0, ">"]
369        | toString (Ceiling(a0)) = concat["Ceiling<", intToString a0, ">"]        | toString (Ceiling(a0)) = concat["Ceiling<", intToString a0, ">"]
370        | toString (Floor(a0)) = concat["Floor<", intToString a0, ">"]        | toString (Floor(a0)) = concat["Floor<", intToString a0, ">"]
371        | toString (Round(a0)) = concat["Round<", intToString a0, ">"]        | toString (Round(a0)) = concat["Round<", intToString a0, ">"]

Legend:
Removed from v.1689  
changed lines
  Added in v.1925

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