Example #1
0
 public Coalescer(Procedure proc, SsaState ssa)
 {
     this.proc = proc;
     this.ssa = ssa;
     this.sef = new SideEffectFinder();
     this.defsByStatement = new Dictionary<Statement, List<SsaIdentifier>>();
     foreach (SsaIdentifier sid in ssa.Identifiers)
     {
         if (sid.DefStatement != null)
             SetDefStatement(sid.DefStatement, sid);
     }
 }
Example #2
0
 public Coalescer(SsaState ssa)
 {
     this.ssa             = ssa;
     this.sef             = new SideEffectFinder();
     this.defsByStatement = new Dictionary <Statement, List <SsaIdentifier> >();
     foreach (SsaIdentifier sid in ssa.Identifiers)
     {
         if (sid.DefStatement != null)
         {
             SetDefStatement(sid.DefStatement, sid);
         }
     }
 }
Example #3
0
 public void Setup()
 {
     sef = new SideEffectFinder();
 }