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
ed7cc1da
Commit
ed7cc1da
authored
Aug 14, 2011
by
Matthias Braun
Browse files
remove old type
parent
37a95d35
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/bearch.h
View file @
ed7cc1da
...
...
@@ -210,14 +210,6 @@ void arch_irn_add_flags(ir_node *node, arch_irn_flags_t flags);
#define arch_irn_is(irn, flag) ((arch_irn_get_flags(irn) & arch_irn_flags_ ## flag) != 0)
/**
* Get the operations of an irn.
* @param self The handler from which the method is invoked.
* @param irn Some node.
* @return Operations for that irn.
*/
typedef
const
void
*
(
arch_get_irn_ops_t
)(
const
ir_node
*
irn
);
/**
* Initialize the architecture environment struct.
* @param isa The isa which shall be put into the environment.
...
...
ir/be/sparc/sparc_emitter.c
View file @
ed7cc1da
...
...
@@ -64,15 +64,6 @@ static const ir_node *delay_slot_filler; /**< this node has been choosen to fill
static
void
sparc_emit_node
(
const
ir_node
*
node
);
/**
* Returns the register at in position pos.
*/
static
const
arch_register_t
*
get_in_reg
(
const
ir_node
*
node
,
int
pos
)
{
ir_node
*
op
=
get_irn_n
(
node
,
pos
);
return
arch_get_irn_register
(
op
);
}
void
sparc_emit_immediate
(
const
ir_node
*
node
)
{
const
sparc_attr_t
*
attr
=
get_sparc_attr_const
(
node
);
...
...
@@ -112,14 +103,14 @@ void sparc_emit_high_immediate(const ir_node *node)
void
sparc_emit_source_register
(
const
ir_node
*
node
,
int
pos
)
{
const
arch_register_t
*
reg
=
get_in_reg
(
node
,
pos
);
const
arch_register_t
*
reg
=
arch_
get_i
r
n_reg
ister_in
(
node
,
pos
);
be_emit_char
(
'%'
);
be_emit_string
(
arch_register_get_name
(
reg
));
}
void
sparc_emit_dest_register
(
const
ir_node
*
node
,
int
pos
)
{
const
arch_register_t
*
reg
=
arch_
irn_get
_register
(
node
,
pos
);
const
arch_register_t
*
reg
=
arch_
get_irn
_register
_out
(
node
,
pos
);
be_emit_char
(
'%'
);
be_emit_string
(
arch_register_get_name
(
reg
));
}
...
...
@@ -131,7 +122,7 @@ void sparc_emit_dest_register(const ir_node *node, int pos)
*/
void
sparc_emit_reg_or_imm
(
const
ir_node
*
node
,
int
pos
)
{
if
(
arch_
irn_get
_flags
(
node
)
&
((
arch_irn_flags_t
)
sparc_arch_irn_flag_immediate_form
))
{
if
(
arch_
get_irn
_flags
(
node
)
&
((
arch_irn_flags_t
)
sparc_arch_irn_flag_immediate_form
))
{
// we have a imm input
sparc_emit_immediate
(
node
);
}
else
{
...
...
@@ -300,8 +291,8 @@ static bool is_no_instruction(const ir_node *node)
{
/* copies are nops if src_reg == dest_reg */
if
(
be_is_Copy
(
node
)
||
be_is_CopyKeep
(
node
))
{
const
arch_register_t
*
src_reg
=
get_in_reg
(
node
,
0
);
const
arch_register_t
*
dest_reg
=
arch_
irn_get
_register
(
node
,
0
);
const
arch_register_t
*
src_reg
=
arch_
get_i
r
n_reg
ister_in
(
node
,
0
);
const
arch_register_t
*
dest_reg
=
arch_
get_irn
_register
_out
(
node
,
0
);
if
(
src_reg
==
dest_reg
)
return
true
;
...
...
@@ -338,7 +329,7 @@ static bool emits_multiple_instructions(const ir_node *node)
return
true
;
if
(
is_sparc_Call
(
node
))
{
return
arch_
irn_get
_flags
(
node
)
&
sparc_arch_irn_flag_aggregate_return
;
return
arch_
get_irn
_flags
(
node
)
&
sparc_arch_irn_flag_aggregate_return
;
}
return
is_sparc_Mulh
(
node
)
||
is_sparc_SDiv
(
node
)
||
is_sparc_UDiv
(
node
)
...
...
@@ -536,7 +527,7 @@ static void emit_sparc_Call(const ir_node *node)
fill_delay_slot
();
if
(
arch_
irn_get
_flags
(
node
)
&
sparc_arch_irn_flag_aggregate_return
)
{
if
(
arch_
get_irn
_flags
(
node
)
&
sparc_arch_irn_flag_aggregate_return
)
{
be_emit_cstring
(
"
\t
unimp 8
\n
"
);
be_emit_write_line
();
}
...
...
@@ -865,8 +856,8 @@ static const arch_register_t *get_next_fp_reg(const arch_register_t *reg)
static
void
emit_be_Copy
(
const
ir_node
*
node
)
{
ir_mode
*
mode
=
get_irn_mode
(
node
);
const
arch_register_t
*
src_reg
=
get_in_reg
(
node
,
0
);
const
arch_register_t
*
dst_reg
=
arch_
irn_get
_register
(
node
,
0
);
const
arch_register_t
*
src_reg
=
arch_
get_i
r
n_reg
ister_in
(
node
,
0
);
const
arch_register_t
*
dst_reg
=
arch_
get_irn
_register
_out
(
node
,
0
);
if
(
src_reg
==
dst_reg
)
return
;
...
...
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