backend: created a (not so nice) macro to iterate over all values defined by an instr...
[libfirm] / ir / be / bestate.h
index 7e0029c..0aa34c6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
  * @author      Matthias Braun
  * @date        26.03.2007
  * @version     $Id$
- * Copyright:   (c) Universitaet Karlsruhe
- * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
  */
 #ifndef FIRM_BE_BESTATE_H
 #define FIRM_BE_BESTATE_H
 
-#include "irnode.h"
+#include "firm_types.h"
 #include "beirg.h"
-#include "bearch_t.h"
+#include "bearch.h"
 
 /**
  * Callback that should create a spill for a certain value. Can return NULL
  * if @p force == 0 and the value can be easily rematerialized
  */
-typedef ir_node* (*create_spill_func) (void *env, ir_node *value, int force,
-                                       ir_node *after);
+typedef ir_node *(*create_spill_func) (void *env, ir_node *value, int force, ir_node *after);
 
 /**
  * Callback that should create a reload for a certain value
  */
-typedef ir_node(*create_reload_func) (void *env, ir_node *value,
+typedef ir_node *(*create_reload_func) (void *env, ir_node *value,
                                         ir_node *spill, ir_node *before,
                                         ir_node *last_value);
 
@@ -55,7 +52,7 @@ typedef ir_node* (*create_reload_func) (void *env, ir_node *value,
  * This functions asserts that the state is switched to fullfill all state
  * requirements of nodes.
  */
-void be_assure_state(be_irg_t *birg, const arch_register_t *reg, void *func_env,
+void be_assure_state(ir_graph *irg, const arch_register_t *reg, void *func_env,
                      create_spill_func spill_func,
                      create_reload_func reload_func);