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

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/mid-to-low/ein-to-vector.sml
ViewVC logotype

Diff of /branches/vis15/src/compiler/mid-to-low/ein-to-vector.sml

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

revision 4055, Mon Jun 27 14:31:45 2016 UTC revision 4056, Mon Jun 27 15:26:20 2016 UTC
# Line 102  Line 102 
102            val u = paramToVar (avail, mapp, u)            val u = paramToVar (avail, mapp, u)
103            val v = paramToVar (avail, mapp, v)            val v = paramToVar (avail, mapp, v)
104            val ty as Ty.TensorTy[dim] = IR.Var.ty u            val ty as Ty.TensorTy[dim] = IR.Var.ty u
           val prod = AvailRHS.addAssign (avail, "mulV", ty, IR.OP(Op.VMul dim, [u, v]));  
105            in            in
106              AvailRHS.addAssign (avail, "sumV", Ty.realTy, IR.OP(Op.VSum dim, [prod]))              Mk.vecDot (avail, dim, u, v)
107            end            end
108    
109    (* `sumDotV (avail, mapp, (ix, lb, ub, vecA, vecB))`    (* `sumDotV (avail, mapp, (ix, lb, ub, vecA, vecB))`

Legend:
Removed from v.4055  
changed lines
  Added in v.4056

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