X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fscalar_replace.h;h=4b53be83bb6f327f2336931b98ef019f99aca0e3;hb=762b472fc81c73cf7a1b0041b8cd286b7206d79d;hp=51df64d6a7db73f45f0fcd6b4683cd70fbaeb21b;hpb=eb08138c6b80c169945568e4414f491a9bc20388;p=libfirm diff --git a/ir/opt/scalar_replace.h b/ir/opt/scalar_replace.h index 51df64d6a..4b53be83b 100644 --- a/ir/opt/scalar_replace.h +++ b/ir/opt/scalar_replace.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -17,36 +17,24 @@ * PURPOSE. */ -/* - * Project: libFIRM - * File name: ir/opt/scalar_replace.h - * Purpose: scalar replacement of compounds - * Author: Beyhan Veliev - * Created: - * CVS-ID: $Id$ - * Copyright: (c) 1998-2005 Universität Karlsruhe +/** + * @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 -#ifndef _SCALAR_REPLACE_H_ -#define _SCALAR_REPLACE_H_ - -#include "irgraph.h" +#include "firm_types.h" +#include /** * Returns non-zero, if the address of an entity - * represented by a Sel node (or it's successor Sels) is taken. + * represented by a Sel node (or its successor Sels) is taken. * * @param sel the Sel node */ -int is_address_taken(ir_node *sel); - -/** - * Do the scalar replacement optimization. - * Replace local compound entities (like structures and arrays) - * with atomic values if possible. Does not handle classes yet. - * - * @param irg the graph which should be optimized - */ -void scalar_replacement_opt(ir_graph *irg); +bool is_address_taken(ir_node *sel); -#endif /* _SCALAR_REPLACE_H_ */ +#endif /* FIRM_OPT_SCALAR_REPLACE_H */