X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firopt.h;h=98a1d72bcc627851ba71eb374f2f7c88ac2933e5;hb=e1c33a238578342a072e1c95ff12eefe6d0acd37;hp=941d8836c0279505a01938bda3eae39da6554b0b;hpb=cc5b1f80391090732d5bc628aceeed61ee9b3a1c;p=libfirm diff --git a/ir/ir/iropt.h b/ir/ir/iropt.h index 941d8836c..98a1d72bc 100644 --- a/ir/ir/iropt.h +++ b/ir/ir/iropt.h @@ -3,7 +3,7 @@ * File name: ir/ir/iropt.h * Purpose: iropt --- optimizations of an ir node. * Author: Martin Trapp, Christian Schaefer - * Modified by: Goetz Lindenmaier + * Modified by: Goetz Lindenmaier, Michael Beck * Created: * CVS-ID: $Id$ * Copyright: (c) 1998-2003 Universität Karlsruhe @@ -11,25 +11,21 @@ */ /** -* @file iropt.h -* -* Declarations for optimizations of an ir node. -* -* @author Martin Trapp, Christian Schaefer -*/ - - -# ifndef _IROPT_H_ -# define _IROPT_H_ + * @file iropt.h + * + * Declarations for optimizations of an ir node. + * + * @author Martin Trapp, Christian Schaefer + */ +#ifndef _FIRM_IR_IROPT_H_ +#define _FIRM_IR_IROPT_H_ -# include "irnode.h" -# include "irgraph.h" -# include "irflag.h" +#include "firm_types.h" /** If the expression referenced can be evaluated statically * computed_value returns a tarval representing the result. * Else returns tarval_bad. */ -tarval *computed_value (ir_node *n); +tarval *computed_value(ir_node *n); /** Applies all optimizations to n that are expressible as a pattern * in Firm, i.e., they need not a walk of the graph. @@ -39,11 +35,6 @@ tarval *computed_value (ir_node *n); * An equivalent optimization is applied in the constructors defined in * ircons.ch. There n is freed if a better node could be found. */ -ir_node *optimize_in_place (ir_node *n); - -/** - * set the default ir op operations - */ -ir_op *firm_set_default_operations(ir_op *op); +ir_node *optimize_in_place(ir_node *n); -# endif /* _IROPT_H_ */ +#endif /* _FIRM_IR_IROPT_H_ */