/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
-** All rights reserved.
-**
-** Author: Boris Boesler
-**
-** traverse an ir graph
-** - execute the pre function before recursion
-** - execute the post function after recursion
+* All rights reserved.
+*
+* Author: Boris Boesler
+*
+* traverse an ir graph
+* - execute the pre function before recursion
+* - execute the post function after recursion
*/
/* $Id$ */
# include "irgraph.h" /* visited flag */
# include "irprog.h"
# include "irgwalk.h"
+# include "typewalk.h"
# include "eset.h"
# include "array.h"
/** } **/
/********************************************************************/
-/* Allocates some necessary datastructures. */
-void init_ip_walk ();
-/* Frees some necessary datastructures. */
-void finish_ip_walk();
-
/* Call for i in {0|-1 ... get_irn_arity(n)}.
If n is a conventional node returns the same node as get_irn_n(n, i).
If the predecessors of n are in the callee of the procedure n belongs
/* Initialization routines ******************************************/
-void init_ip_walk () {
+void init_ip_walk (void) {
int i;
for (i = 0; i < get_irp_n_irgs(); i++)
new_callsite_stack(get_irp_irg(i));
}
-void finish_ip_walk() {
+void finish_ip_walk(void) {
int i;
for (i = 0; i < get_irp_n_irgs(); i++)
free_callsite_stack(get_irp_irg(i));