X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeirg.c;h=262dadc2c2e3baf43764c5d5e707548063fbf3fd;hb=c03098df320995c78fb51798f1933368777e2b24;hp=c9cd719445977538ce60ad7dc665e6dfb0e78aaf;hpb=39f3a8dbd0f00f90b7b12a849d1bf7b9c1329479;p=libfirm diff --git a/ir/be/beirg.c b/ir/be/beirg.c index c9cd71944..262dadc2c 100644 --- a/ir/be/beirg.c +++ b/ir/be/beirg.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -24,28 +24,20 @@ * @date 13.12.2006 * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "execfreq.h" -#include "beirg_t.h" +#include "beirg.h" +#include "absgraph.h" +#include "belive.h" +#include "bedomfront.h" -void be_assure_liveness(be_irg_t *birg) +be_lv_t *be_assure_liveness(be_irg_t *birg) { if (birg->lv != NULL) - return; - - birg->lv = be_liveness(birg->irg); -} - -void be_invalidate_liveness(be_irg_t *birg) -{ - if (birg->lv == NULL) - return; + return birg->lv; - be_liveness_free(birg->lv); - birg->lv = NULL; + return birg->lv = be_liveness(birg->irg); } void be_assure_dom_front(be_irg_t *birg) @@ -78,29 +70,7 @@ void be_free_birg(be_irg_t *birg) be_liveness_free(birg->lv); birg->lv = NULL; } -} - -ir_graph *(be_get_birg_irg)(const be_irg_t *birg) -{ - return _be_get_birg_irg(birg); -} -ir_exec_freq *(be_get_birg_exec_freq)(const be_irg_t *birg) -{ - return _be_get_birg_exec_freq(birg); -} - -be_lv_t *(be_get_birg_liveness)(const be_irg_t *birg) -{ - return _be_get_birg_liveness(birg); -} - -be_dom_front_info_t *(be_get_birg_dom_front)(const be_irg_t *birg) -{ - return _be_get_birg_dom_front(birg); -} - -const arch_env_t *(be_get_birg_arch_env)(const be_irg_t *birg) -{ - return _be_get_birg_arch_env(birg); + obstack_free(&birg->obst, NULL); + birg->irg->be_data = NULL; }