X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Ftropt.h;h=3c7dca0dc68dfc050a286dbb6e03fedd6f057ee3;hb=fa9649a9766ace19d23acf80c0ef6791390b0dea;hp=e65cbc363f6b800acdc8658ce9b7ff85f4cfda0d;hpb=9625e38fc84983dde86531443d2a54d719925e6f;p=libfirm diff --git a/ir/opt/tropt.h b/ir/opt/tropt.h index e65cbc363..3c7dca0dc 100644 --- a/ir/opt/tropt.h +++ b/ir/opt/tropt.h @@ -1,32 +1,37 @@ -/** - * - * @file irsimpeltype.h +/* + * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. * - * Project: libFIRM - * File name: ir/opt/tropt.h - * Purpose: Optimize the type representation. - * Author: Goetz Lindenmaier - * Modified by: - * Created: 20.4.2005 - * CVS-ID: $Id$ - * Copyright: (c) 2005 Universität Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * This file is part of libFirm. * - * Perform optimizations of the type representation. + * 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. */ -#ifndef _TROPT_H_ -#define _TROPT_H_ +/** + * @file + * @brief Perform optimizations of the type representation. + * @date 20.4.2005 + * @author Goetz Lindenmaier + * @version $Id$ + */ +#ifndef FIRM_OPT_TROPT_H +#define FIRM_OPT_TROPT_H -#include "irnode.h" -#include "irgraph.h" -#include "type.h" +#include "firm_types.h" /** This is the type for a method, that returns a pointer type to * tp. This is needed in the normalization. */ -typedef type *(*gen_pointer_type_to_func)(type *tp); +typedef ir_type *(*gen_pointer_type_to_func)(ir_type *tp); /** Insert Casts so that class type casts conform exactly with the type hierarchy. * @@ -59,7 +64,7 @@ void normalize_irp_class_casts(gen_pointer_type_to_func gppt_fct); /** Insert Casts so that class type casts conform exactly with the type hierarchy * in given graph. * - * For more details see @normalize_irp_class_casts(). + * For more details see normalize_irp_class_casts(). * * This transformation requires that type information is computed. @see irtypeinfo.h. */ @@ -74,7 +79,7 @@ void normalize_irg_class_casts(ir_graph *irg, gen_pointer_type_to_func gppt_fct) * Performs the following transformations: * C c = (C)(B)(A)(B)new C() --> C c = (C)(B)newC() --> C c = new C() * (Optimizing downcasts as A a = (A)(B)(new A()) --> A a = new A() can - * be suppressed by setting flag opt_suppress_downcast_optimization. + * be suppressed by setting the flag opt_suppress_downcast_optimization. * Downcasting A to B might cause an exception. It is not clear * whether this is modeled by the Firm Cast node, as it has no exception * outputs.); @@ -88,4 +93,4 @@ void normalize_irg_class_casts(ir_graph *irg, gen_pointer_type_to_func gppt_fct) */ void optimize_class_casts(void); -#endif /* _TROPT_H_ */ +#endif /* FIRM_OPT_TROPT_H */