projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed register name print
[libfirm]
/
ir
/
be
/
benode_t.h
diff --git
a/ir/be/benode_t.h
b/ir/be/benode_t.h
index
dd79fc6
..
3527fa4
100644
(file)
--- a/
ir/be/benode_t.h
+++ b/
ir/be/benode_t.h
@@
-12,24
+12,39
@@
#ifndef _BENODE_T_H
#define _BENODE_T_H
#ifndef _BENODE_T_H
#define _BENODE_T_H
+#include "pmap.h"
+
#include "irmode.h"
#include "irnode.h"
#include "irmode.h"
#include "irnode.h"
+#include "be_t.h"
#include "bearch.h"
#include "bearch.h"
+struct _be_node_factory_t {
+ const arch_isa_if_t *isa;
+
+ struct obstack obst;
+ set *ops;
+ pmap *irn_op_map;
+ pmap *reg_req_map;
+
+ arch_irn_handler_t handler;
+ arch_irn_ops_t irn_ops;
+};
+
typedef struct _be_node_factory_t be_node_factory_t;
typedef struct _be_node_factory_t be_node_factory_t;
-be_node_factory_t *be_n
ew_node_factory(const arch_isa_if
_t *isa);
+be_node_factory_t *be_n
ode_factory_init(be_node_factory_t *factory, const arch_isa
_t *isa);
const arch_irn_handler_t *be_node_get_irn_handler(const be_node_factory_t *f);
ir_node *new_Spill(const be_node_factory_t *factory,
const arch_register_class_t *cls,
const arch_irn_handler_t *be_node_get_irn_handler(const be_node_factory_t *f);
ir_node *new_Spill(const be_node_factory_t *factory,
const arch_register_class_t *cls,
- ir_graph *irg, ir_node *bl, ir_node *node_to_spill);
+ ir_graph *irg, ir_node *bl, ir_node *node_to_spill
, ir_node *ctx
);
ir_node *new_Reload(const be_node_factory_t *factory,
ir_node *new_Reload(const be_node_factory_t *factory,
- const arch_register_class_t *cls,
- ir_
graph *irg, ir_node *bl
, ir_node *spill_node);
+ const arch_register_class_t *cls,
ir_graph *irg,
+ ir_
node *bl, ir_mode *mode
, ir_node *spill_node);
ir_node *new_Perm(const be_node_factory_t *factory,
const arch_register_class_t *cls,
ir_node *new_Perm(const be_node_factory_t *factory,
const arch_register_class_t *cls,
@@
-39,15
+54,23
@@
ir_node *new_Copy(const be_node_factory_t *factory,
const arch_register_class_t *cls,
ir_graph *irg, ir_node *block, ir_node *in);
const arch_register_class_t *cls,
ir_graph *irg, ir_node *block, ir_node *in);
-ir_node *be_spill(const be_node_factory_t *factory, const arch_env_t *env, ir_node *irn);
-ir_node *be_reload(const be_node_factory_t *factory, const arch_env_t *env, ir_node *irn);
+ir_node *be_spill(
+ const be_node_factory_t *factory,
+ const arch_env_t *arch_env,
+ ir_node *irn,
+ ir_node *spill_ctx);
-int is_Spill(const be_node_factory_t *f, const ir_node *irn);
+ir_node *be_reload(
+ const be_node_factory_t *factory,
+ const arch_env_t *arch_env,
+ const arch_register_class_t *cls,
+ ir_node *irn, int pos, ir_mode *mode, ir_node *spill);
-i
r_node *get_Reload_Spill(ir_node *reload
);
+i
nt is_Spill(const be_node_factory_t *f, const ir_node *irn
);
-void insert_perm(const be_node_factory_t *factory,
- const arch_register_class_t *reg_class,
- ir_node *in_front_of);
+ir_node *insert_Perm_after(const be_main_env_t *env,
+ const arch_register_class_t *cls,
+ dom_front_info_t *dom_front,
+ ir_node *pos);
#endif /* _BENODE_T_H */
#endif /* _BENODE_T_H */