libFirm
irgopt.h File Reference

Optimizations for a whole ir graph, i.e., a procedure. More...

#include "firm_types.h"
#include "begin.h"
#include "end.h"

Go to the source code of this file.

Functions

void local_optimize_node (ir_node *n)
 Applies local optimizations (see iropt.h) to all nodes reachable from node n.
void local_optimize_graph (ir_graph *irg)
 Applies local optimizations (see iropt.h) to all nodes in the graph.
void local_opts (ir_graph *irg)
 Applies local optimizations (see iropt.h) to all nodes in the graph.
void local_opts_const_code (void)
 Perform local optimizations on nodes on const code irg.
int optimize_graph_df (ir_graph *irg)
 Same functionality as local_opts above, but without framework wrapper.
void remove_unreachable_code (ir_graph *irg)
 Eliminates (obviously) unreachable code.
void remove_bads (ir_graph *irg)
 Removes all Bad nodes from a graph.
void remove_tuples (ir_graph *irg)
 Removes all Tuple nodes from a graph.
ir_graph_pass_toptimize_graph_df_pass (const char *name)
 Creates an ir_graph pass for optimize_graph_df().
void remove_critical_cf_edges (ir_graph *irg)
 Places an empty basic block on critical control flow edges thereby removing them.
void remove_critical_cf_edges_ex (ir_graph *irg, int ignore_exception_edges)
 Places an empty basic block on critical control flow edges thereby removing them.

Detailed Description

Optimizations for a whole ir graph, i.e., a procedure.

Author
Christian Schaefer, Goetz Lindenmaier, Sebastian Felis

Definition in file irgopt.h.