X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firphase_t.h;h=f16135c518b32669d99fdb2ce179747fc7c84fb6;hb=eda9d668d0e8c8246015b4c5e743316a6a835a23;hp=2ed2e97ce9591630772f49db63dfcaacf785f337;hpb=eab5519a7663d027d9f0cd5fa45516698c450226;p=libfirm diff --git a/ir/ir/irphase_t.h b/ir/ir/irphase_t.h index 2ed2e97ce..f16135c51 100644 --- a/ir/ir/irphase_t.h +++ b/ir/ir/irphase_t.h @@ -1,17 +1,30 @@ /* - * Project: libFIRM - * File name: ir/ir/irphase_t.c - * Purpose: Phase information handling using node indexes. - * Author: Sebastian Hack - * Modified by: - * Created: - * CVS-ID: $Id$ - * Copyright: (c) 1998-2007 Universitaet 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 _FIRM_IR_PHASE_T_H -#define _FIRM_IR_PHASE_T_H +/** + * @file + * @brief Phase information handling using node indexes. + * @author Sebastian Hack + * @version $Id$ + */ +#ifndef FIRM_IR_PHASE_T_H +#define FIRM_IR_PHASE_T_H #include "firm_types.h" #include "obst.h" @@ -124,7 +137,7 @@ void phase_reinit_block_irn_data(ir_phase *phase, ir_node *block); * * @return The first irn having some data assigned, NULL otherwise */ -ir_node *phase_get_first_node(ir_phase *phase); +ir_node *phase_get_first_node(const ir_phase *phase); /** * Returns the next node after @p start having some data assigned. @@ -134,7 +147,7 @@ ir_node *phase_get_first_node(ir_phase *phase); * * @return The next node after start having some data assigned, NULL otherwise */ -ir_node *phase_get_next_node(ir_phase *phase, ir_node *start); +ir_node *phase_get_next_node(const ir_phase *phase, ir_node *start); /** * Convenience macro to iterate over all nodes of a phase @@ -296,4 +309,4 @@ static INLINE void *_phase_get_or_set_irn_data(ir_phase *ph, ir_node *irn) return res; } -#endif /* _FIRM_IR_PHASE_T_H */ +#endif