7 typedef struct optdesc_t {
9 * The short name of the optimization
11 * Should not contain spaces, since it is used for the dumper filenames.
13 const char * const name;
16 * required irg_state for this optimization
18 ir_graph_state_t requirements;
21 * The optimization function itself
23 * @returns zero by default; set some flags, if you guarantee some irg_state properties
25 ir_graph_state_t (*const optimization)(ir_graph *irg);
28 void perform_irg_optimization(ir_graph *irg, optdesc_t *opt);