4 * @author Sebastian Hack
6 * Backend node support.
8 * Copyright (C) 2005 Universitaet Karlsruhe
9 * Released under the GPL
23 struct _be_node_factory_t {
24 const arch_isa_if_t *isa;
31 arch_irn_handler_t handler;
32 arch_irn_ops_t irn_ops;
35 typedef struct _be_node_factory_t be_node_factory_t;
37 be_node_factory_t *be_node_factory_init(be_node_factory_t *factory, const arch_isa_t *isa);
39 const arch_irn_handler_t *be_node_get_irn_handler(const be_node_factory_t *f);
41 ir_node *new_Spill(const be_node_factory_t *factory,
42 const arch_register_class_t *cls,
43 ir_graph *irg, ir_node *bl, ir_node *node_to_spill);
45 ir_node *new_Reload(const be_node_factory_t *factory,
46 const arch_register_class_t *cls, ir_graph *irg,
47 ir_node *bl, ir_mode *mode, ir_node *spill_node);
49 ir_node *new_Perm(const be_node_factory_t *factory,
50 const arch_register_class_t *cls,
51 ir_graph *irg, ir_node *bl, int arity, ir_node **in);
53 ir_node *new_Copy(const be_node_factory_t *factory,
54 const arch_register_class_t *cls,
55 ir_graph *irg, ir_node *block, ir_node *in);
58 const be_node_factory_t *factory,
59 const arch_env_t *arch_env,
63 const be_node_factory_t *factory,
64 const arch_env_t *arch_env,
65 const arch_register_class_t *cls,
66 ir_node *irn, int pos, ir_mode *mode, ir_node *spill);
68 int is_Spill(const be_node_factory_t *f, const ir_node *irn);
70 ir_node *insert_Perm_after(const be_main_env_t *env,
71 const arch_register_class_t *cls,
72 dom_front_info_t *dom_front,
75 #endif /* _BENODE_T_H */