X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Fircgopt.h;h=846baebf809b2b86a05cc2f3411bf749b2e92526;hb=a158f864beaee2de7ba4e0610a3a9960a0be5ed4;hp=aa0d3d264d33fa140860df82c7fb760aa60a66f8;hpb=74d5a9023b48f346eead323a74e28297659e34b7;p=libfirm diff --git a/include/libfirm/ircgopt.h b/include/libfirm/ircgopt.h index aa0d3d264..846baebf8 100644 --- a/include/libfirm/ircgopt.h +++ b/include/libfirm/ircgopt.h @@ -1,20 +1,6 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. - * * This file is part of libFirm. - * - * This file may be distributed and/or modified under the terms of the - * GNU General Public License version 2 as published by the Free Software - * Foundation and appearing in the file LICENSE.GPL included in the - * packaging of this file. - * - * Licensees holding valid libFirm Professional Edition licenses may use - * this file in accordance with the libFirm Commercial License. - * Agreement provided with the Software. - * - * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE - * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. + * Copyright (C) 2012 University of Karlsruhe. */ /** @@ -22,33 +8,29 @@ * @brief Removal of unreachable methods. * @author Hubert Schmid * @date 09.06.2002 - * @version $Id$ * @brief - * (TODO: translate to english) - * Entfernen von nicht erreichbaren (aufrufbaren) Methoden. Die Menge - * der nicht erreichbaren Methoden wird aus der Absch�tzung der - * Aufrufrelation bestimmt. + * Removal of unreachable methods. The set of unreachable methods is computed + * by the callgraph. */ #ifndef FIRM_IR_ICGOPT_H #define FIRM_IR_ICGOPT_H +#include + #include "firm_types.h" #include "begin.h" -/* Entfernt alle Methoden, die von den Methoden aus "keep_arr" - * (bezgl. der Abschaetzung get_Call_callee) nicht erreichbar sind. Die - * Abschaetzung der Aufrufrelation muss entsprechend an den - * Call-Operationen gespeichert sein. Die "entity->link"s werden dabei - * ueberschrieben. +/** + * Removes all methods which are not reachable from "keep_arr". * - * Frees all interprocedural loop information. */ -FIRM_API void gc_irgs(int n_keep, ir_entity *keep_arr[]); + * Frees all interprocedural loop information. + */ +FIRM_API void gc_irgs(size_t n_keep, ir_entity *keep_arr[]); /** * Creates an ir_prog pass for gc_irgs(). * * @param name the name of this pass or NULL - * * @return the newly created ir_graph pass */ FIRM_API ir_prog_pass_t *gc_irgs_pass(const char *name);