demo.cpp
/* Print IR code of a loop.
 */
Print IR code of a loop.
Print IR code of a loop .
void Support::printLoopIRCode(Loop *pLoop)
{
    errs()<< "----------------------------IR code:-------------------------------" << "\n";
	pLoop->print(errs());
	errs()<< "--------------------------IR code end:-----------------------------" << "\n";
    for (Loop::block_iterator BI = pLoop->block_begin(); BI != pLoop->block_end(); BI++) {
		BasicBlock *BB = *BI;
        BB->print(errs());
    }
	errs()<< "--------------------------IR code end:-----------------------------" << "\n";
	return;
}
void Support :: printLoopIRCode ( Loop * pLoop ) { errs ( ) << " " << " \n " ; pLoop -> print ( errs ( ) ) ; errs ( ) << " " << " \n " ; for ( Loop :: block_iterator BI = pLoop -> block_begin ( ) ; BI != pLoop -> block_end ( ) ; BI ++ ) { BasicBlock * BB = * BI ; BB -> print ( errs ( ) ) ; } errs ( ) << " " << " \n " ; return ; }
Print IR code of a loop.
Print IR code of a loop .