X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firopt_t.h;h=450261be26992f4083359f3b032915bff59f94d1;hb=c0fd951c4803e9ee0450f427f42f5354ca340f5b;hp=f0eb3071e010fa7ea8111cc3a9275453bcbfcba9;hpb=a96c798d865a8735dd1dc83a2893591745858b54;p=libfirm diff --git a/ir/ir/iropt_t.h b/ir/ir/iropt_t.h index f0eb3071e..450261be2 100644 --- a/ir/ir/iropt_t.h +++ b/ir/ir/iropt_t.h @@ -1,25 +1,30 @@ /* - * Project: libFIRM - * File name: ir/ir/iropt_t.h - * Purpose: iropt --- optimizations intertwined with IR construction -- private header. - * Author: Martin Trapp, Christian Schaefer - * Modified by: Goetz Lindenmaier, Michael Beck - * Created: - * CVS-ID: $Id$ - * Copyright: (c) 1998-2003 Universität Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. - */ - -/** - * @file iropt_t.h + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. * - * Declarations for optimizations intertwined with IR construction. + * 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. * - * @author Martin Trapp, Christian Schaefer + * 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 _IROPT_T_H_ -#define _IROPT_T_H_ +/** + * @file + * @brief iropt --- optimizations intertwined with IR construction -- private header. + * @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck + * @version $Id$ + */ +#ifndef FIRM_IR_IROPT_T_H +#define FIRM_IR_IROPT_T_H #include "iropt.h" #include "irnode_t.h" @@ -49,12 +54,12 @@ pset *new_identities(void); * * @param value_table the identity set */ -void del_identities(pset *value_table); +void del_identities(pset *value_table); /** * Add a node to the identities value table. */ -void add_identities(pset *value_table, ir_node *node); +void add_identities(pset *value_table, ir_node *node); /** * Compare function for two nodes in the hash table. Gets two @@ -81,10 +86,10 @@ ir_node *optimize_in_place_2(ir_node *n); */ static INLINE tarval * value_of(ir_node *n) { - if ((n != NULL) && (get_irn_op(n) == op_Const)) - return get_Const_tarval(n); /* might return tarval_bad */ - else - return tarval_bad; + if ((n != NULL) && (get_irn_op(n) == op_Const)) + return get_Const_tarval(n); /* might return tarval_bad */ + else + return tarval_bad; } /** @@ -96,6 +101,6 @@ value_of(ir_node *n) { * @return * The operations. */ -ir_op_ops *firm_set_default_operations(opcode code, ir_op_ops *ops); +ir_op_ops *firm_set_default_operations(ir_opcode code, ir_op_ops *ops); -#endif /* _IROPT_T_H_ */ +#endif