X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeirg.c;h=c9cd719445977538ce60ad7dc665e6dfb0e78aaf;hb=dfc341ac6f54b4b0922d605e28333be76f487c68;hp=d498e3d1d6e1e4e9a9b89d299a0d661e64c23a89;hpb=205396c4f4f5abe7abd6dc2350c8c398a7623afc;p=libfirm diff --git a/ir/be/beirg.c b/ir/be/beirg.c index d498e3d1d..c9cd71944 100644 --- a/ir/be/beirg.c +++ b/ir/be/beirg.c @@ -1,8 +1,28 @@ /* - * Author: Matthias Braun - * Date: 13.12.2006 - * Copyright: (c) Universitaet Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. + */ + +/** + * @file + * @brief Backend irg - a ir_graph with additional analysis information. + * @author Matthias Braun + * @date 13.12.2006 + * @version $Id$ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -13,7 +33,7 @@ void be_assure_liveness(be_irg_t *birg) { - if(birg->lv != NULL) + if (birg->lv != NULL) return; birg->lv = be_liveness(birg->irg); @@ -21,7 +41,7 @@ void be_assure_liveness(be_irg_t *birg) void be_invalidate_liveness(be_irg_t *birg) { - if(birg->lv == NULL) + if (birg->lv == NULL) return; be_liveness_free(birg->lv); @@ -30,7 +50,7 @@ void be_invalidate_liveness(be_irg_t *birg) void be_assure_dom_front(be_irg_t *birg) { - if(birg->dom_front != NULL) + if (birg->dom_front != NULL) return; birg->dom_front = be_compute_dominance_frontiers(birg->irg); @@ -38,7 +58,7 @@ void be_assure_dom_front(be_irg_t *birg) void be_invalidate_dom_front(be_irg_t *birg) { - if(birg->dom_front == NULL) + if (birg->dom_front == NULL) return; be_free_dominance_frontiers(birg->dom_front); @@ -50,37 +70,37 @@ void be_free_birg(be_irg_t *birg) free_execfreq(birg->exec_freq); birg->exec_freq = NULL; - if(birg->dom_front != NULL) { + if (birg->dom_front != NULL) { be_free_dominance_frontiers(birg->dom_front); birg->dom_front = NULL; } - if(birg->lv != NULL) { + if (birg->lv != NULL) { be_liveness_free(birg->lv); birg->lv = NULL; } } -ir_graph* (be_get_birg_irg) (const be_irg_t *birg) +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) +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) +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) +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) +const arch_env_t *(be_get_birg_arch_env)(const be_irg_t *birg) { return _be_get_birg_arch_env(birg); }