X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeirgmod.h;h=5447a389aa3f7df3846fe13616b2ec3748bad3ff;hb=6f965967e27f2e4db1a7dbf5d050bd415fceeb5b;hp=398e56b39915b107c0248e4d156859cb63b0696c;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/be/beirgmod.h b/ir/be/beirgmod.h index 398e56b39..5447a389a 100644 --- a/ir/be/beirgmod.h +++ b/ir/be/beirgmod.h @@ -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 @@ -32,17 +31,17 @@ #ifndef FIRM_BE_BEIRGMOD_H #define FIRM_BE_BEIRGMOD_H +#include "be_types.h" #include "firm_types.h" -#include "beirg.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); /** @@ -55,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