public NaiveRegisterPacker(BasicBlock bb, DefaultRegisterPacker derp)
 {
     BasicBlock = bb;
     Derp = derp;
 }
Beispiel #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="cfg">Control Flow Graph with </param>
 /// <returns>total number of registers in the updated graph</returns>
 public static int Pack(ControlFlowGraph cfg)
 {
     // make sure the register scan is current.
     cfg.ScanRegisters();
     DefaultRegisterPacker packer = new DefaultRegisterPacker(cfg);
     return packer.PackRegisters();
 }