Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
3c2db04e
Commit
3c2db04e
authored
Nov 12, 2014
by
Christoph Mallon
Browse files
be: Remove the thin wrapper macro arch_register_class_mode().
parent
553f4e1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/be/bearch.h
View file @
3c2db04e
...
...
@@ -239,9 +239,6 @@ struct arch_register_class_t {
/** return the number of registers in this register class */
#define arch_register_class_n_regs(cls) ((cls)->n_regs)
/** return the largest mode of this register class */
#define arch_register_class_mode(cls) ((cls)->mode)
/** return the name of this register class */
#define arch_register_class_name(cls) ((cls)->name)
...
...
ir/be/benode.c
View file @
3c2db04e
...
...
@@ -527,12 +527,10 @@ static unsigned get_start_reg_index(ir_graph *irg, const arch_register_t *reg)
ir_node
*
be_get_initial_reg_value
(
ir_graph
*
irg
,
const
arch_register_t
*
reg
)
{
unsigned
i
=
get_start_reg_index
(
irg
,
reg
);
ir_node
*
start
=
get_irg_start
(
irg
);
ir_mode
*
mode
=
arch_register_class_mode
(
reg
->
cls
);
ir_node
*
const
proj
=
get_Proj_for_pn
(
start
,
i
);
return
proj
?
proj
:
new_r_Proj
(
start
,
mode
,
i
);
unsigned
const
i
=
get_start_reg_index
(
irg
,
reg
);
ir_node
*
const
start
=
get_irg_start
(
irg
);
ir_node
*
const
proj
=
get_Proj_for_pn
(
start
,
i
);
return
proj
?
proj
:
new_r_Proj
(
start
,
reg
->
cls
->
mode
,
i
);
}
static
ir_entity
*
dummy_get_frame_entity
(
const
ir_node
*
node
)
...
...
ir/be/bespillutil.c
View file @
3c2db04e
...
...
@@ -1325,7 +1325,7 @@ static void add_missing_keep_walker(ir_node *node, void *data)
value
=
existing_projs
[
i
];
if
(
value
==
NULL
)
value
=
new_r_Proj
(
node
,
arch_register_class_mode
(
cls
)
,
i
);
value
=
new_r_Proj
(
node
,
cls
->
mode
,
i
);
last_keep
=
add_to_keep
(
last_keep
,
cls
,
value
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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