summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beirg.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-07-02 18:58:16 +0200
committerMatthias Braun <matze@braunis.de>2010-07-02 18:58:16 +0200
commit69849fc8fe452350bfbd2ad67f1898147fc906b4 (patch)
treedca97f03eca3f5353a35ce953c43f3bf2364b17e /ir/be/beirg.c
parent696520d4ae2d38da523bffcf0356aacc350f4845 (diff)
- change various be_get_birg_XXX functions to be_get_irg_XXX functions.
[r27690]
Diffstat (limited to 'ir/be/beirg.c')
-rw-r--r--ir/be/beirg.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/ir/be/beirg.c b/ir/be/beirg.c
index 262dadc..11d402c 100644
--- a/ir/be/beirg.c
+++ b/ir/be/beirg.c
@@ -32,24 +32,27 @@
#include "belive.h"
#include "bedomfront.h"
-be_lv_t *be_assure_liveness(be_irg_t *birg)
+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(be_irg_t *birg)
+void be_assure_dom_front(ir_graph *irg)
{
+ be_irg_t *birg = be_birg_from_irg(irg);
if (birg->dom_front != NULL)
return;
birg->dom_front = be_compute_dominance_frontiers(birg->irg);
}
-void be_invalidate_dom_front(be_irg_t *birg)
+void be_invalidate_dom_front(ir_graph *irg)
{
+ be_irg_t *birg = be_birg_from_irg(irg);
if (birg->dom_front == NULL)
return;
@@ -57,8 +60,9 @@ void be_invalidate_dom_front(be_irg_t *birg)
birg->dom_front = NULL;
}
-void be_free_birg(be_irg_t *birg)
+void be_free_birg(ir_graph *irg)
{
+ be_irg_t *birg = be_birg_from_irg(irg);
free_execfreq(birg->exec_freq);
birg->exec_freq = NULL;
@@ -72,5 +76,5 @@ void be_free_birg(be_irg_t *birg)
}
obstack_free(&birg->obst, NULL);
- birg->irg->be_data = NULL;
+ irg->be_data = NULL;
}