X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeirg.c;h=36504b558df677c73056e623ff353c6c3af371cb;hb=5474a1c188c9d59eea2c915515980cd9cbab58d8;hp=11d402c66944ae0917d1b451712eeed8917cf95d;hpb=1a3b7d363474ab544c13093a2f0b578718d37c7a;p=libfirm diff --git a/ir/be/beirg.c b/ir/be/beirg.c index 11d402c66..36504b558 100644 --- a/ir/be/beirg.c +++ b/ir/be/beirg.c @@ -22,7 +22,6 @@ * @brief Backend irg - a ir_graph with additional analysis information. * @author Matthias Braun * @date 13.12.2006 - * @version $Id$ */ #include "config.h" @@ -32,15 +31,6 @@ #include "belive.h" #include "bedomfront.h" -be_lv_t *be_assure_liveness(ir_graph *irg) -{ - be_irg_t *birg = be_birg_from_irg(irg); - if (birg->lv != NULL) - return birg->lv; - - return birg->lv = be_liveness(birg->irg); -} - void be_assure_dom_front(ir_graph *irg) { be_irg_t *birg = be_birg_from_irg(irg); @@ -60,6 +50,30 @@ void be_invalidate_dom_front(ir_graph *irg) birg->dom_front = NULL; } +void be_invalidate_live_sets(ir_graph *irg) +{ + be_irg_t *birg = be_birg_from_irg(irg); + be_liveness_invalidate_sets(birg->lv); +} + +void be_invalidate_live_chk(ir_graph *irg) +{ + be_irg_t *birg = be_birg_from_irg(irg); + be_liveness_invalidate_chk(birg->lv); +} + +void be_assure_live_sets(ir_graph *irg) +{ + be_irg_t *birg = be_birg_from_irg(irg); + be_liveness_compute_sets(birg->lv); +} + +void be_assure_live_chk(ir_graph *irg) +{ + be_irg_t *birg = be_birg_from_irg(irg); + be_liveness_compute_chk(birg->lv); +} + void be_free_birg(ir_graph *irg) { be_irg_t *birg = be_birg_from_irg(irg);