X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbenode_t.h;h=ffc0fb0504d007d4d093082a7da69cf0612e94da;hb=2669742071b00949c6a5102f39b7df7fd7d3e3fb;hp=54abbce066a243e23048b623446a5ca17359a5a4;hpb=f7c6bc17c4d0905181f24e1272f7f4fe4a6bdd13;p=libfirm diff --git a/ir/be/benode_t.h b/ir/be/benode_t.h index 54abbce06..ffc0fb050 100644 --- a/ir/be/benode_t.h +++ b/ir/be/benode_t.h @@ -505,23 +505,21 @@ void be_node_set_reg_class(ir_node *irn, int pos, const arch_register_class_t *c void be_node_set_req_type(ir_node *irn, int pos, arch_register_req_type_t type); /** - * Make a new phi handler. - * @param env The architecture environment. - * @return A new phi handler. + * Initialize the Phi handler. + * @param env The be_main environment. */ -arch_irn_handler_t *be_phi_handler_new(const arch_env_t *arch_env); +void be_phi_handler_new(be_main_env_t *env); /** - * Free a phi handler. - * @param handler The handler to free. + * Destroy the Phi handler. */ -void be_phi_handler_free(arch_irn_handler_t *handler); +void be_phi_handler_free(void); /** - * Reset the register data in the phi handler. + * Reset the register data in the Phi handler. * This should be called on each new graph and deletes the register information of the current graph. */ -void be_phi_handler_reset(arch_irn_handler_t *handler); +void be_phi_handler_reset(void); /** * Set the register requirements for a phi node. @@ -536,9 +534,9 @@ void be_set_phi_flags(const arch_env_t *arch_env, ir_node *phi, arch_irn_flags_t flags); /** - * irn handler for common be nodes. + * irn handler for common be nodes and Phi's. */ -extern const arch_irn_handler_t be_node_irn_handler; +const void *be_node_get_irn_ops(const ir_node *irn); static INLINE int be_is_Spill (const ir_node *irn) { return get_irn_opcode(irn) == beo_Spill ; } static INLINE int be_is_Reload (const ir_node *irn) { return get_irn_opcode(irn) == beo_Reload ; }