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
3d07130b
Commit
3d07130b
authored
Oct 06, 2006
by
Christian Würdig
Browse files
fixed n_res calculation
parent
b72981ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/scripts/generate_new_opcodes.pl
View file @
3d07130b
...
@@ -82,7 +82,7 @@ foreach my $op (keys(%nodes)) {
...
@@ -82,7 +82,7 @@ foreach my $op (keys(%nodes)) {
undef
my
@outs
;
undef
my
@outs
;
@outs
=
@
{
$n
{"
outs
"}
};
@outs
=
@
{
$n
{"
outs
"}
};
$num_outs
=
$#outs
;
$num_outs
=
$#outs
+
1
;
push
(
@obst_proj
,
"
\n
enum pn_
$op
{
\n
");
push
(
@obst_proj
,
"
\n
enum pn_
$op
{
\n
");
...
@@ -262,15 +262,15 @@ foreach my $op (keys(%nodes)) {
...
@@ -262,15 +262,15 @@ foreach my $op (keys(%nodes)) {
}
}
if
(
@out
)
{
if
(
@out
)
{
$
out_param
=
$out_req_var
.
"
,
"
.
(
$#out
+
1
)
;
$
n_res
=
$#out
+
1
;
$
n_res
=
$
#
out
;
$
out_param
=
"
$out
_req_var
,
$n_res
"
;
}
}
else
{
else
{
$out_param
=
"
NULL, 0
";
$out_param
=
"
NULL, 0
";
}
}
}
}
else
{
else
{
$in_param
=
"
NULL
";
$in_param
=
"
NULL
";
$out_param
=
"
NULL, 0
";
$out_param
=
"
NULL, 0
";
}
}
$temp
.=
"
\n
/* create node */
\n
";
$temp
.=
"
\n
/* create node */
\n
";
...
...
Write
Preview
Supports
Markdown
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