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

SCM Repository

[diderot] Diff of /branches/lamont_dev/src/compiler/IL/ssa-fn.sml
ViewVC logotype

Diff of /branches/lamont_dev/src/compiler/IL/ssa-fn.sml

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

revision 2038, Tue Oct 16 11:31:02 2012 UTC revision 2039, Wed Oct 17 16:10:37 2012 UTC
# Line 80  Line 80 
80          cond : var,          cond : var,
81          phis: phi list ref,          phis: phi list ref,
82          stmBranch: node ref,          stmBranch: node ref,
83            varStrandName: string ref,
84          shouldReplace: bool ref,          shouldReplace: bool ref,
85            stmBranchDone: bool ref,
86          succ : node ref          succ : node ref
87        }        }
88        | NEW of {                        (* create new strand instance *)        | NEW of {                        (* create new strand instance *)
# Line 105  Line 107 
107        = STATE of state_var              (* read strand state variable *)        = STATE of state_var              (* read strand state variable *)
108        | VAR of var        | VAR of var
109        | LIT of Literal.literal        | LIT of Literal.literal
       | RQUERY of Literal.literal  
110        | OP of Op.rator * var list        | OP of Op.rator * var list
111        | APPLY of ILBasis.name * var list (* basis function application *)        | APPLY of ILBasis.name * var list (* basis function application *)
112        | CONS of Ty.ty * var list        (* tensor/sequence-value construction *)        | CONS of Ty.ty * var list        (* tensor/sequence-value construction *)
# Line 311  Line 312 
312                  setB (0, lhs);                  setB (0, lhs);
313                  new (MASSIGN{pred = ref dummy, stm = (lhs, rator, args), succ = ref dummy})                  new (MASSIGN{pred = ref dummy, stm = (lhs, rator, args), succ = ref dummy})
314                end                end
315          fun mkFOREACH {cond,stmBranch,phis} = (          fun mkFOREACH {cond,stmBranch,sName,phis} = (
316            new (FOREACH{pred = ref dummy, cond = cond, stmBranch = ref stmBranch, phis = ref phis, shouldReplace = ref false, succ = ref dummy}))            new (FOREACH{pred = ref dummy, cond = cond, stmBranch = ref stmBranch, phis = ref phis, shouldReplace = ref false, varStrandName = ref sName, stmBranchDone = ref false,  succ = ref dummy}))
317     fun mkNEW {strand, args} = new (NEW{     fun mkNEW {strand, args} = new (NEW{
318                  pred = ref dummy, strand = strand, args = args, succ = ref dummy                  pred = ref dummy, strand = strand, args = args, succ = ref dummy
319                })                })

Legend:
Removed from v.2038  
changed lines
  Added in v.2039

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