Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
84a591c3
Commit
84a591c3
authored
Aug 27, 2012
by
Matthias Braun
Browse files
irop: add more generic function callbacks
parent
cf8ed161
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/irop.h
View file @
84a591c3
...
...
@@ -256,6 +256,8 @@ typedef struct {
verify_proj_node_func
verify_proj_node
;
/**< Verify the Proj node. */
dump_node_func
dump_node
;
/**< Dump a node. */
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. */
}
ir_op_ops
;
...
...
ir/ir/irop.c
View file @
84a591c3
...
...
@@ -112,8 +112,11 @@ void ir_clear_opcodes_generic_func(void)
for
(
i
=
0
;
i
<
n
;
++
i
)
{
ir_op
*
op
=
ir_get_opcode
(
i
);
if
(
op
!=
NULL
)
op
->
ops
.
generic
=
(
op_func
)
NULL
;
if
(
op
==
NULL
)
continue
;
op
->
ops
.
generic
=
(
op_func
)
NULL
;
op
->
ops
.
generic1
=
(
op_func
)
NULL
;
op
->
ops
.
generic2
=
(
op_func
)
NULL
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment