Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
023d4ee9
Commit
023d4ee9
authored
Mar 06, 2007
by
Christian Würdig
Browse files
call hook_set_irn_n when adding new inputs
[r8690]
parent
613a07e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/ircons.c
View file @
023d4ee9
...
...
@@ -35,6 +35,7 @@
#include "irop_t.h"
#include "iropt_t.h"
#include "irgmod.h"
#include "irhooks.h"
#include "array.h"
#include "irbackedge_t.h"
#include "irflag_t.h"
...
...
@@ -3031,8 +3032,11 @@ add_immBlock_pred(ir_node *block, ir_node *jmp)
assert
(
0
&&
"Error: Block already matured!
\n
"
);
}
else
{
int
n
=
ARR_LEN
(
block
->
in
)
-
1
;
assert
(
jmp
!=
NULL
);
ARR_APP1
(
ir_node
*
,
block
->
in
,
jmp
);
/* Call the hook */
hook_set_irn_n
(
block
,
n
,
jmp
,
NULL
);
}
}
/* add_immBlock_pred */
...
...
ir/ir/irnode.c
View file @
023d4ee9
...
...
@@ -312,6 +312,9 @@ int add_irn_n(ir_node *node, ir_node *in)
ARR_APP1
(
ir_node
*
,
node
->
in
,
in
);
edges_notify_edge
(
node
,
pos
,
node
->
in
[
pos
+
1
],
NULL
,
irg
);
/* Call the hook */
hook_set_irn_n
(
node
,
pos
,
node
->
in
[
pos
+
1
],
NULL
);
return
pos
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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