11 #ifndef FIRM_IR_IRFLAG_H
12 #define FIRM_IR_IRFLAG_H
14 #include "firm_types.h"
void restore_optimization_state(const optimization_state_t *state)
Restore the current optimization state.
void set_opt_algebraic_simplification(int value)
Enables/Disables algebraic simplifications.
int get_opt_cse(void)
Returns constant folding optimization setting.
int get_opt_global_cse(void)
Returns global constant subexpression elimination setting.
int get_opt_constant_folding(void)
returns 0 if constant_folding is disabled, !=0 otherwise
void set_opt_global_null_ptr_elimination(int value)
Enable/Disable Global Null Pointer Test Elimination.
void set_opt_global_cse(int value)
Enables/Disables global constant subexpression elimination.
int get_opt_global_null_ptr_elimination(void)
Returns global null pointer test elimination setting.
void set_opt_constant_folding(int value)
Enables/Disables constant folding optimization.
void save_optimization_state(optimization_state_t *state)
Save the current optimization state.
void all_optimizations_off(void)
Switches ALL optimizations off.
int get_optimize(void)
Returns global optimizations flag.
int get_opt_closed_world(void)
Returns closed world assumption setting.
void set_optimize(int value)
This function enables/disables optimizations globally.
unsigned optimization_state_t
A container type to load/restore all optimizations.
void set_opt_closed_world(int value)
Enable/Disable closed world assumption.
int get_opt_algebraic_simplification(void)
Returns algebraic simplification setting.
void set_opt_cse(int value)
Enables/Disables common subexpression elimination.