summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beirg.c
diff options
context:
space:
mode:
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>2007-04-30 13:19:41 +0200
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>2007-04-30 13:19:41 +0200
commit39f3a8dbd0f00f90b7b12a849d1bf7b9c1329479 (patch)
tree9bbb72511b00facbaa76aac4b30b98e6dd2a6265 /ir/be/beirg.c
parent5ebb1e647e34174e9646bed877b636163df153c8 (diff)
unified mein file comments
unified .h #ifndef ... #define ... changed some indenting removed some unused code removed beuses_t.h as unused header [r13559]
Diffstat (limited to 'ir/be/beirg.c')
-rw-r--r--ir/be/beirg.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/ir/be/beirg.c b/ir/be/beirg.c
index 558f79a..c9cd719 100644
--- a/ir/be/beirg.c
+++ b/ir/be/beirg.c
@@ -17,11 +17,12 @@
* PURPOSE.
*/
-/*
- * Author: Matthias Braun
- * Date: 13.12.2006
- * Copyright: (c) Universitaet Karlsruhe
- * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
+/**
+ * @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"
@@ -32,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);
@@ -40,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);
@@ -49,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);
@@ -57,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);
@@ -69,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);
}