projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3383b28
)
use irg from block instead of current_ir_graph in backend node constructors
author
Matthias Braun
<matze@braunis.de>
Wed, 11 May 2011 12:19:16 +0000
(14:19 +0200)
committer
Matthias Braun
<matze@braunis.de>
Mon, 23 May 2011 12:20:56 +0000
(14:20 +0200)
ir/be/scripts/generate_new_opcodes.pl
patch
|
blob
|
history
diff --git
a/ir/be/scripts/generate_new_opcodes.pl
b/ir/be/scripts/generate_new_opcodes.pl
index
a6fdad0
..
3e353e6
100755
(executable)
--- a/
ir/be/scripts/generate_new_opcodes.pl
+++ b/
ir/be/scripts/generate_new_opcodes.pl
@@
-270,9
+270,10
@@
sub create_constructor {
# emit constructor code
$temp = <<EOF;
# emit constructor code
$temp = <<EOF;
- ir_
node *res
;
+ ir_
graph *irg = get_irn_irg(block)
;
ir_op *op = op_${arch}_${op};
arch_irn_flags_t flags = arch_irn_flags_none;
ir_op *op = op_${arch}_${op};
arch_irn_flags_t flags = arch_irn_flags_none;
+ ir_node *res;
backend_info_t *info;
EOF
backend_info_t *info;
EOF
@@
-450,7
+451,7
@@
EOF
$temp .= <<EOF;
/* create node */
assert(op != NULL);
$temp .= <<EOF;
/* create node */
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 */
${attr_init_code}
/* init node attributes */
${attr_init_code}
@@
-469,7
+470,7
@@
EOF
$temp .= <<EOF;
/* optimize node */
res = optimize_node(res);
$temp .= <<EOF;
/* optimize node */
res = optimize_node(res);
- irn_verify_irg(res,
current_ir_graph
);
+ irn_verify_irg(res,
irg
);
return res;
EOF
return res;
EOF