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
c3ea5262
Commit
c3ea5262
authored
Aug 04, 2006
by
Matthias Braun
Browse files
fix a few warnings
parent
b1270e2d
Changes
2
Show whitespace changes
Inline
Side-by-side
ir/be/mips/mips_emitter.c
View file @
c3ea5262
...
...
@@ -332,18 +332,6 @@ static char *get_unique_label(char *buf, size_t buflen, const char *prefix)
return
buf
;
}
/**
* Returns the target label for a control flow node.
*/
static
char
*
get_cfop_target
(
const
ir_node
*
irn
,
char
*
buf
)
{
ir_node
*
bl
=
get_irn_link
(
irn
);
snprintf
(
buf
,
SNPRINTF_BUF_LEN
,
"BLOCK_%ld"
,
get_irn_node_nr
(
bl
));
return
buf
;
}
/************************************************************************/
/* ABI Handling */
/************************************************************************/
...
...
@@ -388,7 +376,7 @@ static void mips_emit_Perm(const ir_node *node, mips_emit_env_t *env)
{
FILE
*
F
=
env
->
out
;
assert
(
/*get_irn_n_outs(node) == 2 &&*/
get_irn_arity
(
node
)
==
2
);
assert
(
get_irn_arity
(
node
)
==
2
);
lc_efprintf
(
mips_get_arg_env
(),
F
,
"
\t
xor %1S, %1S, %2S
\t\t\t
# perm
\n
"
,
node
,
node
,
node
);
mips_emit_nops
(
F
,
3
);
...
...
@@ -401,7 +389,7 @@ static void mips_emit_Perm(const ir_node *node, mips_emit_env_t *env)
static
void
mips_emit_Spill
(
const
ir_node
*
node
,
mips_emit_env_t
*
env
)
{
FILE
*
F
=
env
->
out
;
entity
*
ent
=
be_get_
spill
_entity
(
node
);
entity
*
ent
=
be_get_
frame
_entity
(
node
);
lc_efprintf
(
mips_get_arg_env
(),
F
,
"
\t
sw %1S, %d($fp)
\n
"
,
node
,
get_entity_offset_bytes
(
ent
));
}
...
...
@@ -409,7 +397,7 @@ static void mips_emit_Spill(const ir_node* node, mips_emit_env_t *env)
static
void
mips_emit_Reload
(
const
ir_node
*
node
,
mips_emit_env_t
*
env
)
{
FILE
*
F
=
env
->
out
;
entity
*
ent
=
be_get_
spill
_entity
(
node
);
entity
*
ent
=
be_get_
frame
_entity
(
node
);
lc_efprintf
(
mips_get_arg_env
(),
F
,
"
\t
lw %1D, %d($fp)
\n
"
,
node
,
get_entity_offset_bytes
(
ent
));
}
...
...
@@ -642,6 +630,7 @@ void mips_register_emitters(void)
op_be_RegParams
->
ops
.
generic
=
(
op_func
)
mips_emit_nothing
;
op_be_Spill
->
ops
.
generic
=
(
op_func
)
mips_emit_Spill
;
op_be_Reload
->
ops
.
generic
=
(
op_func
)
mips_emit_Reload
;
op_be_Perm
->
ops
.
generic
=
(
op_func
)
mips_emit_Perm
;
op_Start
->
ops
.
generic
=
(
op_func
)
mips_emit_nothing
;
op_Proj
->
ops
.
generic
=
(
op_func
)
mips_emit_nothing
;
...
...
ir/be/mips/mips_scheduler.c
View file @
c3ea5262
...
...
@@ -71,6 +71,8 @@ static void mips_scheduler_finish_block(void* graph_env)
// attach last nop to end node (so that firm doesn't discard it)
if
(
sched_env
->
last_nop
!=
NULL
)
{
ir_node
*
end
=
get_irg_end
(
get_irn_irg
(
sched_env
->
block
));
(
void
)
end
;
// TODO
}
sched_env
->
block
=
NULL
;
}
...
...
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