# include "irop.h"
# include "tv.h"
+# include "irnode.h"
/** The allowed parities */
typedef enum {
* The reassociation operation.
* Called from a walker. Returns non-zero if
* a reassociation rule was applied.
+ * The pointer n is set to the newly created node, if some reassociation
+ * was applied.
*/
-typedef int (*reassociate_func)(ir_node *n);
+typedef int (*reassociate_func)(ir_node **n);
/**
* The copy attribute operation.
return op->code;
}
-static INLINE ident *__get_op_ident(ir_op *op){
+static INLINE ident *__get_op_ident(const ir_op *op){
return op->name;
}