/** * Build BURS trees for dependence graph <code>bb</code>, label the trees, and then generate MIR * instructions based on the labeling. * * @param bb The dependence graph. XXX Is this correct? */ public void invoke(OPT_BasicBlock bb) { OPT_BURS_STATE burs = new OPT_BURS_STATE(this); for (OPT_InstructionEnumeration e = bb.forwardRealInstrEnumerator(); e.hasMoreElements(); ) { OPT_Instruction s = e.next(); OPT_BURS_TreeNode tn = buildTree(s); burs.label(tn); burs.mark(tn, /* goalnt */ (byte) 1); generateTree(tn, burs); } }