Exemple #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);
     }
 }
Exemple #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);
         }
     }
 }
 public void Setup()
 {
     sef = new SideEffectFinder();
 }