X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fscalar_replace.h;h=e5482b938ac7b181875acd9b2504f70b7627b079;hb=c1c777ab401f028f3bfef31836da00c3f3fc5e0c;hp=d9f85942af6c835c9460bcbda54815cdcc37942c;hpb=4c8850a9b0d3517ca8d547fbdfa0db2ae8f7ee0a;p=libfirm diff --git a/ir/opt/scalar_replace.h b/ir/opt/scalar_replace.h index d9f85942a..e5482b938 100644 --- a/ir/opt/scalar_replace.h +++ b/ir/opt/scalar_replace.h @@ -1,39 +1,39 @@ /* - * Project: libFIRM - * File name: ir/opt/scalar_replace.h - * Purpose: scalar replacement of arrays and compounds - * Author: Beyhan Veliev - * Created: - * CVS-ID: $Id$ - * Copyright: (c) 1998-2005 Universität 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. */ -# ifndef _SCALAR_REPLACE_H_ -# define _SCALAR_REPLACE_H_ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "tv.h" -#include "irgraph_t.h" -#include "irouts.h" -#include "pset.h" -#include "hashptr.h" -#include "irdump.h" -#include "ircons.h" -#include "irgmod.h" -#include "obst.h" -#include "irloop.h" -#include "irdom.h" -#include "irflag_t.h" -#include "array.h" +/** + * @file + * @brief Scalar replacement of compounds. + * @author Beyhan Veliev, Michael Beck + * @version $Id$ + */ +#ifndef FIRM_OPT_SCALAR_REPLACE_H +#define FIRM_OPT_SCALAR_REPLACE_H +#include "firm_types.h" -/* - * find possible scalar replacements +/** + * Returns non-zero, if the address of an entity + * represented by a Sel node (or it's successor Sels) is taken. + * + * @param sel the Sel node */ -void find_scalar_replacements(ir_graph *irg); +int is_address_taken(ir_node *sel); -#endif /* _SCALAR_REPLACE_H_ */ +#endif /* FIRM_OPT_SCALAR_REPLACE_H */