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
4cd9a0a9
Commit
4cd9a0a9
authored
Nov 12, 2014
by
Christoph Mallon
Browse files
be: Remove the thin wrapper macro arch_register_class_flags().
parent
55d13a91
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/be/bearch.h
View file @
4cd9a0a9
...
...
@@ -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 register class flags */
#define arch_register_class_flags(cls) ((cls)->flags)
static
inline
const
arch_register_t
*
arch_register_for_index
(
const
arch_register_class_t
*
cls
,
unsigned
idx
)
{
...
...
ir/be/bechordal_main.c
View file @
4cd9a0a9
...
...
@@ -284,7 +284,7 @@ static void be_ra_chordal_main(ir_graph *irg)
const
arch_env_t
*
arch_env
=
be_get_irg_arch_env
(
irg
);
for
(
int
j
=
0
,
m
=
arch_env
->
n_register_classes
;
j
<
m
;
++
j
)
{
const
arch_register_class_t
*
cls
=
&
arch_env
->
register_classes
[
j
];
if
(
arch_register_class_flags
(
cls
)
&
arch_register_class_flag_manual_ra
)
if
(
cls
->
flags
&
arch_register_class_flag_manual_ra
)
continue
;
stat_ev_ctx_push_str
(
"bechordal_cls"
,
cls
->
name
);
...
...
ir/be/beprefalloc.c
View file @
4cd9a0a9
...
...
@@ -1823,7 +1823,7 @@ static void be_pref_alloc(ir_graph *new_irg)
int
n_cls
=
arch_env
->
n_register_classes
;
for
(
int
c
=
0
;
c
<
n_cls
;
++
c
)
{
cls
=
&
arch_env
->
register_classes
[
c
];
if
(
arch_register_class_flags
(
cls
)
&
arch_register_class_flag_manual_ra
)
if
(
cls
->
flags
&
arch_register_class_flag_manual_ra
)
continue
;
stat_ev_ctx_push_str
(
"regcls"
,
cls
->
name
);
...
...
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