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

SCM Repository

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

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

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

revision 3355, Thu Oct 29 22:08:40 2015 UTC revision 3374, Thu Nov 5 21:05:53 2015 UTC
# Line 37  Line 37 
37    
38    
39          (* ************* Sweep for 0's'*********** *)          (* ************* Sweep for 0's'*********** *)
40            val _ =(String.concat["Pre Sweep\n",P.printbody body,"\n"])
41          val bodysweep=sweepEin.sweep body          val bodysweep=sweepEin.sweep body
42          val ein1=Ein.EIN{params=params, index=index, body=bodysweep}          val ein1=Ein.EIN{params=params, index=index, body=bodysweep}
43          val _=testp["Post Sweep\n",P.printbody bodysweep,"\n"]          val _ =(String.concat["Post Sweep\n",P.printbody bodysweep,"\n"])
44    
45    
46          (* ************** distribute and push Summation*********** *)          (* ************** distribute and push Summation*********** *)
47          val bind3 = (y,DstIL.EINAPP(SummationEin.main ein1,args))          val bind3 = (y,DstIL.EINAPP(SummationEin.main ein1,args))
48          val _ =testp["\n\n summation \n\n =>", toStringBind bind3]          val _ =testp["\n\n summation \n\n =>", toStringBind bind3]
49    
50    (* **************** lift no split ************* *)
51  (*  (*
52     val (einapp1,e2)=L.testLift  bind3
53    val newbies5=e2@[einapp1]
54       val _ =  print("\n **** lift Length"^(Int.toString(length(e2))))
55    *)
56      (* **************** lift field phase ************* *)      (* **************** lift field phase ************* *)
57    (*
58           val (einapp1,e2)=L.testLift  bind3           val (einapp1,e2)=L.testLift  bind3
59          val newbies5=  Split.iterAll2(einapp1,e2)          val newbies5=  Split.iterAll2(einapp1,e2)
60          val n =length(newbies5)          val n =length(newbies5)
# Line 62  Line 68 
68          val _ =test0["\n\n Returning \n\n =>",          val _ =test0["\n\n Returning \n\n =>",
69          String.concatWith",\n\t"(List.map toStringBind newbies5)]          String.concatWith",\n\t"(List.map toStringBind newbies5)]
70    
   
71           (* ************** ProbeEIN *********** *)           (* ************** ProbeEIN *********** *)
72          (*gives probeEIN the set. Could split into a sepearate step*)          (*gives probeEIN the set. Could split into a sepearate step*)
73          val fieldset= einSet.EinSet.empty          val fieldset= einSet.EinSet.empty
# Line 86  Line 91 
91              ":VarCount(",Int.toString(useCount srcy),")",              ":VarCount(",Int.toString(useCount srcy),")",
92                  "\n\t",star,"Pieces now: ",Int.toString (n),                  "\n\t",star,"Pieces now: ",Int.toString (n),
93              " Fields:",Int.toString(!isField)," isReplaced:",Int.toString(!isReplaced),              " Fields:",Int.toString(!isField)," isReplaced:",Int.toString(!isReplaced),
94              " Replaced_Fields:",Int.toString(!isFieldR)              " Replaced_Fields:",Int.toString(!isFieldR)])
                ,toStringBind bind3])  
95              else  ""              else  ""
96    
97    
98          val flatcode= List.foldr op@ [] code          val flatcode= List.foldr op@ [] code
99          (*val _=List.map (fn(_,DstIL.EINAPP(e,_))=>checkEin.checkEIN e | _=> 1) flatcode*)          (*val _=List.map (fn(_,DstIL.EINAPP(e,_))=>checkEin.checkEIN e | _=> 1) flatcode*)
100          val _=(star^"end")          val _=(star^"end")

Legend:
Removed from v.3355  
changed lines
  Added in v.3374

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