3 * File name: ir/opt/tailrec.h
4 * Purpose: Tail-recursion call optimization.
8 * Copyright: (c) 1998-2004 Universität Karlsruhe
9 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
15 * Tail-recursion call optimization.
17 * @author Michael Beck
26 * Optimizes simple tail-recursion calls by
27 * converting them into loops. Depends on the flag opt_tail_recursion.
29 * Does not work for Calls that use the exception stuff.
31 * @param irg the graph to be optimized
33 * @return non-zero if the optimization could be applied, 0 else
35 int opt_tail_rec_irg(ir_graph *irg);
38 * Optimize tail-recursion calls for all IR-Graphs.
40 void opt_tail_recursion(void);
42 # endif /* _TAILREC_H_ */