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

SCM Repository

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

Diff of /branches/charisee/src/compiler/high-to-mid/high-to-mid.sml

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

revision 3047, Wed Mar 11 18:00:45 2015 UTC revision 3048, Wed Mar 11 20:00:27 2015 UTC
# Line 205  Line 205 
205                | SrcOp.Clamp ty => assign (DstOp.Clamp(cvtTy ty))                | SrcOp.Clamp ty => assign (DstOp.Clamp(cvtTy ty))
206                | SrcOp.Lerp ty => assign (DstOp.Lerp(cvtTy ty))                | SrcOp.Lerp ty => assign (DstOp.Lerp(cvtTy ty))
207                | SrcOp.Sqrt =>assign DstOp.Sqrt                | SrcOp.Sqrt =>assign DstOp.Sqrt
208                  | SrcOp.Norm(SrcTy.TensorTy [])=> assign(DstOp.Abs DstTy.realTy)
209                | SrcOp.Norm(SrcTy.TensorTy alpha)=> let                | SrcOp.Norm(SrcTy.TensorTy alpha)=> let
210                      (*Note Norm is implemented with EINAPP as a summation over modulate*)                      (*Note Norm is implemented with EINAPP as a summation over modulate then sqrt*)
211                      val t = DstIL.Var.new (genName "t", DstTy.realTy)                      val t = DstIL.Var.new (genName "t", DstTy.realTy)
212                      val t= useD t                      val t= useD t
213                      val a=Env.renameList(env, args)                      val a=Env.renameList(env, args)

Legend:
Removed from v.3047  
changed lines
  Added in v.3048

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