@Override public void endExecute(CompilerPass pass, IRScope scope, Object data, boolean childScope) { Long startTime = times.get(pass); long timeTaken = startTime != null ? System.currentTimeMillis() - startTime.longValue() : -1; CFG c = scope.getCFG(); if (c != null) { LOG.info("\nGraph:\n" + c.toStringGraph()); LOG.info("\nInstructions[" + getScopeUUID(scope) + "," + scope.getClass().getSimpleName() + "," + pass.getClass().getSimpleName() + "]:\n" + c.toStringInstrs() + "\n:Instructions"); } else { LOG.info("\n instrs:\n" + scope.toStringInstrs()); } if (startTime > 0) { LOG.info("Finished " + pass.getLabel() + " on scope in " + timeTaken + "ms."); } else { // Not really sure we should allow same pass to be run twice in same pass order run...too defensive? LOG.info("Finished " + pass.getLabel() + " on scope " + scope); } }
@Override public void endExecute(CompilerPass pass, IRScope scope, Object data, boolean childScope) { Long startTime = times.get(pass); long timeTaken = startTime != null ? System.currentTimeMillis() - startTime.longValue() : -1; CFG c = scope.getCFG(); if (c != null) { LOG.info("\nGraph:\n" + c.toStringGraph()); LOG.info("\nInstructions[" + getScopeUUID(scope) + "," + scope.getClass().getSimpleName() + "," + pass.getClass().getSimpleName() + "]:\n" + c.toStringInstrs() + "\n:Instructions"); } else { LOG.info("\n instrs:\n" + scope.toStringInstrs()); } if (startTime > 0) { LOG.info("Finished " + pass.getLabel() + " on scope in " + timeTaken + "ms."); } else { // Not really sure we should allow same pass to be run twice in same pass order run...too defensive? LOG.info("Finished " + pass.getLabel() + " on scope " + scope); } }