From 8ec38d4da90f38a8167a9289f3b67145cfe317ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Tue, 4 Mar 2003 15:43:36 +0000 Subject: [PATCH] Changed comments, formatting [r861] --- ir/ana/cgana.h | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/ir/ana/cgana.h b/ir/ana/cgana.h index cf2a77c12..8eadc3562 100644 --- a/ir/ana/cgana.h +++ b/ir/ana/cgana.h @@ -32,23 +32,24 @@ -/* Analyses a rough estimation of the possible call graph. - * Bestimmt fuer jede Call-Operation die Menge der aufrufbaren Methode - * und speichert das Ergebnis in der Call-Operation. (siehe - * "set_Call_callee"). Die Methode gibt die Menge der - * "freien" Methoden zurueck, die vom Aufrufer wieder freigegeben - * werden muss (free). - * The algorithm implements roughly Static Class Hierarchy Analysis - * as described in "Optimization of Object-Oriented Programs Using - * Static Class Hierarchy Analysis" by Jeffrey Dean and David Grove - * and Craig Chambers. +/** Analyses a rough estimation of the possible call graph. * - * Performs some optimizations possible by the analysed information: - * - Replace SymConst nodes by Const nodes if possible, - * - Replace (Sel-method(Alloc)) by Const method, - * - Replaces unreachable Sel nodes by Bad (@@@ was genau meint unreachable?) - * - Replaces Sel-method by Const if the Method is never overwritten */ -/* @@@ I assume this can not be called via JNI :-( */ + * Bestimmt fuer jede Call-Operation die Menge der aufrufbaren Methode + * und speichert das Ergebnis in der Call-Operation. (siehe + * "set_Call_callee"). Die Methode gibt die Menge der + * "freien" Methoden zurueck, die vom Aufrufer wieder freigegeben + * werden muss (free). + * The algorithm implements roughly Static Class Hierarchy Analysis + * as described in "Optimization of Object-Oriented Programs Using + * Static Class Hierarchy Analysis" by Jeffrey Dean and David Grove + * and Craig Chambers. + * + * Performs some optimizations possible by the analysed information: + * - Replace SymConst nodes by Const nodes if possible, + * - Replace (Sel-method(Alloc)) by Const method, + * - Replaces unreachable Sel nodes by Bad (@@@ was genau meint unreachable?) + * - Replaces Sel-method by Const if the Method is never overwritten */ +/* @@@ I assume this can not be called via JNI :-( -- how to obtain the array pointer? */ void cgana(int *len, entity ***free_methods); /* Optimize the address expressions passed to call nodes. -- 2.20.1