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 3831, Thu May 5 22:17:06 2016 UTC revision 3832, Fri May 6 15:08:12 2016 UTC
# Line 77  Line 77 
77        | VMul of int        | VMul of int
78        | VNeg of int        | VNeg of int
79        | VSum of int        | VSum of int
80        | VProj of int * int        | VIndex of int * int
81        | VClamp of int        | VClamp of int
82        | VMapClamp of int        | VMapClamp of int
83        | VLerp of int        | VLerp of int
# Line 158  Line 158 
158        | resultArity (VMul _) = 1        | resultArity (VMul _) = 1
159        | resultArity (VNeg _) = 1        | resultArity (VNeg _) = 1
160        | resultArity (VSum _) = 1        | resultArity (VSum _) = 1
161        | resultArity (VProj _) = 1        | resultArity (VIndex _) = 1
162        | resultArity (VClamp _) = 1        | resultArity (VClamp _) = 1
163        | resultArity (VMapClamp _) = 1        | resultArity (VMapClamp _) = 1
164        | resultArity (VLerp _) = 1        | resultArity (VLerp _) = 1
# Line 239  Line 239 
239        | arity (VMul _) = 2        | arity (VMul _) = 2
240        | arity (VNeg _) = 2        | arity (VNeg _) = 2
241        | arity (VSum _) = 1        | arity (VSum _) = 1
242        | arity (VProj _) = 1        | arity (VIndex _) = 1
243        | arity (VClamp _) = 3        | arity (VClamp _) = 3
244        | arity (VMapClamp _) = 3        | arity (VMapClamp _) = 3
245        | arity (VLerp _) = 3        | arity (VLerp _) = 3
# Line 327  Line 327 
327        | same (VMul(a0), VMul(b0)) = sameint(a0, b0)        | same (VMul(a0), VMul(b0)) = sameint(a0, b0)
328        | same (VNeg(a0), VNeg(b0)) = sameint(a0, b0)        | same (VNeg(a0), VNeg(b0)) = sameint(a0, b0)
329        | same (VSum(a0), VSum(b0)) = sameint(a0, b0)        | same (VSum(a0), VSum(b0)) = sameint(a0, b0)
330        | same (VProj(a0,a1), VProj(b0,b1)) = sameint(a0, b0) andalso sameint(a1, b1)        | same (VIndex(a0,a1), VIndex(b0,b1)) = sameint(a0, b0) andalso sameint(a1, b1)
331        | same (VClamp(a0), VClamp(b0)) = sameint(a0, b0)        | same (VClamp(a0), VClamp(b0)) = sameint(a0, b0)
332        | same (VMapClamp(a0), VMapClamp(b0)) = sameint(a0, b0)        | same (VMapClamp(a0), VMapClamp(b0)) = sameint(a0, b0)
333        | same (VLerp(a0), VLerp(b0)) = sameint(a0, b0)        | same (VLerp(a0), VLerp(b0)) = sameint(a0, b0)
# Line 409  Line 409 
409        | hash (VMul(a0)) = 0w107 + hashint a0        | hash (VMul(a0)) = 0w107 + hashint a0
410        | hash (VNeg(a0)) = 0w109 + hashint a0        | hash (VNeg(a0)) = 0w109 + hashint a0
411        | hash (VSum(a0)) = 0w113 + hashint a0        | hash (VSum(a0)) = 0w113 + hashint a0
412        | hash (VProj(a0,a1)) = 0w127 + hashint a0 + hashint a1        | hash (VIndex(a0,a1)) = 0w127 + hashint a0 + hashint a1
413        | hash (VClamp(a0)) = 0w131 + hashint a0        | hash (VClamp(a0)) = 0w131 + hashint a0
414        | hash (VMapClamp(a0)) = 0w137 + hashint a0        | hash (VMapClamp(a0)) = 0w137 + hashint a0
415        | hash (VLerp(a0)) = 0w139 + hashint a0        | hash (VLerp(a0)) = 0w139 + hashint a0
# Line 490  Line 490 
490        | toString (VMul(a0)) = concat["VMul<", intToString a0, ">"]        | toString (VMul(a0)) = concat["VMul<", intToString a0, ">"]
491        | toString (VNeg(a0)) = concat["VNeg<", intToString a0, ">"]        | toString (VNeg(a0)) = concat["VNeg<", intToString a0, ">"]
492        | toString (VSum(a0)) = concat["VSum<", intToString a0, ">"]        | toString (VSum(a0)) = concat["VSum<", intToString a0, ">"]
493        | toString (VProj(a0,a1)) = concat["VProj<", intToString a0, ",", intToString a1, ">"]        | toString (VIndex(a0,a1)) = concat["VIndex<", intToString a0, ",", intToString a1, ">"]
494        | toString (VClamp(a0)) = concat["VClamp<", intToString a0, ">"]        | toString (VClamp(a0)) = concat["VClamp<", intToString a0, ">"]
495        | toString (VMapClamp(a0)) = concat["VMapClamp<", intToString a0, ">"]        | toString (VMapClamp(a0)) = concat["VMapClamp<", intToString a0, ">"]
496        | toString (VLerp(a0)) = concat["VLerp<", intToString a0, ">"]        | toString (VLerp(a0)) = concat["VLerp<", intToString a0, ">"]

Legend:
Removed from v.3831  
changed lines
  Added in v.3832

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