* @author Matthias Braun
* @version $Id$
*/
-
#ifndef BEPEEPHOLE_H
#define BEPEEPHOLE_H
#include "beirg.h"
-#include "bearch_t.h"
+#include "bearch.h"
extern ir_node ***register_values;
-static INLINE ir_node *be_peephole_get_value(unsigned regclass_idx,
+static inline ir_node *be_peephole_get_value(unsigned regclass_idx,
unsigned register_idx)
{
return register_values[regclass_idx][register_idx];
}
-static INLINE ir_node *be_peephole_get_reg_value(const arch_register_t *reg)
+static inline ir_node *be_peephole_get_reg_value(const arch_register_t *reg)
{
unsigned regclass_idx = arch_register_class_index(arch_register_get_class(reg));
unsigned register_idx = arch_register_get_index(reg);
* backend specific optimisations should be performed based on the
* register-liveness information.
*/
-void be_peephole_opt(be_irg_t *birg);
+void be_peephole_opt(ir_graph *irg);
#endif