Files
mercury/scripts/remove____from_compiler.sedscript
Dylan Shuttleworth c15baa3537 Some scripts to change some labels of the format foo__bar to
Estimated hours taken: 10

Some scripts to change some labels of the format foo__bar to
module__foo_bar, in both the library and the compiler.  None of these
scripts are executable, and need to be run with
~fjh/bin/scripts/apply_sed_script.  The scope of files listed below is
an indication of the files affected when these scripts are run on
mercury/*/*.[mp]*.

scripts/remove____from_compiler.sedscript
	Remove instances of foo__bar from .m and .pp files in the
	compiler/ directory.

scripts/remove____from_library.sedscript
	romove instances of foo__bar from .m files in the library/
	and compiler/ directories.

scripts/replace_compiler___.sedscript
	Undo the compiler-specific changes above.

scripts/replace_library___.sedscript
	Undo the library changes in the compiler/ and library/
	directories.
1995-12-01 02:27:20 +00:00

124 lines
5.3 KiB
Plaintext

s/\<is_builtin__/hlds__is_builtin_/g
s/\<dependency_info__/hlds__dependency_info_/g
s/\<unify_proc_info__/unify_proc__info_/g
s/\<reschedule__conj/transform__reschedule_conj/g
s/\<vn__init_tables/vn_table__init_tables/g
s/\<vn__lookup_/vn_table__lookup_/g
s/\<vn__search_/vn_table__search_/g
s/\<vn__get_/vn_table__get_/g
s/\<vn__add_new_use/vn_table__add_new_use/g
s/\<vn__del_old_use/vn_table__del_old_use/g
s/\<vn__record_first/vn_table__record_first/g
s/\<vn__set_/vn_table__set_/g
s/\<vn__find_/vn_util__find_/g
s/\<vn__convert_/vn_util__convert_/g
s/\<vn__\([rl]\)val_to_/vn_util__\1val_to_/g
s/\<vn__is_const_expr/vn_util__is_const_expr/g
s/\<vn__vn\([rl]\)val_/vn_util__vn\1val_/g
s/\<vn__no_access_/vn_util__no_access_/g
s/\<vn__is_vn_/vn_util__is_vn_/g
s/\<vn__real_uses/vn_util__real_uses/g
s/\<vn__choose_cheapest_loc/vn_util__choose_cheapest_loc/g
s/\<vn__classify_loc_cost/vn_util__classify_loc_cost/g
s/\<vn__simplify_vnrval/vn_util__simplify_vnrval/g
s/\<vn__lval_to_vn/vn_util__lval_to_vn/g
s/\<vn__build_uses/vn_util__build_uses/g
s/\<vn__record_access/vn_util__record_access/g
s/\<vn__record_use/vn_util__record_use/g
s/\<c__gen/mercury_to_c__gen/g
s/\<vn__divide/vn_block__divide/g
s/\<vn__build_block/vn_block__build_block/g
s/\<vn__split_at_next_ctrl_instr/vn_block__split_at_next_ctrl_instr/g
s/\<vn__build_from_real_/vn_block__build_from_real_/g
s/\<vn__build_from_fake_/vn_block__build_from_fake_/g
s/\<vn__build_from_para/vn_block__build_from_para/g
s/\<vn__real_fake_parentries/vn_block__real_fake_parentries/g
s/\<vn__handle_instr/vn_block__handle_instr/g
s/\<vn__new_\([a-z][a-z]*\)_node/vn_block__new_\1_node/g
s/\<vn__record_\([soc]\)/vn_block__record_\1/g
s/\<vn__record_at_/vn_block__record_at_/g
s/\<vn__record_label\([s]*\)\>/vn_block__record_label\1/g
s/\<vn__record_live\([vnl]*\)vals\>/vn_block__record_live\1vals/g
s/\<vn__is_ctrl_instr/vn_block__is_ctrl_instr/g
s/\<vn__filter_redo_live/vn_block__filter_redo_live/g
s/\<vn_util__find_cheaper_cop/vn_block__find_cheaper_cop/g
s/\<vn__main\>/value_number__main/g
s/\<vn__post_main/value_number__post_main/g
s/\<vn__prepare_for_vn/value_number__prepare_for_vn/g
s/\<vn__breakup_complex/value_number__breakup_complex/g
s/\<vn__procedure/value_number__procedure/g
s/\<vn__optimize_block/value_number__optimize_block/g
s/\<vn__optimize_fragment/value_number__optimize_fragment/g
s/\<vn__try_again/value_number__try_again/g
s/\<vn__verify_/value_number__verify_/g
s/\<vn__make_verify/value_number__make_verify_map/g
s/\<vn__substitute_access_/value_number__substitute_access_/g
s/\<vn__substitute_sub_/value_number__substitute_sub_/g
s/\<vn__process_parallel/value_number__process_parallel/g
s/\<vn__insert_new_block/value_number__insert_new_block/g
s/\<vn__all_empty_/value_number__all_empty_/g
s/\<vn__push_/value_number__push_/g
s/\<vn__boundary_instr/value_number__boundary_instr/g
s/\<vn__max_real_/value_number__max_real_/g
s/\<vn_util__find_block_/value_number__find_block_/g
s/\<vn_util__convert_back_modframe/value_number__convert_back_modframe/g
s/\<vn__\([a-z][a-z]*\)_cost\([_0-9]*\)/vn_cost__\1_cost\2/g
s/\<vn__costof_\([a-z][a-z]*\)/vn_cost__costof_\1/g
s/\<vn__\([a-z][a-z_]*\)_msg\>/vn_debug__\1_msg/g
s/\<vn__\([a-z][a-z_]*\)_msg_flag\>/vn_debug__\1_msg_flag/g
s/\<vn__flush_/vn_flush__/g
s/\<vn__choose_loc_for_shared_vn/vn_flush__choose_loc_for_shared_vn/g
s/\<vn_util__find_cheap_users/vn_flush__find_cheap_users/g
s/\<vn__\([a-z][a-z]*\)e_assignment/vn_flush__\1e_assignment/g
s/\<vn_table__get_incr_hp/vn_flush__get_incr_hp/g
s/\<vn__free_of_old_hp/vn_flush__free_of_old_hp/g
s/\<vn__rec_find_ref_vns/vn_flush__rec_find_ref_vns/g
s/\<vn__maybe_save_prev_value/vn_flush__maybe_save_prev_value/g
s/\<vn__no_good_copies/vn_flush__no_good_copies/g
s/\<vn__node/vn_flush__node/g
s/\<vn__lval_node/vn_flush__lval_node/g
s/\<vn__shared_node/vn_flush__shared_node/g
s/\<vn__ctrl_node/vn_flush__ctrl_node/g
s/\<vn__vn/vn_flush__vn/g
s/\<vn__old_hp/vn_flush__old_hp/g
s/\<vn__hp_incr/vn_flush__hp_incr/g
s/\<vn__access_path/vn_flush__access_path/g
s/\<vn__\([a-z_]*\)order\([_2]*\)\>/vn_order__\1order\2/g
s/\<vn_flush__\([a-z_]*\)order\>/vn_order__\1order/g
s/\<vn_block__record_ctrl_deps/vn_order__record_ctrl_deps/g
s/\<vn__append_vnlval_nodes/vn_order__append_vnlval_nodes/g
s/\<vn__record_antideps/vn_order__record_antideps/g
s/\<vn__add_computed_link/vn_order__add_computed_link/g
s/\<vn__use_\([a-z_]*\)before_redef/vn_order__use_\1before_redef/g
s/\<vn_util__find_access_users/vn_order__find_access_users/g
s/\<vn__add_user/vn_order__add_user/g
s/\<vn__add_alias/vn_order__add_alias/g
s/\<vn_util__find_\([a-z_]*\)links\>/vn_order__find_\1links/g
s/\<vn__add_link/vn_order__add_link/g
s/\<vn__insert_if_not_there/vn_order__insert_if_not_there/g
s/\<vn__add_node/vn_order__add_node/g
s/\<vn__classify_node/vn_order__classify_node/g
s/\<vn__blocks_to_order/vn_order__blocks_to_order/g
s/\<vn_util__find_last_ctrl/vn_order__find_last_ctrl/g
s/\<vn__order_equal/vn_order__order_equal/g
s/\<vn_util__find_ctrls/vn_order__find_ctrls/g
s/\<vn_util__find_noops/vn_order__find_noops/g
s/\<vn_util__find_regs/vn_order__find_regs/g
s/\<vn_util__find_stackvars/vn_order__find_stackvars/g
s/\<vn__reorder_noops/vn_order__reorder_noops/g
s/\<vn__\([a-z_]*\)temploc\(s*\)/vn_temploc__\1temploc\2/g
s/\<vn_util__find_free_regs/vn_temploc__find_free_regs/g
s/\<vn_table__get_n_temps/vn_temploc__get_n_temps/g