diff options
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index 754cd34..d0aae69 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -13840,22 +13840,40 @@ rest_of_handle_combine (void) return 0; } -struct rtl_opt_pass pass_combine = +namespace { + +const pass_data pass_data_combine = { - { - RTL_PASS, - "combine", /* name */ - OPTGROUP_NONE, /* optinfo_flags */ - gate_handle_combine, /* gate */ - rest_of_handle_combine, /* execute */ - NULL, /* sub */ - NULL, /* next */ - 0, /* static_pass_number */ - TV_COMBINE, /* tv_id */ - PROP_cfglayout, /* properties_required */ - 0, /* properties_provided */ - 0, /* properties_destroyed */ - 0, /* todo_flags_start */ - TODO_df_finish | TODO_verify_rtl_sharing /* todo_flags_finish */ - } + RTL_PASS, /* type */ + "combine", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ + true, /* has_gate */ + true, /* has_execute */ + TV_COMBINE, /* tv_id */ + PROP_cfglayout, /* properties_required */ + 0, /* properties_provided */ + 0, /* properties_destroyed */ + 0, /* todo_flags_start */ + ( TODO_df_finish | TODO_verify_rtl_sharing ), /* todo_flags_finish */ }; + +class pass_combine : public rtl_opt_pass +{ +public: + pass_combine(gcc::context *ctxt) + : rtl_opt_pass(pass_data_combine, ctxt) + {} + + /* opt_pass methods: */ + bool gate () { return gate_handle_combine (); } + unsigned int execute () { return rest_of_handle_combine (); } + +}; // class pass_combine + +} // anon namespace + +rtl_opt_pass * +make_pass_combine (gcc::context *ctxt) +{ + return new pass_combine (ctxt); +} |