X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbessadestrsimple.c;h=1068a42b70dc6fc4cbf67911f51f674b57af70a6;hb=040868cbcb834457c8195efbbccf221123c7f153;hp=2223204cd405c0561c5d9f9d1aa0018724a28f0f;hpb=68f3d4250e3bdd76baa86a2fa0c9d213ffb0c75e;p=libfirm diff --git a/ir/be/bessadestrsimple.c b/ir/be/bessadestrsimple.c index 2223204cd..1068a42b7 100644 --- a/ir/be/bessadestrsimple.c +++ b/ir/be/bessadestrsimple.c @@ -1,35 +1,44 @@ -/** - * Author: Daniel Grund - * Date: 17.01.2006 - * Copyright: (c) Universitaet Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. +/* + * 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. */ +/** + * @file + * @brief Simple SSA destruction. + * @author Daniel Grund + * @date 17.01.2006 + * @version $Id$ + */ +#ifdef NOT_PORTED #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef HAVE_MALLOC_H - #include -#endif -#ifdef HAVE_ALLOCA_H - #include -#endif - #include #include #include -#ifdef WITH_LIBCORE -#include -#include -#endif #include "set.h" #include "pset.h" #include "pmap.h" #include "bitset.h" +#include "xmalloc.h" #include "irprintf_t.h" #include "irnode_t.h" @@ -39,9 +48,8 @@ #include "irdom_t.h" #include "phiclass.h" -#include "beraextern.h" #include "beabi.h" -#include "bearch.h" +#include "bearch_t.h" #include "benode_t.h" #include "beirgmod.h" #include "besched_t.h" @@ -311,7 +319,7 @@ set *be_ssa_destr_simple(ir_graph *irg, const arch_env_t *aenv) { irg_block_walk_graph(irg, ssa_destr_simple_walker, NULL, &sde); /* Mapping of SSA-Values <--> Variables */ - pc = phi_class_new_from_irg(irg); + pc = phi_class_new_from_irg(irg, 0); be_clear_links(irg); irg_walk_graph(irg, values_to_vars, NULL, &sde); @@ -328,3 +336,5 @@ void free_ssa_destr_simple(set *vars) del_set(vars); phi_class_free(pc); } + +#endif /* NOT_PORTED */