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
ea93457f
Commit
ea93457f
authored
Mar 24, 2006
by
Christian Würdig
Browse files
added two new fucntions for getting first and last opcode
parent
369bbcfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/scripts/generate_new_opcodes.pl
View file @
ea93457f
...
...
@@ -292,6 +292,14 @@ print OUT<<ENDOFISIRN;
static opcode $arch\_opcode_start = -1;
static opcode $arch\_opcode_end = -1;
opcode get_$arch\_opcode_first(void) {
return $arch\_opcode_start + 1;
}
opcode get_$arch\_opcode_last(void) {
return $arch\_opcode_end - 1;
}
int is_$arch\_irn(const ir_node *node) {
opcode opc = get_irn_opcode(node);
...
...
@@ -343,7 +351,9 @@ close(OUT);
open
(
OUT
,
"
>
$target_h
")
||
die
("
Could not open
$target_h
, reason: $!
\n
");
print
OUT
"
int is_
$arch
\
_irn(const ir_node *node);
\n
";
print
OUT
"
int is_
$arch
\
_irn(const ir_node *node);
\n\n
";
print
OUT
"
opcode get_
$arch
\
_opcode_first(void);
\n
";
print
OUT
"
opcode get_
$arch
\
_opcode_last(void);
\n\n
";
print
OUT
@obst_header
;
close
(
OUT
);
...
...
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