summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beirg.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-07-02 18:58:18 +0200
committerMatthias Braun <matze@braunis.de>2010-07-02 18:58:18 +0200
commit7a178059678ff6c6094a7cd8fac5644367417102 (patch)
treece3e2c5bee4d6c409b96043cbda8384165c29505 /ir/be/beirg.h
parent18814151f8c0ea17b2a7bf84c82ee3c2e66d6a6b (diff)
change register allocator and related interfaces to use ir_graph* instead of be_irg_t*
[r27692]
Diffstat (limited to 'ir/be/beirg.h')
-rw-r--r--ir/be/beirg.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ir/be/beirg.h b/ir/be/beirg.h
index aa65327..3cdb218 100644
--- a/ir/be/beirg.h
+++ b/ir/be/beirg.h
@@ -81,6 +81,21 @@ static inline be_dom_front_info_t *be_get_irg_dom_front(const ir_graph *irg)
return be_birg_from_irg(irg)->dom_front;
}
+static inline be_abi_irg_t *be_get_irg_abi(const ir_graph *irg)
+{
+ return be_birg_from_irg(irg)->abi;
+}
+
+static inline be_options_t *be_get_irg_options(const ir_graph *irg)
+{
+ return be_birg_from_irg(irg)->main_env->options;
+}
+
+static inline arch_code_generator_t *be_get_irg_cg(const ir_graph *irg)
+{
+ return be_birg_from_irg(irg)->cg;
+}
+
/** deprecated */
static inline ir_graph *be_get_birg_irg(const be_irg_t *birg)
{