summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beinfo.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2009-08-05 12:53:46 +0200
committerMatthias Braun <matze@braunis.de>2009-08-05 12:53:46 +0200
commitd2c1b0191844c3c23731158a153838d570dcd65a (patch)
tree4f9d8bc50bb539d254278bd7e9afcede12c45931 /ir/be/beinfo.h
parentf0c2631791600458aa43e4fa39cf3b39358d4d3b (diff)
reorganize backend headers (kill some _t variants in favor of a be_types.h)
[r26317]
Diffstat (limited to 'ir/be/beinfo.h')
-rw-r--r--ir/be/beinfo.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/ir/be/beinfo.h b/ir/be/beinfo.h
index 9599648..a7a4a0c 100644
--- a/ir/be/beinfo.h
+++ b/ir/be/beinfo.h
@@ -26,11 +26,8 @@
#ifndef FIRM_BE_BEINFO_H
#define FIRM_BE_BEINFO_H
-#include "bearch.h"
-#include "irphase_t.h"
-#include "irphases_t.h"
-
-typedef unsigned int sched_timestep_t;
+#include "be_types.h"
+#include "irnode_t.h"
/**
* The schedule structure which is present at each ir node.
@@ -38,23 +35,23 @@ typedef unsigned int sched_timestep_t;
* Currently, only basic blocks are scheduled. The list head of
* every block schedule list is the Block list.
*/
-typedef struct sched_info_t {
+struct sched_info_t {
ir_node *next;
ir_node *prev;
sched_timestep_t time_step; /**< If a is after b in a schedule, its time step is larger than b's. */
-} sched_info_t;
+};
-typedef struct reg_out_info_t {
+struct reg_out_info_t {
const arch_register_t *reg;
const arch_register_req_t *req;
-} reg_out_info_t;
+};
-typedef struct backend_info_t {
+struct backend_info_t {
sched_info_t sched_info;
const arch_register_req_t **in_reqs;
reg_out_info_t *out_infos;
arch_irn_flags_t flags;
-} backend_info_t;
+};
static inline backend_info_t *be_get_info(const ir_node *node)
{