X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbearch.h;h=f81adc5e41642572b7a0cac83fa34a05b3004179;hb=bc7b5ee69d084e629590a6977b79a2fab7cd1aa1;hp=0f4a4f1fef5e6c17a0a49f046a825f558611d004;hpb=7ef676a9184d125c740cdca7acc91536dab0939c;p=libfirm diff --git a/ir/be/bearch.h b/ir/be/bearch.h index 0f4a4f1fe..f81adc5e4 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -90,17 +90,12 @@ extern char *arch_register_req_format(char *buf, size_t len, const arch_register * Certain node classes which are relevant for the register allocator. */ typedef enum arch_irn_class_t { - arch_irn_class_normal = 1 << 0, - arch_irn_class_spill = 1 << 1, - arch_irn_class_reload = 1 << 2, - arch_irn_class_remat = 1 << 3, - arch_irn_class_copy = 1 << 4, - arch_irn_class_perm = 1 << 5, - arch_irn_class_branch = 1 << 6, - arch_irn_class_call = 1 << 7, - arch_irn_class_load = 1 << 8, - arch_irn_class_store = 1 << 9, - arch_irn_class_stackparam = 1 << 10, + arch_irn_class_spill = 1 << 0, + arch_irn_class_reload = 1 << 1, + arch_irn_class_remat = 1 << 2, + arch_irn_class_copy = 1 << 3, + arch_irn_class_perm = 1 << 4, + arch_irn_class_branch = 1 << 5 } arch_irn_class_t; /** @@ -135,14 +130,7 @@ void arch_perform_memory_operand(ir_node *irn, ir_node *spill, unsign */ const arch_register_req_t *arch_get_register_req(const ir_node *irn, int pos); -/** - * Check if an operand is a register operand. - * @param irn The node. - * @param pos The position of the operand. - * @return 1, if the operand is significant for register allocation, 0 - * if not. - */ -int arch_is_register_operand(const ir_node *irn, int pos); +#define arch_get_register_req_out(irn) arch_get_register_req(irn, -1) /** * Get the number of allocatable registers concerning