Commit 84a591c3 authored by Matthias Braun's avatar Matthias Braun
Browse files

irop: add more generic function callbacks

parent cf8ed161
...@@ -256,6 +256,8 @@ typedef struct { ...@@ -256,6 +256,8 @@ typedef struct {
verify_proj_node_func verify_proj_node; /**< Verify the Proj node. */ verify_proj_node_func verify_proj_node; /**< Verify the Proj node. */
dump_node_func dump_node; /**< Dump a node. */ dump_node_func dump_node; /**< Dump a node. */
op_func generic; /**< A generic function pointer. */ op_func generic; /**< A generic function pointer. */
op_func generic1; /**< A generic function pointer. */
op_func generic2; /**< A generic function pointer. */
const arch_irn_ops_t *be_ops; /**< callbacks used by the backend. */ const arch_irn_ops_t *be_ops; /**< callbacks used by the backend. */
} ir_op_ops; } ir_op_ops;
......
...@@ -112,8 +112,11 @@ void ir_clear_opcodes_generic_func(void) ...@@ -112,8 +112,11 @@ void ir_clear_opcodes_generic_func(void)
for (i = 0; i < n; ++i) { for (i = 0; i < n; ++i) {
ir_op *op = ir_get_opcode(i); ir_op *op = ir_get_opcode(i);
if (op != NULL) if (op == NULL)
continue;
op->ops.generic = (op_func)NULL; op->ops.generic = (op_func)NULL;
op->ops.generic1 = (op_func)NULL;
op->ops.generic2 = (op_func)NULL;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment