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

SCM Repository

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

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

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

revision 5306, Tue Aug 15 03:04:14 2017 UTC revision 5307, Tue Aug 15 03:04:39 2017 UTC
# Line 48  Line 48 
48        | IDiv        | IDiv
49        | IMod        | IMod
50        | INeg        | INeg
51          | IAbs
52        | LT of ty        | LT of ty
53        | LTE of ty        | LTE of ty
54        | EQ of ty        | EQ of ty
# Line 58  Line 59 
59        | BAnd        | BAnd
60        | BOr        | BOr
61        | BNot        | BNot
       | Abs of ty  
62        | Max of ty        | Max of ty
63        | Min of ty        | Min of ty
64        | Eigen2x2        | Eigen2x2
# Line 101  Line 101 
101        | resultArity IDiv = 1        | resultArity IDiv = 1
102        | resultArity IMod = 1        | resultArity IMod = 1
103        | resultArity INeg = 1        | resultArity INeg = 1
104          | resultArity IAbs = 1
105        | resultArity (LT _) = 1        | resultArity (LT _) = 1
106        | resultArity (LTE _) = 1        | resultArity (LTE _) = 1
107        | resultArity (EQ _) = 1        | resultArity (EQ _) = 1
# Line 111  Line 112 
112        | resultArity BAnd = 1        | resultArity BAnd = 1
113        | resultArity BOr = 1        | resultArity BOr = 1
114        | resultArity BNot = 1        | resultArity BNot = 1
       | resultArity (Abs _) = 1  
115        | resultArity (Max _) = 1        | resultArity (Max _) = 1
116        | resultArity (Min _) = 1        | resultArity (Min _) = 1
117        | resultArity Eigen2x2 = 2        | resultArity Eigen2x2 = 2
# Line 154  Line 154 
154        | arity IDiv = 2        | arity IDiv = 2
155        | arity IMod = 2        | arity IMod = 2
156        | arity INeg = 1        | arity INeg = 1
157          | arity IAbs = 1
158        | arity (LT _) = 2        | arity (LT _) = 2
159        | arity (LTE _) = 2        | arity (LTE _) = 2
160        | arity (EQ _) = 2        | arity (EQ _) = 2
# Line 164  Line 165 
165        | arity BAnd = 2        | arity BAnd = 2
166        | arity BOr = 2        | arity BOr = 2
167        | arity BNot = 1        | arity BNot = 1
       | arity (Abs _) = 1  
168        | arity (Max _) = 2        | arity (Max _) = 2
169        | arity (Min _) = 2        | arity (Min _) = 2
170        | arity Eigen2x2 = 1        | arity Eigen2x2 = 1
# Line 216  Line 216 
216        | same (IDiv, IDiv) = true        | same (IDiv, IDiv) = true
217        | same (IMod, IMod) = true        | same (IMod, IMod) = true
218        | same (INeg, INeg) = true        | same (INeg, INeg) = true
219          | same (IAbs, IAbs) = true
220        | same (LT(a0), LT(b0)) = samety(a0, b0)        | same (LT(a0), LT(b0)) = samety(a0, b0)
221        | same (LTE(a0), LTE(b0)) = samety(a0, b0)        | same (LTE(a0), LTE(b0)) = samety(a0, b0)
222        | same (EQ(a0), EQ(b0)) = samety(a0, b0)        | same (EQ(a0), EQ(b0)) = samety(a0, b0)
# Line 226  Line 227 
227        | same (BAnd, BAnd) = true        | same (BAnd, BAnd) = true
228        | same (BOr, BOr) = true        | same (BOr, BOr) = true
229        | same (BNot, BNot) = true        | same (BNot, BNot) = true
       | same (Abs(a0), Abs(b0)) = samety(a0, b0)  
230        | same (Max(a0), Max(b0)) = samety(a0, b0)        | same (Max(a0), Max(b0)) = samety(a0, b0)
231        | same (Min(a0), Min(b0)) = samety(a0, b0)        | same (Min(a0), Min(b0)) = samety(a0, b0)
232        | same (Eigen2x2, Eigen2x2) = true        | same (Eigen2x2, Eigen2x2) = true
# Line 270  Line 270 
270        | hash IDiv = 0w11        | hash IDiv = 0w11
271        | hash IMod = 0w13        | hash IMod = 0w13
272        | hash INeg = 0w17        | hash INeg = 0w17
273        | hash (LT(a0)) = 0w19 + hashty a0        | hash IAbs = 0w19
274        | hash (LTE(a0)) = 0w23 + hashty a0        | hash (LT(a0)) = 0w23 + hashty a0
275        | hash (EQ(a0)) = 0w29 + hashty a0        | hash (LTE(a0)) = 0w29 + hashty a0
276        | hash (NEQ(a0)) = 0w31 + hashty a0        | hash (EQ(a0)) = 0w31 + hashty a0
277        | hash (GT(a0)) = 0w37 + hashty a0        | hash (NEQ(a0)) = 0w37 + hashty a0
278        | hash (GTE(a0)) = 0w41 + hashty a0        | hash (GT(a0)) = 0w41 + hashty a0
279        | hash Power = 0w43        | hash (GTE(a0)) = 0w43 + hashty a0
280        | hash BAnd = 0w47        | hash Power = 0w47
281        | hash BOr = 0w53        | hash BAnd = 0w53
282        | hash BNot = 0w59        | hash BOr = 0w59
283        | hash (Abs(a0)) = 0w61 + hashty a0        | hash BNot = 0w61
284        | hash (Max(a0)) = 0w67 + hashty a0        | hash (Max(a0)) = 0w67 + hashty a0
285        | hash (Min(a0)) = 0w71 + hashty a0        | hash (Min(a0)) = 0w71 + hashty a0
286        | hash Eigen2x2 = 0w73        | hash Eigen2x2 = 0w73
# Line 323  Line 323 
323        | toString IDiv = "IDiv"        | toString IDiv = "IDiv"
324        | toString IMod = "IMod"        | toString IMod = "IMod"
325        | toString INeg = "INeg"        | toString INeg = "INeg"
326          | toString IAbs = "IAbs"
327        | toString (LT(a0)) = concat["LT<", tyToString a0, ">"]        | toString (LT(a0)) = concat["LT<", tyToString a0, ">"]
328        | toString (LTE(a0)) = concat["LTE<", tyToString a0, ">"]        | toString (LTE(a0)) = concat["LTE<", tyToString a0, ">"]
329        | toString (EQ(a0)) = concat["EQ<", tyToString a0, ">"]        | toString (EQ(a0)) = concat["EQ<", tyToString a0, ">"]
# Line 333  Line 334 
334        | toString BAnd = "BAnd"        | toString BAnd = "BAnd"
335        | toString BOr = "BOr"        | toString BOr = "BOr"
336        | toString BNot = "BNot"        | toString BNot = "BNot"
       | toString (Abs(a0)) = concat["Abs<", tyToString a0, ">"]  
337        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]        | toString (Max(a0)) = concat["Max<", tyToString a0, ">"]
338        | toString (Min(a0)) = concat["Min<", tyToString a0, ">"]        | toString (Min(a0)) = concat["Min<", tyToString a0, ">"]
339        | toString Eigen2x2 = "Eigen2x2"        | toString Eigen2x2 = "Eigen2x2"

Legend:
Removed from v.5306  
changed lines
  Added in v.5307

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