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

SCM Repository

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

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

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

revision 2844, Tue Dec 9 18:05:29 2014 UTC revision 2845, Fri Dec 12 06:46:23 2014 UTC
# Line 53  Line 53 
53        | Lerp of ty        | Lerp of ty
54        | Sqrt        | Sqrt
55        | Normalize of int        | Normalize of int
56          | sumVec of int
57        | PrincipleEvec of ty        | PrincipleEvec of ty
58        | EigenVecs2x2        | EigenVecs2x2
59        | EigenVecs3x3        | EigenVecs3x3
# Line 98  Line 99 
99        | resultArity (Lerp _) = 1        | resultArity (Lerp _) = 1
100        | resultArity Sqrt = 1        | resultArity Sqrt = 1
101        | resultArity (Normalize _) = 1        | resultArity (Normalize _) = 1
102          | resultArity (sumVec _) = 1
103        | resultArity (PrincipleEvec _) = 1        | resultArity (PrincipleEvec _) = 1
104        | resultArity EigenVecs2x2 = 1        | resultArity EigenVecs2x2 = 1
105        | resultArity EigenVecs3x3 = 1        | resultArity EigenVecs3x3 = 1
# Line 143  Line 145 
145        | arity (Lerp _) = 3        | arity (Lerp _) = 3
146        | arity Sqrt = 1        | arity Sqrt = 1
147        | arity (Normalize _) = 1        | arity (Normalize _) = 1
148          | arity (sumVec _) = 2
149        | arity (PrincipleEvec _) = 2        | arity (PrincipleEvec _) = 2
150        | arity EigenVecs2x2 = 1        | arity EigenVecs2x2 = 1
151        | arity EigenVecs3x3 = 1        | arity EigenVecs3x3 = 1
# Line 191  Line 194 
194        | same (Lerp(a0), Lerp(b0)) = samety(a0, b0)        | same (Lerp(a0), Lerp(b0)) = samety(a0, b0)
195        | same (Sqrt, Sqrt) = true        | same (Sqrt, Sqrt) = true
196        | same (Normalize(a0), Normalize(b0)) = sameint(a0, b0)        | same (Normalize(a0), Normalize(b0)) = sameint(a0, b0)
197          | same (sumVec(a0), sumVec(b0)) = sameint(a0, b0)
198        | same (PrincipleEvec(a0), PrincipleEvec(b0)) = samety(a0, b0)        | same (PrincipleEvec(a0), PrincipleEvec(b0)) = samety(a0, b0)
199        | same (EigenVecs2x2, EigenVecs2x2) = true        | same (EigenVecs2x2, EigenVecs2x2) = true
200        | same (EigenVecs3x3, EigenVecs3x3) = true        | same (EigenVecs3x3, EigenVecs3x3) = true
# Line 237  Line 241 
241        | hash (Lerp(a0)) = 0w61 + hashty a0        | hash (Lerp(a0)) = 0w61 + hashty a0
242        | hash Sqrt = 0w67        | hash Sqrt = 0w67
243        | hash (Normalize(a0)) = 0w71 + hashint a0        | hash (Normalize(a0)) = 0w71 + hashint a0
244        | hash (PrincipleEvec(a0)) = 0w73 + hashty a0        | hash (sumVec(a0)) = 0w73 + hashint a0
245        | hash EigenVecs2x2 = 0w79        | hash (PrincipleEvec(a0)) = 0w79 + hashty a0
246        | hash EigenVecs3x3 = 0w83        | hash EigenVecs2x2 = 0w83
247        | hash EigenVals2x2 = 0w89        | hash EigenVecs3x3 = 0w89
248        | hash EigenVals3x3 = 0w97        | hash EigenVals2x2 = 0w97
249        | hash (Zero(a0)) = 0w101 + hashty a0        | hash EigenVals3x3 = 0w101
250        | hash (Select(a0,a1)) = 0w103 + hashty a0 + hashint a1        | hash (Zero(a0)) = 0w103 + hashty a0
251        | hash (Index(a0,a1)) = 0w107 + hashty a0 + hashint a1        | hash (Select(a0,a1)) = 0w107 + hashty a0 + hashint a1
252        | hash (Subscript(a0)) = 0w109 + hashty a0        | hash (Index(a0,a1)) = 0w109 + hashty a0 + hashint a1
253        | hash (Ceiling(a0)) = 0w113 + hashint a0        | hash (Subscript(a0)) = 0w113 + hashty a0
254        | hash (Floor(a0)) = 0w127 + hashint a0        | hash (Ceiling(a0)) = 0w127 + hashint a0
255        | hash (Round(a0)) = 0w131 + hashint a0        | hash (Floor(a0)) = 0w131 + hashint a0
256        | hash (Trunc(a0)) = 0w137 + hashint a0        | hash (Round(a0)) = 0w137 + hashint a0
257        | hash IntToReal = 0w139        | hash (Trunc(a0)) = 0w139 + hashint a0
258        | hash (RealToInt(a0)) = 0w149 + hashint a0        | hash IntToReal = 0w149
259        | hash (Kernel(a0,a1)) = 0w151 + Kernel.hash a0 + hashint a1        | hash (RealToInt(a0)) = 0w151 + hashint a0
260        | hash (Transform(a0)) = 0w157 + ImageInfo.hash a0        | hash (Kernel(a0,a1)) = 0w157 + Kernel.hash a0 + hashint a1
261        | hash (Translate(a0)) = 0w163 + ImageInfo.hash a0        | hash (Transform(a0)) = 0w163 + ImageInfo.hash a0
262        | hash (VoxelAddress(a0,a1)) = 0w167 + ImageInfo.hash a0 + hashint a1        | hash (Translate(a0)) = 0w167 + ImageInfo.hash a0
263        | hash (LoadVoxels(a0,a1)) = 0w173 + ImageInfo.hash a0 + hashint a1        | hash (VoxelAddress(a0,a1)) = 0w173 + ImageInfo.hash a0 + hashint a1
264        | hash (LoadImage(a0)) = 0w179 + ImageInfo.hash a0        | hash (LoadVoxels(a0,a1)) = 0w179 + ImageInfo.hash a0 + hashint a1
265        | hash (Inside(a0,a1)) = 0w181 + ImageInfo.hash a0 + hashint a1        | hash (LoadImage(a0)) = 0w181 + ImageInfo.hash a0
266        | hash (Input(a0,a1,a2)) = 0w191 + hashty a0 + hashstring a1 + hashstring a2        | hash (Inside(a0,a1)) = 0w191 + ImageInfo.hash a0 + hashint a1
267        | hash (InputWithDefault(a0,a1,a2)) = 0w193 + hashty a0 + hashstring a1 + hashstring a2        | hash (Input(a0,a1,a2)) = 0w193 + hashty a0 + hashstring a1 + hashstring a2
268        | hash (Print(a0)) = 0w197 + hashtys a0        | hash (InputWithDefault(a0,a1,a2)) = 0w197 + hashty a0 + hashstring a1 + hashstring a2
269          | hash (Print(a0)) = 0w199 + hashtys a0
270    
271      fun toString IAdd = "IAdd"      fun toString IAdd = "IAdd"
272        | toString ISub = "ISub"        | toString ISub = "ISub"
# Line 282  Line 287 
287        | toString (Lerp(a0)) = concat["Lerp<", tyToString a0, ">"]        | toString (Lerp(a0)) = concat["Lerp<", tyToString a0, ">"]
288        | toString Sqrt = "Sqrt"        | toString Sqrt = "Sqrt"
289        | toString (Normalize(a0)) = concat["Normalize<", intToString a0, ">"]        | toString (Normalize(a0)) = concat["Normalize<", intToString a0, ">"]
290          | toString (sumVec(a0)) = concat["sumVec<", intToString a0, ">"]
291        | toString (PrincipleEvec(a0)) = concat["PrincipleEvec<", tyToString a0, ">"]        | toString (PrincipleEvec(a0)) = concat["PrincipleEvec<", tyToString a0, ">"]
292        | toString EigenVecs2x2 = "EigenVecs2x2"        | toString EigenVecs2x2 = "EigenVecs2x2"
293        | toString EigenVecs3x3 = "EigenVecs3x3"        | toString EigenVecs3x3 = "EigenVecs3x3"

Legend:
Removed from v.2844  
changed lines
  Added in v.2845

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