X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeirgmod.c;h=301234ec4cbdf1fe87a392664a295e47a1619da7;hb=9276447aec4972df060349e162f583c4898dfec8;hp=626821deca8fe121c28b5560ace4a32ccb866b0d;hpb=c0acb5cc9a2967e31e2b2961a98831d674cea3b8;p=libfirm diff --git a/ir/be/beirgmod.c b/ir/be/beirgmod.c index 626821dec..301234ec4 100644 --- a/ir/be/beirgmod.c +++ b/ir/be/beirgmod.c @@ -1,16 +1,33 @@ +/* + * Copyright (C) 1995-2007 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. + */ + /** * @file - * @brief + * @brief Backend IRG modification routines. + * @author Sebastian Hack, Daniel Grund, Matthias Braun, Christian Wuerdig + * @date 04.05.2005 + * @version $Id$ + * * This file contains the following IRG modifications for be routines: * - insertion of Perm nodes * - empty block elimination * - a simple dead node elimination (set inputs of unreachable nodes to BAD) - * - * @author Sebastian Hack, Daniel Grund, Matthias Braun, Christian Wuerdig - * @date 04.05.2005 - * @version $Id$ - * Copyright: (c) Universitaet Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -18,13 +35,6 @@ #include -#ifdef HAVE_MALLOC_H - #include -#endif -#ifdef HAVE_ALLOCA_H - #include -#endif - #include "hashptr.h" #include "pdeq.h" #include "pset.h" @@ -32,6 +42,7 @@ #include "util.h" #include "debug.h" #include "error.h" +#include "xmalloc.h" #include "irflag_t.h" #include "ircons_t.h" @@ -47,15 +58,16 @@ #include "be_t.h" #include "bechordal_t.h" -#include "bearch.h" +#include "bearch_t.h" #include "besched_t.h" #include "belive_t.h" #include "benode_t.h" #include "beutil.h" #include "beinsn_t.h" #include "bessaconstr.h" - +#include "beirg_t.h" #include "beirgmod.h" +#include "bemodule.h" DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)