1 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
2 ** All rights reserved.
4 ** Authors: Martin Trapp, Christian Schaefer
6 ** Declarations for optimizations intertwined with IR construction.
18 /* optimize_in_place (n) may change the contents of the ir_node itself,
19 [e.g. by making it a Id-node], but does not change its identity.
20 So it is safe to be called on already referenced nodes.
22 optimize_in_place (n) returns a pointer to a node equivalent to `n'
23 which should be used instead of `n'.
25 optimize (n) may deallocate `n' and everything allocated after `n'! */
27 tarval *computed_value (ir_node *n);
29 pset *new_identities (void);
30 void del_identities (pset *value_table);
32 ir_node *optimize (ir_node *n);
33 ir_node *optimize_in_place (ir_node *n);
35 # endif /* _IROPT_H_ */