summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.h
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/beutil.h
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/beutil.h')
-rw-r--r--ir/be/beutil.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/ir/be/beutil.h b/ir/be/beutil.h
index 7c559e8..a0248f4 100644
--- a/ir/be/beutil.h
+++ b/ir/be/beutil.h
@@ -17,16 +17,24 @@
* PURPOSE.
*/
-
-#ifndef _BEUTIL_H
-#define _BEUTIL_H
+/**
+ * @file
+ * @brief Contains some useful function for the backend.
+ * @author Sebastian Hack
+ * @version $Id$
+ */
+#ifndef FIRM_BE_BEUTIL_H
+#define FIRM_BE_BEUTIL_H
#include "firm_config.h"
#include <stdio.h>
#include "pset.h"
+#include "irgraph.h"
#include "irnode.h"
+#include "irmode.h"
+
#include "bearch_t.h"
/* iterate over a list of ir_nodes linked by link field */
@@ -71,13 +79,13 @@ static INLINE int is_data_node(const ir_node *irn)
int i, n;
/* If the node produces a data value, return immediately. */
- if(is_firm_be_mode(get_irn_mode(irn)))
+ if (is_firm_be_mode(get_irn_mode(irn)))
return 1;
/* else check, if it takes a data value, if that is so, return */
for(i = 0, n = get_irn_arity(irn); i < n; ++i) {
ir_node *op = get_irn_n(irn, i);
- if(is_firm_be_mode(get_irn_mode(op)))
+ if (is_firm_be_mode(get_irn_mode(op)))
return 1;
}
@@ -155,4 +163,4 @@ ir_node *dom_up_search(pset *accept, ir_node *start_point_exclusive);
*/
ir_node *be_get_Proj_for_pn(const ir_node *irn, long pn);
-#endif /* _BEUTIL_H */
+#endif /* FIRM_BE_BEUTIL_H */