X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Frta.h;h=bad8b04c5996c19fde72d9941e876dcb412b66c7;hb=58e533a640ff427362877a3d2f1a5142c96391e1;hp=47c9701307881a8e5425bd7c55e88d36fefae55f;hpb=e5d96097b829a9387685e75a9916196e4c1c2517;p=libfirm diff --git a/ir/ana/rta.h b/ir/ana/rta.h index 47c970130..bad8b04c5 100644 --- a/ir/ana/rta.h +++ b/ir/ana/rta.h @@ -1,5 +1,35 @@ /* -*- c -*- */ +/* + * Project: libFIRM + * File name: ir/ana/rta.h + * Purpose: Interprocedural analysis to improve the call graph estimate. + * Author: Florian + * Modified by: + * Created: 09.06.2002 + * CVS-ID: $$ + * Copyright: (c) 1999-2004 Universität Karlsruhe + * Licence: This file is protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + +/** + * Intraprozedurale Analyse zur Abschätzung der Aufrufrelation. Es wird + * die Menge der instantiierten Klassen bestimmt, und daraus eine Abschätzung + * der aufgerufenen Methoden. + * + * Voraussetzung ist, dass das Programm keine Methodenzeiger handhaben kann. + * In diesem Fall koennten Methoden verloren gehen. Oder wir muessen nach + * allen "freien" Methoden suchen (siehe cgana). + * + * @@@ Die Analyse sollte wissen, von welchen Klassen Instanzen ausserhalb + * der Uebersetzungseinheit alloziert werden koennen. Diese muessen in + * die initiale Menge allozierter Klassen aufgenommern werden. + * + * Nach: David F. Bacon and Peter F. Sweeney, + * Fast static analysis of C++ virtual function calls + * OOPSLA 1996 + */ + #ifndef _RTA_H_ #define _RTA_H_ @@ -23,18 +53,27 @@ void rta_delete_dead_graphs (void); void rta_cleanup(void); /** Returns non-zero if the given class is alive. */ -int rta_is_alive_class(type *clazz); +int rta_is_alive_class(ir_type *clazz); /** Returns non-zero if the given graph is alive. */ int rta_is_alive_graph(ir_graph *graph); -/** report for all graphs and types wheater they are alive */ +/** report for all graphs and types whether they are alive */ void rta_report (void); #endif /* not defined _RTA_H_ */ /* * $Log$ + * Revision 1.14 2006/01/13 21:52:00 beck + * renamed all types 'type' to 'ir_type' + * + * Revision 1.13 2004/10/21 07:23:34 goetz + * comments + * + * Revision 1.12 2004/10/20 14:59:27 liekweg + * Removed ecg + * * Revision 1.11 2004/10/18 12:47:46 liekweg * minor fix *