ia32: Simplify ia32_register_saved_by().
[libfirm] / ir / be / beirgmod.h
index 7ec959a..5447a38 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.
  *
@@ -22,7 +22,6 @@
  * @brief       Backend IRG modification routines.
  * @author      Sebastian Hack, Daniel Grund, Matthias Braun, Christian Wuerdig
  * @date        04.05.2005
- * @version     $Id$
  *
  * This file contains the following IRG modifications for be routines:
  * - insertion of Perm nodes
 #ifndef FIRM_BE_BEIRGMOD_H
 #define FIRM_BE_BEIRGMOD_H
 
-#include "irnode.h"
-#include "beirg.h"
-
-#if 0
-/**
- * Introduce several copies for one node.
- *
- * A copy in this context means, that you want to introduce several new
- * abstract values (in Firm: nodes) for which you know, that they
- * represent the same concrete value. This is the case if you
- * - copy
- * - spill and reload
- * - re-materialize
- * a value.
- *
- * This function reroutes all uses of the original value to the copies in the
- * corresponding dominance subtrees and creates Phi functions where necessary.
- *
- * @note The visited flag and link fields are used.
- *
- * @param info           Dominance frontier information.
- * @param lv          Liveness information to be updated. If NULL, no liveness
- *                    updating is performed.
- * @param value       The value that has been duplicated.
- * @param copies_len  the length of the copies array
- * @param copie       an array holding all copies of the value
- * @param phis        An ARR_F where all newly created phis will be inserted,
- *                    may be NULL
- * @param ignore_uses A set of nodes probably using one of the nodes in
- *                    @p nodes. Their usage will not adjusted. They remain
- *                    untouched by this function. May be NULL.
- */
-ir_node **be_ssa_construction(const be_dom_front_info_t *info, be_lv_t *lv,
-                            ir_node *value, int copies_len, ir_node **copies,
-                            const ir_nodeset_t *ignore_uses, int need_new_phis);
-
-/** @deprecated */
-void be_ssa_constr_set_ignore(const be_dom_front_info_t *info, be_lv_t *lv,
-                              pset *nodes, pset *ignores);
-#endif
+#include "be_types.h"
+#include "firm_types.h"
 
 /**
  * Insert a Perm which permutes all (non-ignore) live values of a given register class
- * after a certain instruction.
+ * before a certain instruction.
  * @param lv        Liveness Information.
- * @param irn       The node to insert the Perm after.
+ * @param irn       The node to insert the Perm before.
  * @return          The Perm or NULL if nothing was live before @p irn.
  */
-ir_node *insert_Perm_after(be_irg_t *birg, const arch_register_class_t *cls,
+ir_node *insert_Perm_before(ir_graph *irg, const arch_register_class_t *cls,
                                                   ir_node *irn);
 
 /**
@@ -93,4 +54,10 @@ ir_node *insert_Perm_after(be_irg_t *birg, const arch_register_class_t *cls,
  */
 int be_remove_empty_blocks(ir_graph *irg);
 
-#endif /* FIRM_BE_BEIRGMOD_H */
+/**
+ * Removes dead nodes from schedule
+ * @param irg  the graph
+ */
+void be_remove_dead_nodes_from_schedule(ir_graph *irg);
+
+#endif