Files
mercury/compiler/ml_backend.m
Zoltan Somogyi 234501be75 Remove ml_tailcall.m and associated code.
Now that we can optimize tail recursion for all MLDS targets better via
the MLDS code generator than via ml_tailcall.m, we don't need it anymore.

compiler/ml_tailcall.m:
    Delete this module.

compiler/ml_backend.m:
compiler/notes/compiler_design.html:
    Delete the inclusion and the documentation of the deleted module.

compiler/mark_tail_calls.m:
    Update old references to the deleted module, as well as some comments.

compiler/mercury_compile_mlds_back_end.m:
    Don't invoke the deleted module.

compiler/options.m:
    Delete the (developer-only) options that used to control whether
    we did tail call optimization (TCO) via ml_tailcall.m or not.

compiler/ml_optimize.m:
    Delete the parts of this module that worked in concert with ml_tailcall.m
    to implement TCO.

compiler/mlds.m:
    Delete the field from ml_call_stmts that was needed only by ml_tailcall.m.

compiler/ml_call_gen.m:
    Don't fill in the deleted field.

    Shift here the only part of the old contents of ml_tailcall.m that is
    still needed, the check for whether rvals would become dangling references
    if we discarded the current call's stack frame.

compiler/ml_elim_nested.m:
    Conform to the change to mlds.m, and eliminate an unused field
    in elim_info.

compiler/ml_accurate_gc.m:
compiler/ml_code_util.m:
compiler/ml_commit_gen.m:
compiler/ml_proc_gen.m:
compiler/ml_rename_classes.m:
compiler/ml_util.m:
compiler/mlds_to_c.m:
compiler/mlds_to_cs.m:
compiler/mlds_to_java.m:
compiler/mlds_to_target_util.m:
    Conform to the changes above.
2017-11-10 14:26:32 +11:00

78 lines
2.6 KiB
Mathematica

%---------------------------------------------------------------------------%
% vim: ft=mercury ts=4 sw=4 et
%---------------------------------------------------------------------------%
% Copyright (C) 2002-2006, 2009-2011 The University of Melbourne.
% This file may only be copied under the terms of the GNU General
% Public License - see the file COPYING in the Mercury distribution.
%---------------------------------------------------------------------------%
%
% The MLDS back-end.
%
% This package includes
% - the MLDS data structure, which is an abstract
% representation of a generic imperative language;
% - the MLDS code generator, which converts HLDS to MLDS;
% - the high-level C back-end, the Java back-end and the C# back-end,
% each of which convert MLDS to their respective target language.
%
%---------------------------------------------------------------------------%
:- module ml_backend.
:- interface.
%---------------------------------------------------------------------------%
:- include_module mlds.
:- include_module ml_target_util.
:- include_module ml_util.
% Phase 4-ml: MLDS-specific HLDS to HLDS transformations and annotations.
:- include_module add_heap_ops. % transformation
:- include_module add_trail_ops. % transformation
% Phase 5-ml: compile HLDS to MLDS
:- include_module ml_top_gen.
:- include_module ml_proc_gen.
:- include_module ml_code_gen.
:- include_module ml_call_gen.
:- include_module ml_foreign_proc_gen.
:- include_module ml_closure_gen.
:- include_module ml_commit_gen.
:- include_module ml_disj_gen.
:- include_module ml_switch_gen.
:- include_module ml_simplify_switch.
:- include_module ml_string_switch.
:- include_module ml_tag_switch.
:- include_module ml_lookup_switch.
:- include_module ml_type_gen.
:- include_module ml_unify_gen.
:- include_module ml_gen_info.
:- include_module ml_args_util.
:- include_module ml_code_util.
:- include_module ml_accurate_gc.
:- include_module ml_global_data.
:- include_module rtti_to_mlds.
% Phase 6-ml: MLDS -> MLDS transformations
:- include_module ml_elim_nested.
:- include_module ml_rename_classes.
:- include_module ml_optimize.
% Phase 7-ml: compile MLDS to target code
% MLDS->C back-end
:- include_module mlds_to_c.
% MLDS->Java back-end
:- include_module mlds_to_java.
% MLDS->C# back-end.
:- include_module mlds_to_cs.
% Utility predicates that are useful for more than one MLDS->? back-end.
:- include_module mlds_to_target_util.
%---------------------------------------------------------------------------%
:- end_module ml_backend.
%---------------------------------------------------------------------------%