4 * @author Sebastian Hack
6 * Backend node support.
8 * Copyright (C) 2005 Universitaet Karlsruhe
9 * Released under the GPL
20 typedef struct _be_node_factory_t be_node_factory_t;
22 be_node_factory_t *be_new_node_factory(const arch_isa_if_t *isa);
24 const arch_irn_handler_t *be_node_get_irn_handler(const be_node_factory_t *f);
26 ir_node *new_Spill(const be_node_factory_t *factory,
27 const arch_register_class_t *cls,
28 ir_graph *irg, ir_node *bl, ir_node *node_to_spill);
30 ir_node *new_Reload(const be_node_factory_t *factory,
31 const arch_register_class_t *cls,
32 ir_graph *irg, ir_node *bl, ir_node *spill_node);
34 ir_node *new_Perm(const be_node_factory_t *factory,
35 const arch_register_class_t *cls,
36 ir_graph *irg, ir_node *bl, int arity, ir_node **in);
38 ir_node *new_Copy(const be_node_factory_t *factory,
39 const arch_register_class_t *cls,
40 ir_graph *irg, ir_node *block, ir_node *in);
42 ir_node *be_spill(const be_node_factory_t *factory, const arch_env_t *env, ir_node *irn);
43 ir_node *be_reload(const be_node_factory_t *factory, const arch_env_t *env, ir_node *irn);
45 int is_Spill(const be_node_factory_t *f, const ir_node *irn);
47 ir_node *get_Reload_Spill(ir_node *reload);
49 void insert_perm(const be_node_factory_t *factory,
50 const arch_register_class_t *reg_class,
51 ir_node *in_front_of);
53 #endif /* _BENODE_T_H */