X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Firbackedge_t.h;h=08aa3b031cab73822262391fc028cdadf4872738;hb=95afc5aaefb484a67fb89f02b5e96cc302fe02ef;hp=5e3536f4b7b7cd1d4108da06662151d3b35b0280;hpb=6adca0bec70d258d73f9fe2a9d664dc6a07a4d43;p=libfirm diff --git a/ir/ana/irbackedge_t.h b/ir/ana/irbackedge_t.h index 5e3536f4b..08aa3b031 100644 --- a/ir/ana/irbackedge_t.h +++ b/ir/ana/irbackedge_t.h @@ -1,25 +1,41 @@ /* - * Project: libFIRM - * File name: ir/ana/irbackedge_t.h - * Purpose: Access function for backedges -- private header. - * Author: Goetz Lindenmaier - * Modified by: - * Created: 7.2002 - * CVS-ID: $Id$ - * Copyright: (c) 2002-2003 Universität Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * 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. */ -#ifndef _IRBACKEDGE_T_H_ -#define _IRBACKEDGE_T_H_ +/** + * @file + * @brief Access function for backedges -- private header. + * @author Goetz Lindenmaier + * @date 7.2002 + * @version $Id$ + */ +#ifndef FIRM_ANA_IRBACKEDGE_T_H +#define FIRM_ANA_IRBACKEDGE_T_H -# include +/** + * Allocate a new backedge array on the obstack for given size. + */ +int *new_backedge_arr(struct obstack *obst, int size); -static INLINE int * new_backedge_arr(struct obstack *obst, int size) { - int *res = NEW_ARR_D (int, obst, size); - memset(res, 0, sizeof(int) * size); - return res; -} +/** + * allocate new backedge info for nodes. + */ +void new_backedge_info(ir_node *n); /** * Adapts backedges array to new size. @@ -28,4 +44,4 @@ static INLINE int * new_backedge_arr(struct obstack *obst, int size) { */ void fix_backedges(struct obstack *obst, ir_node *n); -#endif /* _IRBACKEDGE_T_H_ */ +#endif