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

SCM Repository

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

Diff of /branches/vis15/src/compiler/cfg-ir/ssa-fn.sml

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

revision 3508, Fri Dec 18 14:19:30 2015 UTC revision 3517, Sat Dec 19 04:39:21 2015 UTC
# Line 138  Line 138 
138          name : string,                  (* variable's name *)          name : string,                  (* variable's name *)
139          ty : Ty.ty,                     (* variable's type *)          ty : Ty.ty,                     (* variable's type *)
140          kind : global_kind,             (* the variable kind *)          kind : global_kind,             (* the variable kind *)
141            useCnt : int ref,               (* count of uses *)
142          props : PropList.holder          props : PropList.holder
143        }        }
144    
# Line 200  Line 201 
201                  name = name,                  name = name,
202                  ty = ty,                  ty = ty,
203                  kind = kind,                  kind = kind,
204                    useCnt = ref 0,
205                  props = PropList.newHolder()                  props = PropList.newHolder()
206                }                }
207          fun name (GV{name, ...}) = name          fun name (GV{name, ...}) = name
# Line 208  Line 210 
210          fun ty (GV{ty, ...}) = ty          fun ty (GV{ty, ...}) = ty
211          fun isInput (GV{kind=InputVar, ...}) = true          fun isInput (GV{kind=InputVar, ...}) = true
212            | isInput _ = false            | isInput _ = false
213            fun useCount (GV{useCnt, ...}) = !useCnt
214          fun same (GV{id=a, ...}, GV{id=b, ...}) = Stamp.same(a, b)          fun same (GV{id=a, ...}, GV{id=b, ...}) = Stamp.same(a, b)
215          fun compare (GV{id=a, ...}, GV{id=b, ...}) = Stamp.compare(a, b)          fun compare (GV{id=a, ...}, GV{id=b, ...}) = Stamp.compare(a, b)
216          fun hash (GV{id, ...}) = Stamp.hash id          fun hash (GV{id, ...}) = Stamp.hash id

Legend:
Removed from v.3508  
changed lines
  Added in v.3517

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