private void printLIR(AbstractBlockBase<?> block){
  if (lir == null) {
    return;
  }
  List<LIRInstruction> lirInstructions=lir.getLIRforBlock(block);
  if (lirInstructions == null) {
    return;
  }
  begin("IR");
  out.println("LIR");
  for (int i=0; i < lirInstructions.size(); i++) {
    LIRInstruction inst=lirInstructions.get(i);
    printLIRInstruction(inst);
  }
  end("IR");
}

private void printLIR ( AbstractBlockBase < ? > block ) { if ( lir == null ) { return ; } List < LIRInstruction > lirInstructions = lir . getLIRforBlock ( block ) ; if ( lirInstructions == null ) { return ; } begin ( "IR" ) ; out . println ( "LIR" ) ; for ( int i = 0 ; i < lirInstructions . size ( ) ; i ++ ) { LIRInstruction inst = lirInstructions . get ( i ) ; printLIRInstruction ( inst ) ; } end ( "IR" ) ; }
prints the lir for each instruction in a given block .
