summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beirg.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-07-05 16:39:40 +0200
committerMatthias Braun <matze@braunis.de>2010-07-05 16:39:40 +0200
commit2922c6d1781518f7b564f28fad474d0e1c7aa7f2 (patch)
tree15ec61a6efc38da787582c630a781bdcac1c26f5 /ir/be/beirg.h
parent65a52a96e8ab7ed601d7f98c516d37c46b674b4a (diff)
convert a few more place that mention birg into generic ir_graph* stuff
[r27694]
Diffstat (limited to 'ir/be/beirg.h')
-rw-r--r--ir/be/beirg.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/ir/be/beirg.h b/ir/be/beirg.h
index 27f3ba1..3bf8152 100644
--- a/ir/be/beirg.h
+++ b/ir/be/beirg.h
@@ -48,17 +48,17 @@ void be_free_birg(ir_graph *irg);
* backend structures
*/
typedef struct be_irg_t {
- ir_graph *irg;
- be_main_env_t *main_env;
- be_abi_irg_t *abi;
- arch_code_generator_t *cg;
- ir_exec_freq *exec_freq;
- be_dom_front_info_t *dom_front;
- be_lv_t *lv;
- struct obstack obst; /**< birg obstack (mainly used to keep
- register constraints which we can't keep
- in the irg obst, because it gets replace
- during code selection) */
+ ir_graph *irg;
+ be_main_env_t *main_env;
+ be_abi_irg_t *abi;
+ arch_code_generator_t *cg;
+ ir_exec_freq *exec_freq;
+ be_dom_front_info_t *dom_front;
+ be_lv_t *lv;
+ struct obstack obst; /**< birg obstack (mainly used to keep
+ register constraints which we can't keep
+ in the irg obst, because it gets replace
+ during code selection) */
} be_irg_t;
static inline be_irg_t *be_birg_from_irg(const ir_graph *irg)
@@ -66,6 +66,11 @@ static inline be_irg_t *be_birg_from_irg(const ir_graph *irg)
return (be_irg_t*) irg->be_data;
}
+static inline be_main_env_t *be_get_irg_main_env(const ir_graph *irg)
+{
+ return be_birg_from_irg(irg)->main_env;
+}
+
static inline be_lv_t *be_get_irg_liveness(const ir_graph *irg)
{
return be_birg_from_irg(irg)->lv;