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

SCM Repository

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

Diff of /branches/vis15/src/compiler/low-to-tree/low-to-tree.sml

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

revision 3965, Tue Jun 14 02:19:05 2016 UTC revision 3966, Tue Jun 14 15:20:15 2016 UTC
# Line 362  Line 362 
362                | Op.Concat ty => bindOp (TOp.Concat(U.trType ty))                | Op.Concat ty => bindOp (TOp.Concat(U.trType ty))
363                | Op.Range => bindOp TOp.Range                | Op.Range => bindOp TOp.Range
364                | Op.Length ty => bindOp (TOp.Length(U.trType ty))                | Op.Length ty => bindOp (TOp.Length(U.trType ty))
365                | Op.SphereQuery(ty1, ty2) => raise Fail "FIXME: SphereQuery"                | Op.SphereQuery(ty1, ty2) => bindOp (TOp.SphereQuery(U.trType ty1, U.trType ty2))
366                | Op.Sqrt => bindOp TOp.Sqrt                | Op.Sqrt => bindOp TOp.Sqrt
367                | Op.Cos => bindOp TOp.Cos                | Op.Cos => bindOp TOp.Cos
368                | Op.ArcCos => bindOp TOp.ArcCos                | Op.ArcCos => bindOp TOp.ArcCos
# Line 381  Line 381 
381                | Op.IntToReal => bindOp TOp.IntToReal                | Op.IntToReal => bindOp TOp.IntToReal
382                | Op.RealToInt 1 => bindOp TOp.RealToInt                | Op.RealToInt 1 => bindOp TOp.RealToInt
383                | Op.RealToInt d => let                | Op.RealToInt d => let
384                    val layout = Env.layoutVec env d                    val [v] = args
385                    val (_, args, stms) = vectorArg (env, hd args)                    val (layout, args, stms) = vectorArg (env, v)
386                    in                    in
387                      case #pieces layout                      case #pieces layout
388                       of [w] => (Env.TREE(T.E_Op(TOp.VToInt(d, w), args)), stms)                       of [w] => (Env.TREE(T.E_Op(TOp.VToInt(d, w), args)), stms)

Legend:
Removed from v.3965  
changed lines
  Added in v.3966

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