Exemplo n.º 1
0
 public NaiveRegisterPacker(BasicBlock bb, DefaultRegisterPacker derp)
 {
     BasicBlock = bb;
     Derp = derp;
 }
Exemplo n.º 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();
 }