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
248af0e1
Commit
248af0e1
authored
May 11, 2011
by
Matthias Braun
Browse files
use irg from block instead of current_ir_graph in backend node constructors
parent
3383b280
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/scripts/generate_new_opcodes.pl
View file @
248af0e1
...
@@ -270,9 +270,10 @@ sub create_constructor {
...
@@ -270,9 +270,10 @@ sub create_constructor {
# emit constructor code
# emit constructor code
$temp
=
<<EOF;
$temp
=
<<EOF;
ir_
node
*
res
;
ir_
graph
*
irg = get_irn_irg(block)
;
ir_op *op = op_${arch}_${op};
ir_op *op = op_${arch}_${op};
arch_irn_flags_t flags = arch_irn_flags_none;
arch_irn_flags_t flags = arch_irn_flags_none;
ir_node *res;
backend_info_t *info;
backend_info_t *info;
EOF
EOF
...
@@ -450,7 +451,7 @@ EOF
...
@@ -450,7 +451,7 @@ EOF
$temp
.=
<<EOF;
$temp
.=
<<EOF;
/* create node */
/* create node */
assert(op != NULL);
assert(op != NULL);
res = new_ir_node(dbgi,
current_ir_graph
, block, op, mode, arity, in);
res = new_ir_node(dbgi,
irg
, block, op, mode, arity, in);
/* init node attributes */
/* init node attributes */
${attr_init_code}
${attr_init_code}
...
@@ -469,7 +470,7 @@ EOF
...
@@ -469,7 +470,7 @@ EOF
$temp
.=
<<EOF;
$temp
.=
<<EOF;
/* optimize node */
/* optimize node */
res = optimize_node(res);
res = optimize_node(res);
irn_verify_irg(res,
current_ir_graph
);
irn_verify_irg(res,
irg
);
return res;
return res;
EOF
EOF
...
...
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