2 * Author: Matthias Braun
4 * Copyright: (c) Universitaet Karlsruhe
5 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
14 void be_assure_liveness(be_irg_t *birg)
19 birg->lv = be_liveness(birg->irg);
22 void be_invalidate_liveness(be_irg_t *birg)
27 be_liveness_free(birg->lv);
31 void be_assure_dom_front(be_irg_t *birg)
33 if(birg->dom_front != NULL)
36 birg->dom_front = be_compute_dominance_frontiers(birg->irg);
39 void be_invalidate_dom_front(be_irg_t *birg)
41 if(birg->dom_front == NULL)
44 be_free_dominance_frontiers(birg->dom_front);
45 birg->dom_front = NULL;
48 void be_free_birg(be_irg_t *birg)
50 free_execfreq(birg->exec_freq);
51 birg->exec_freq = NULL;
53 if(birg->dom_front != NULL) {
54 be_free_dominance_frontiers(birg->dom_front);
55 birg->dom_front = NULL;
57 if(birg->lv != NULL) {
58 be_liveness_free(birg->lv);
63 ir_graph* (be_get_birg_irg) (const be_irg_t *birg)
65 return _be_get_birg_irg(birg);
68 ir_exec_freq* (be_get_birg_exec_freq) (const be_irg_t *birg)
70 return _be_get_birg_exec_freq(birg);
73 be_lv_t* (be_get_birg_liveness) (const be_irg_t *birg)
75 return _be_get_birg_liveness(birg);
78 be_dom_front_info_t* (be_get_birg_dom_front) (const be_irg_t *birg)
80 return _be_get_birg_dom_front(birg);
83 const arch_env_t* (be_get_birg_arch_env) (const be_irg_t *birg)
85 return _be_get_birg_arch_env(birg);