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

SCM Repository

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

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

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

revision 2794, Tue Nov 4 20:04:14 2014 UTC revision 2795, Tue Nov 4 21:58:11 2014 UTC
# Line 38  Line 38 
38        | IMul        | IMul
39        | IDiv        | IDiv
40        | INeg        | INeg
41        | IndexTensor of int * ty * ty * ty        | IndexTensor of int * ty * ty
42        | ProjectTensor of int * int * ty * ty        | ProjectTensor of int * int * ty * ty
43        | addSca        | addSca
44        | subSca        | subSca
# Line 237  Line 237 
237        | same (IMul, IMul) = true        | same (IMul, IMul) = true
238        | same (IDiv, IDiv) = true        | same (IDiv, IDiv) = true
239        | same (INeg, INeg) = true        | same (INeg, INeg) = true
240        | same (IndexTensor(a0,a1,a2,a3), IndexTensor(b0,b1,b2,b3)) = sameint(a0, b0) andalso samety(a1, b1) andalso samety(a2, b2) andalso samety(a3, b3)        | same (IndexTensor(a0,a1,a2), IndexTensor(b0,b1,b2)) = sameint(a0, b0) andalso samety(a1, b1) andalso samety(a2, b2)
241        | same (ProjectTensor(a0,a1,a2,a3), ProjectTensor(b0,b1,b2,b3)) = sameint(a0, b0) andalso sameint(a1, b1) andalso samety(a2, b2) andalso samety(a3, b3)        | same (ProjectTensor(a0,a1,a2,a3), ProjectTensor(b0,b1,b2,b3)) = sameint(a0, b0) andalso sameint(a1, b1) andalso samety(a2, b2) andalso samety(a3, b3)
242        | same (addSca, addSca) = true        | same (addSca, addSca) = true
243        | same (subSca, subSca) = true        | same (subSca, subSca) = true
# Line 302  Line 302 
302        | hash IMul = 0w7        | hash IMul = 0w7
303        | hash IDiv = 0w11        | hash IDiv = 0w11
304        | hash INeg = 0w13        | hash INeg = 0w13
305        | hash (IndexTensor(a0,a1,a2,a3)) = 0w17 + hashint a0 + hashty a1 + hashty a2 + hashty a3        | hash (IndexTensor(a0,a1,a2)) = 0w17 + hashint a0 + hashty a1 + hashty a2
306        | hash (ProjectTensor(a0,a1,a2,a3)) = 0w19 + hashint a0 + hashint a1 + hashty a2 + hashty a3        | hash (ProjectTensor(a0,a1,a2,a3)) = 0w19 + hashint a0 + hashint a1 + hashty a2 + hashty a3
307        | hash addSca = 0w23        | hash addSca = 0w23
308        | hash subSca = 0w29        | hash subSca = 0w29
# Line 366  Line 366 
366        | toString IMul = "IMul"        | toString IMul = "IMul"
367        | toString IDiv = "IDiv"        | toString IDiv = "IDiv"
368        | toString INeg = "INeg"        | toString INeg = "INeg"
369        | toString (IndexTensor(a0,a1,a2,a3)) = concat["IndexTensor<", intToString a0, ",", tyToString a1, ",", tyToString a2, ",", tyToString a3, ">"]        | toString (IndexTensor(a0,a1,a2)) = concat["IndexTensor<", intToString a0, ",", tyToString a1, ",", tyToString a2, ">"]
370        | toString (ProjectTensor(a0,a1,a2,a3)) = concat["ProjectTensor<", intToString a0, ",", intToString a1, ",", tyToString a2, ",", tyToString a3, ">"]        | toString (ProjectTensor(a0,a1,a2,a3)) = concat["ProjectTensor<", intToString a0, ",", intToString a1, ",", tyToString a2, ",", tyToString a3, ">"]
371        | toString addSca = "addSca"        | toString addSca = "addSca"
372        | toString subSca = "subSca"        | toString subSca = "subSca"

Legend:
Removed from v.2794  
changed lines
  Added in v.2795

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