-/**
- * The reassociation operation.
- * Called from a walker. Returns non-zero if
- * a reassociation rule was applied.
- */
-typedef int (*reassociate_func)(ir_node *n);
-
-/**
- * The copy attribute operation.
- * Copy the node attributes from a 'old' node to a 'new' one.
- */
-typedef void (*copy_attr_func)(const ir_node *old_node, ir_node *new_node);
-
-/** The type of an ir_op. */
-struct ir_op {
- opcode code; /**< the unique opcode of the op */
- ident *name; /**< the name of the op */
- size_t attr_size; /**< Space needed in memory for private attributes */
- op_pin_state op_pin_state_pinned; /**< How to deal with the node in cse, pre. */
- op_arity opar; /**< arity of operator. */
- int op_index; /**< the index of the first data operand, 0 for most cases, 1 for Div etc. */
- unsigned flags; /**< flags describing the behavior of the ir_op, a bitmaks of irop_flags */
-
- /* CallBacks */
- computed_value_func computed_value; /**< evaluates a node into a tarval if possible. */
- equivalent_node_func equivalent_node; /**< optimizes the node by returning an equivalent one. */
- transform_node_func transform_node; /**< optimizes the node by transforming it. */
- node_cmp_attr_func node_cmp_attr; /**< compares two node attributes. */
- reassociate_func reassociate; /**< reassociate a tree */
- copy_attr_func copy_attr; /**< copy node attributes */
-};
-
-/**
- * Creates a new ir operation.
- *
- * @param code the opcode, one of type \c opcode
- * @param name the printable name of this opcode
- * @param p wheater operations of this opcode are op_pin_state_pinned or floating
- * @param flags a bitmask of irop_flags describing the behavior of the ir operation
- * @param opar the parity of this ir operation
- * @param op_index if the parity is oparity_unary, oparity_binary or oparity_trinary the index
- * of the left operand
- * @param attr_size attribute size for this ir operation
- *
- * @return The genenerated ir operation.
- */
-ir_op * new_ir_op(opcode code, const char *name, op_pin_state p,
- unsigned flags, op_arity opar, int op_index, size_t attr_size);