remove license stuff from files
[libfirm] / ir / be / beirg.c
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5
6 /**
7  * @file
8  * @brief       Backend irg - a ir_graph with additional analysis information.
9  * @author      Matthias Braun
10  * @date        13.12.2006
11  */
12 #include "config.h"
13
14 #include "execfreq.h"
15 #include "beirg.h"
16 #include "absgraph.h"
17 #include "belive.h"
18
19 void be_invalidate_live_sets(ir_graph *irg)
20 {
21         be_irg_t *birg = be_birg_from_irg(irg);
22         be_liveness_invalidate_sets(birg->lv);
23 }
24
25 void be_invalidate_live_chk(ir_graph *irg)
26 {
27         be_irg_t *birg = be_birg_from_irg(irg);
28         be_liveness_invalidate_chk(birg->lv);
29 }
30
31 void be_assure_live_sets(ir_graph *irg)
32 {
33         be_irg_t *birg = be_birg_from_irg(irg);
34         be_liveness_compute_sets(birg->lv);
35 }
36
37 void be_assure_live_chk(ir_graph *irg)
38 {
39         be_irg_t *birg = be_birg_from_irg(irg);
40         be_liveness_compute_chk(birg->lv);
41 }
42
43 void be_free_birg(ir_graph *irg)
44 {
45         be_irg_t *birg = be_birg_from_irg(irg);
46
47         if (birg->lv != NULL) {
48                 be_liveness_free(birg->lv);
49                 birg->lv = NULL;
50         }
51
52         obstack_free(&birg->obst, NULL);
53         irg->be_data = NULL;
54 }