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
7adfc675
Commit
7adfc675
authored
Mar 05, 2006
by
Michael Beck
Browse files
clean up a bit
parent
b3453300
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
7adfc675
...
...
@@ -229,13 +229,18 @@ int get_ia32_reg_nr(ir_node *irn, int pos, int in_out) {
return
arch_register_get_index
(
reg
);
}
enum
io_direction
{
IN_REG
,
OUT_REG
};
/**
* Returns the name of the in register at position pos.
*/
const
char
*
get_ia32_reg_name
(
ir_node
*
irn
,
int
pos
,
int
in_out
)
{
static
const
char
*
get_ia32_reg_name
(
ir_node
*
irn
,
int
pos
,
enum
io_direction
in_out
)
{
const
arch_register_t
*
reg
;
if
(
in_out
==
1
)
{
if
(
in_out
==
IN_REG
)
{
reg
=
get_in_reg
(
irn
,
pos
);
}
else
{
...
...
@@ -258,12 +263,7 @@ static int ia32_get_reg_name(lc_appendable_t *app,
if
(
!
X
)
return
lc_arg_append
(
app
,
occ
,
"(null)"
,
6
);
if
(
occ
->
conversion
==
'S'
)
{
buf
=
get_ia32_reg_name
(
X
,
nr
,
1
);
}
else
{
/* 'D' */
buf
=
get_ia32_reg_name
(
X
,
nr
,
0
);
}
buf
=
get_ia32_reg_name
(
X
,
nr
,
occ
->
conversion
==
'S'
?
IN_REG
:
OUT_REG
);
lc_appendable_chadd
(
app
,
'%'
);
return
lc_arg_append
(
app
,
occ
,
buf
,
strlen
(
buf
));
...
...
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