renamed all type * to ir_type *
[libfirm] / ir / ir / irop.c
index fdf97a3..23e9d89 100644 (file)
@@ -24,6 +24,7 @@
 
 # include "iropt_t.h"             /* for firm_set_default_operations */
 # include "irvrfy_t.h"
+# include "reassoc_t.h"
 
 # include "xmalloc.h"
 
@@ -178,6 +179,7 @@ new_ir_op(opcode code, const char *name, op_pin_state p,
   firm_set_default_operations(code, &res->ops);
   firm_set_default_copy_attr(code, &res->ops);
   firm_set_default_verifyer(code, &res->ops);
+  firm_set_default_reassoc(code, &res->ops);
 
   hook_new_ir_op(res);
   return res;
@@ -389,3 +391,8 @@ op_func (get_generic_function_ptr)(const ir_op *op) {
 void (set_generic_function_ptr)(ir_op *op, op_func func) {
   _set_generic_function_ptr(op, func);
 }
+
+/* Returns the ir_op_ops of an ir_op. */
+const ir_op_ops *(get_op_ops)(const ir_op *op) {
+  return _get_op_ops(op);
+}