summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beirg.h
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.h
parent696520d4ae2d38da523bffcf0356aacc350f4845 (diff)
- change various be_get_birg_XXX functions to be_get_irg_XXX functions.
[r27690]
Diffstat (limited to 'ir/be/beirg.h')
-rw-r--r--ir/be/beirg.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/ir/be/beirg.h b/ir/be/beirg.h
index 2f16db5..aa65327 100644
--- a/ir/be/beirg.h
+++ b/ir/be/beirg.h
@@ -32,16 +32,16 @@
#include "be_t.h"
#include "irtypes.h"
-be_lv_t *be_assure_liveness(be_irg_t *birg);
+be_lv_t *be_assure_liveness(ir_graph *irg);
-void be_assure_dom_front(be_irg_t *birg);
-void be_invalidate_dom_front(be_irg_t *birg);
+void be_assure_dom_front(ir_graph *irg);
+void be_invalidate_dom_front(ir_graph *irg);
/**
* frees all memory allocated by birg structures (liveness, dom_front, ...).
* The memory of the birg structure itself is not freed.
*/
-void be_free_birg(be_irg_t *birg);
+void be_free_birg(ir_graph *irg);
/**
* An ir_graph with additional analysis data about this irg. Also includes some
@@ -61,34 +61,35 @@ struct be_irg_t {
during code selection) */
};
-static inline be_lv_t *be_get_birg_liveness(const be_irg_t *birg)
+static inline be_irg_t *be_birg_from_irg(const ir_graph *irg)
{
- return birg->lv;
+ return (be_irg_t*) irg->be_data;
}
-static inline ir_exec_freq *be_get_birg_exec_freq(const be_irg_t *birg)
+static inline be_lv_t *be_get_irg_liveness(const ir_graph *irg)
{
- return birg->exec_freq;
+ return be_birg_from_irg(irg)->lv;
}
-static inline be_dom_front_info_t *be_get_birg_dom_front(const be_irg_t *birg)
+static inline ir_exec_freq *be_get_irg_exec_freq(const ir_graph *irg)
{
- return birg->dom_front;
+ return be_birg_from_irg(irg)->exec_freq;
}
-static inline ir_graph *be_get_birg_irg(const be_irg_t *birg)
+static inline be_dom_front_info_t *be_get_irg_dom_front(const ir_graph *irg)
{
- return birg->irg;
+ return be_birg_from_irg(irg)->dom_front;
}
-static inline const arch_env_t *be_get_birg_arch_env(const be_irg_t *birg)
+/** deprecated */
+static inline ir_graph *be_get_birg_irg(const be_irg_t *birg)
{
- return birg->main_env->arch_env;
+ return birg->irg;
}
-static inline be_irg_t *be_birg_from_irg(const ir_graph *irg)
+static inline const arch_env_t *be_get_irg_arch_env(const ir_graph *irg)
{
- return (be_irg_t*) irg->be_data;
+ return be_birg_from_irg(irg)->main_env->arch_env;
}
static inline struct obstack *be_get_birg_obst(const ir_graph *irg)