Commit 4cd9a0a9 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Remove the thin wrapper macro arch_register_class_flags().

parent 55d13a91
......@@ -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)
{
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment