/** * Shorter label */ public String getShortLabel() { return getLabel(); }
/** * Shorter label */ public String getShortLabel() { return getLabel(); }
@Override public int hashCode() { return getLabel().hashCode(); }
@Override public int hashCode() { return getLabel().hashCode(); }
@Override public void startExecute(CompilerPass pass, IRScope scope, boolean childScope) { times.put(pass, new Long(System.currentTimeMillis())); LOG.info("Starting " + pass.getLabel() + " on scope " + scope); }
@Override public void startExecute(CompilerPass pass, IRScope scope, boolean childScope) { times.put(pass, new Long(System.currentTimeMillis())); LOG.info("Starting " + pass.getLabel() + " on scope " + scope); }
@Override public void startExecute(CompilerPass pass, IRScope scope, boolean childScope) { times.put(pass, new Long(System.currentTimeMillis())); LOG.info("Starting " + pass.getLabel() + " on scope " + scope); }
@Override public void startExecute(CompilerPass pass, IRScope scope, boolean childScope) { times.put(pass, new Long(System.currentTimeMillis())); LOG.info("Starting " + 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); } }
@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:\n" + c.toStringInstrs()); } else { LOG.info("\n instrs:\n" + scope.toStringInstrs()); LOG.info("\n live variables:\n" + scope.toStringVariables()); } 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:\n" + c.toStringInstrs()); } else { LOG.info("\n instrs:\n" + scope.toStringInstrs()); LOG.info("\n live variables:\n" + scope.toStringVariables()); } 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); } } }