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

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/high-to-mid/coord-space-transform.sml
ViewVC logotype

Diff of /branches/vis15/src/compiler/high-to-mid/coord-space-transform.sml

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

revision 5585, Mon Aug 6 14:41:53 2018 UTC revision 5586, Thu Nov 1 22:38:03 2018 UTC
# Line 67  Line 67 
67            val (mulOp, addOp) = if (dim = 1)            val (mulOp, addOp) = if (dim = 1)
68                  then (Mk.mulRR, Mk.addRR)                  then (Mk.mulRR, Mk.addRR)
69                  else (Mk.innerTT([dim, dim], [dim]), Mk.addTT[dim])                  else (Mk.innerTT([dim, dim], [dim]), Mk.addTT[dim])
   
   
70            val x0 = AvailRHS.addAssign (avail, "MxPos", rty, IR.EINAPP(mulOp, [M, pos])) (*Image-Space position*)            val x0 = AvailRHS.addAssign (avail, "MxPos", rty, IR.EINAPP(mulOp, [M, pos])) (*Image-Space position*)
71            val T = AvailRHS.addAssign (avail, "Ttranslate", rty, IR.OP(Op.Translate info, [img]))            val T = AvailRHS.addAssign (avail, "Ttranslate", rty, IR.OP(Op.Translate info, [img]))
72            val x = AvailRHS.addAssign (avail, "imgPos", rty, IR.EINAPP(addOp, [x0, T]))            val x = AvailRHS.addAssign (avail, "imgPos", rty, IR.EINAPP(addOp, [x0, T]))

Legend:
Removed from v.5585  
changed lines
  Added in v.5586

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