X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Fircons_t.h;h=80353cb32aae3d7f4c3fa31d76bdee93832a5e69;hb=eda9d668d0e8c8246015b4c5e743316a6a835a23;hp=bfd602166e0fe269e7f5052bfef5bd64ea019ed6;hpb=814def24d66ee2a525987001946d6c9a6717505c;p=libfirm diff --git a/ir/ir/ircons_t.h b/ir/ir/ircons_t.h index bfd602166..80353cb32 100644 --- a/ir/ir/ircons_t.h +++ b/ir/ir/ircons_t.h @@ -1,42 +1,59 @@ /* - * Project: libFIRM - * File name: ir/ir/ircons_t.h - * Purpose: Various irnode constructors. Automatic construction - * of SSA representation. - * Author: Martin Trapp, Christian Schaefer - * Modified by: Michael Beck - * Created: - * CVS-ID: $Id$ - * Copyright: (c) 1998-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 _IRCONS_T_H_ -#define _IRCONS_T_H_ + +/** + * @file + * @brief Various irnode constructors. Automatic construction + * of SSA representation. Private Header + * @author Martin Trapp, Christian Schaefer, Michael Beck + * @version $Id$ + */ +#ifndef FIRM_IR_IRCONS_T_H +#define FIRM_IR_IRCONS_T_H #include "ircons.h" -# include "irgraph_t.h" +#include "irgraph_t.h" /** * Initializes the graph construction. * - * @param func @see default_initialize_local_variable_func_t + * @param func callback that is called if a uninitialized + * variable is detected + * + * @see uninitialized_local_variable_func_t */ -void init_cons (default_initialize_local_variable_func_t *func); +void init_cons(uninitialized_local_variable_func_t *func); /* inline functions */ static INLINE ir_node * -__new_d_Bad(void) { - return current_ir_graph->bad; +_new_d_Bad(void) { + return current_ir_graph->anchors[anchor_bad]; } static INLINE ir_node * -__new_d_NoMem(void) { - return current_ir_graph->no_mem; +_new_d_NoMem(void) { + return current_ir_graph->anchors[anchor_no_mem]; } -#define new_d_Bad() __new_d_Bad() -#define new_d_NoMem() __new_d_NoMem() +#define new_d_Bad() _new_d_Bad() +#define new_d_NoMem() _new_d_NoMem() -#endif /* _IRCONS_T_H_ */ +#endif