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

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/translate/translate-basis.sml
ViewVC logotype

Diff of /branches/vis15/src/compiler/translate/translate-basis.sml

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

revision 3484, Sat Dec 5 15:33:56 2015 UTC revision 3492, Thu Dec 10 22:28:29 2015 UTC
# Line 347  Line 347 
347                  (BV.i2r,                simpleOp Op.IntToReal),                  (BV.i2r,                simpleOp Op.IntToReal),
348                  (BV.identity,           fn (y, [Ty.DIM d], xs) =>                  (BV.identity,           fn (y, [Ty.DIM d], xs) =>
349                                            [assignEin(y, Mk.identity d, xs)]),                                            [assignEin(y, Mk.identity d, xs)]),
350    (* FIXME: eventually zero should be implemented by Ein
351                  (BV.zero,               fn (y, [Ty.SHAPE dd], []) =>                  (BV.zero,               fn (y, [Ty.SHAPE dd], []) =>
352                                            [assignEin(y, Mk.zeros dd, [])]),                                            [assignEin(y, Mk.zeros dd, [])]),
353    *)
354                    (BV.zero,               fn (y, [sv], []) =>
355                                              assign(y, Op.Zero(shapeVarToTensor sv), [])),
356                  (BV.nan,                fn (y, [Ty.SHAPE dd], []) => let                  (BV.nan,                fn (y, [Ty.SHAPE dd], []) => let
357                                              val nan = IR.LIT(Literal.Real(RealLit.nan))                                              val nan = IR.LIT(Literal.Real(RealLit.nan))
358                                              fun mk (y, [], stms) = IR.ASSGN(y, nan) :: stms                                              fun mk (y, [], stms) = IR.ASSGN(y, nan) :: stms

Legend:
Removed from v.3484  
changed lines
  Added in v.3492

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