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

SCM Repository

[diderot] Diff of /trunk/src/compiler/high-to-mid/probe.sml
ViewVC logotype

Diff of /trunk/src/compiler/high-to-mid/probe.sml

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

revision 449, Thu Oct 21 15:46:51 2010 UTC revision 450, Thu Oct 21 15:58:26 2010 UTC
# Line 111  Line 111 
111            val nd = DstV.new ("nd", vecDimTy)            val nd = DstV.new ("nd", vecDimTy)
112            val n = DstV.new ("n", DstTy.IVecTy dim)            val n = DstV.new ("n", DstTy.IVecTy dim)
113            val transformCode = [            val transformCode = [
114                    assign(x, DstOp.Transform v, [pos]),                    assign(x, DstOp.PosToImgSpace v, [pos]),
115                    assign(nd, DstOp.Floor dim, [x]),                    assign(nd, DstOp.Floor dim, [x]),
116                    assign(f, DstOp.Sub vecDimTy, [x, nd]),                    assign(f, DstOp.Sub vecDimTy, [x, nd]),
117                    assign(n, DstOp.TruncToInt dim, [nd])                    assign(n, DstOp.TruncToInt dim, [nd])
# Line 222  Line 222 
222                  probeElem (result, pdOp) @ code                  probeElem (result, pdOp) @ code
223            val probeCode = genProbe (result, diffIter, [])            val probeCode = genProbe (result, diffIter, [])
224            in            in
225    (* FIXME: for dim > 1 and k > 1, we need to transform the result back into world space *)
226              transformCode @ loadCode @ probeCode              transformCode @ loadCode @ probeCode
227            end            end
228    

Legend:
Removed from v.449  
changed lines
  Added in v.450

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