X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firop_t.h;h=8d008e6569c35375b996ce09f8a251c6b6a372fb;hb=5244f95767968d8b59ef3f2031612b86474e2455;hp=cdb68fb83d7929353b4905d71b4b9ce49f5f9536;hpb=bb9f2e36362333c6635b89f5258171b06c786608;p=libfirm diff --git a/ir/ir/irop_t.h b/ir/ir/irop_t.h index cdb68fb83..8d008e656 100644 --- a/ir/ir/irop_t.h +++ b/ir/ir/irop_t.h @@ -48,7 +48,8 @@ void finish_op(void); * @param old_node the old node from which the attributes are read * @param new_node the new node to which the attributes are written */ -void default_copy_attr(const ir_node *old_node, ir_node *new_node); +void default_copy_attr(ir_graph *irg, const ir_node *old_node, + ir_node *new_node); /** * Returns the attribute size of nodes of this opcode. @@ -66,14 +67,6 @@ static inline int is_op_cfopcode(const ir_op *op) { return op->flags & irop_flag_cfopcode; } -/** - * Returns non-zero if the operation manipulates interprocedural control flow: - * CallBegin, EndReg, EndExcept - */ -static inline int is_ip_cfopcode(const ir_op *op) { - return op->flags & irop_flag_ip_cfopcode; -} - /** Returns non-zero if operation is commutative */ static inline int is_op_commutative(const ir_op *op) { return op->flags & irop_flag_commutative; @@ -128,6 +121,11 @@ static inline int is_op_machine_operand(const ir_op *op) { return op->flags & irop_flag_machine_op; } +/** Returns non-zero if operation is CSE neutral */ +static inline int is_op_cse_neutral(const ir_op *op) { + return op->flags & irop_flag_cse_neutral; +} + /** Returns non-zero if operation is a machine user op number n */ static inline int is_op_machine_user(const ir_op *op, unsigned n) { return op->flags & (irop_flag_user << n);