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

SCM Repository

[diderot] Diff of /branches/charisee/src/compiler/tree-il/lowOp-to-treeOp.sml
ViewVC logotype

Diff of /branches/charisee/src/compiler/tree-il/lowOp-to-treeOp.sml

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

revision 2666, Wed Jun 4 01:59:49 2014 UTC revision 2667, Thu Jun 5 18:54:12 2014 UTC
# Line 45  Line 45 
45          val code=getLd(pieces, 0,rator,argsS,args,origTy,aligned)          val code=getLd(pieces, 0,rator,argsS,args,origTy,aligned)
46          val exp=(case (rator n)          val exp=(case (rator n)
47              of DstOp.sumVec _ => Dst.S_Assign([lhs],addSca code)              of DstOp.sumVec _ => Dst.S_Assign([lhs],addSca code)
48                    (*already checked for vector types*)
49              | _ =>(*Dst.S_Mk(lhs,mkVec(n,origTy,splitTy,code,aligned)) *)              | _ =>(*Dst.S_Mk(lhs,mkVec(n,origTy,splitTy,code,aligned)) *)
50                  Dst.S_Assign([lhs],mkVec(n,origTy,splitTy,code,aligned))                  Dst.S_Assign([lhs],mkVec(n,origTy,splitTy,code,aligned))
51              (*end case*))              (*end case*))
# Line 76  Line 77 
77          | SrcOp.Min =>    DstOp.Min          | SrcOp.Min =>    DstOp.Min
78          | SrcOp.Clamp ty =>    DstOp.Clamp ty          | SrcOp.Clamp ty =>    DstOp.Clamp ty
79          | SrcOp.Lerp ty =>    DstOp.Lerp  ty          | SrcOp.Lerp ty =>    DstOp.Lerp  ty
80            (*
81            | SrcOp.Norm (SrcTy.TensorTy [v]) =>    raise Fail"Should have been replaced in mid-to-low-il"
82          | SrcOp.Norm ty =>    DstOp.Norm  ty          | SrcOp.Norm ty =>    DstOp.Norm  ty
83          | SrcOp.Normalize d =>    DstOp.Normalize d          | SrcOp.Normalize d =>    DstOp.Normalize d
84            *)
85          | SrcOp.Zero ty =>    DstOp.Zero  ty          | SrcOp.Zero ty =>    DstOp.Zero  ty
86          | SrcOp.PrincipleEvec ty =>    DstOp.PrincipleEvec ty          | SrcOp.PrincipleEvec ty =>    DstOp.PrincipleEvec ty
87          | SrcOp.EigenVals2x2 =>    DstOp.EigenVals2x2          | SrcOp.EigenVals2x2 =>    DstOp.EigenVals2x2
# Line 102  Line 106 
106          | SrcOp.subSca=>DstOp.subSca          | SrcOp.subSca=>DstOp.subSca
107          | SrcOp.prodSca=>DstOp.prodSca          | SrcOp.prodSca=>DstOp.prodSca
108          | SrcOp.divSca=>DstOp.divSca          | SrcOp.divSca=>DstOp.divSca
109            | SrcOp.Sqrt =>DstOp.Sqrt
110          (*Still need to sort *)          (*Still need to sort *)
111          | SrcOp.IndexTensor e=> DstOp.IndexTensor e          | SrcOp.IndexTensor e=> DstOp.IndexTensor e
112          | SrcOp.imgAddr(v,indexAt, dim)=>DstOp.imgAddr(v, indexAt, dim)          | SrcOp.imgAddr(v,indexAt, dim)=>DstOp.imgAddr(v, indexAt, dim)

Legend:
Removed from v.2666  
changed lines
  Added in v.2667

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