projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sparc: va_arg functions may not use omit-fp
[libfirm]
/
ir
/
be
/
beinfo.h
diff --git
a/ir/be/beinfo.h
b/ir/be/beinfo.h
index
9599648
..
76a5eea
100644
(file)
--- a/
ir/be/beinfo.h
+++ b/
ir/be/beinfo.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-20
08
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-20
11
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-26,11
+26,8
@@
#ifndef FIRM_BE_BEINFO_H
#define FIRM_BE_BEINFO_H
#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.
/**
* The schedule structure which is present at each ir node.
@@
-38,28
+35,27
@@
typedef unsigned int sched_timestep_t;
* Currently, only basic blocks are scheduled. The list head of
* every block schedule list is the Block list.
*/
* 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. */
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;
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;
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)
{
static inline backend_info_t *be_get_info(const ir_node *node)
{
- backend_info_t *info = node->backend_info;
- return info;
+ return (backend_info_t*) node->backend_info;
}
void be_info_init(void);
}
void be_info_init(void);
@@
-69,6
+65,6
@@
void be_info_new_node(ir_node *node);
void be_info_duplicate(const ir_node *old_node, ir_node *new_node);
int be_info_initialized(const ir_graph *irg);
void be_info_duplicate(const ir_node *old_node, ir_node *new_node);
int be_info_initialized(const ir_graph *irg);
-int be_
info
_equal(const ir_node *node1, const ir_node *node2);
+int be_
nodes
_equal(const ir_node *node1, const ir_node *node2);
#endif
#endif