5 Commits

Author SHA1 Message Date
Zoltan Somogyi
a0769526e6 Rename three options from inform_X to warn_X.
compiler/options.m:
    Rename the internal names of these three options. Keep the old
    external names, but make the main external name the new name.

NEWS.mdb:
    Announce the renames.

compiler/check_options.m:
compiler/det_check_proc.m:
compiler/det_check_switch.m:
compiler/simplify_goal_ite.m:
    Conform to the change above. Change the severity of the messages
    controlled by the changed options severity_warning.

tests/warnings/help_text.err_exp:
    Expect the updated help text.
2025-08-18 13:13:10 +02:00
Zoltan Somogyi
0e41d41286 Make mdprof_create_feedback/feedback.m a package.
mdbcomp/feedback.feedback_info.m:
mdbcomp/feedback.m:
    Move all the contents of feedback.m other than include_module items
    into the new module feedback_info.m, leaving feedback.m a package.

mdbcomp/feedback.automatic_parallelism.m:
    Group the types exported by this module into groups of related types.

    Delete a totally unused type.

deep_profiler/Mmakefile:
slice/Mmakefile:
    Copy the new module.

compiler/check_options.m:
compiler/globals.m:
compiler/handle_options.m:
compiler/introduce_parallelism.m:
deep_profiler/autopar_reports.m:
deep_profiler/autopar_search_callgraph.m:
deep_profiler/mdprof_create_feedback.m:
deep_profiler/mdprof_report_feedback.m:
    Import the new module.
2025-07-25 18:52:31 +02:00
Zoltan Somogyi
92ac7d6602 Add a way to dump the cons_table.
compiler/hlds_out_module.m:
    If a new control boolean is set, then dump the contents of the cons_table.

    Add a comment containing summary information derived from such dumps.

compiler/hlds_out_util.m:
    Add this new control boolean.

compiler/check_options.m:
    Allow the specification of this new control boolean.

compiler/hlds_cons.m:
    Provide a utility predicate for giving hlds_out_module.m the info
    it needs without making the structure of the cons_table public.

compiler/mercury_compile_llds_back_end.m:
    Rename the final dump stage of the LLDS backend to "final", since
    that is what the user guide documents. (The MLDS backend already had
    this right.)

tools/cons_table.awk:
    Add this script for summarizing dumped cons_tables.
2025-07-21 19:35:39 +02:00
Zoltan Somogyi
928eb441d4 Minor style fixes. 2025-06-04 10:12:42 +10:00
Zoltan Somogyi
217a4368c6 Carve check_options.m out of handle_options.m.
compiler/check_options.m:
    New module containing the purely-checking parts of handle_options.m.

compiler/handle_options.m:
    Delete the moved code.

compiler/libs.m:
compiler/notes/compiler_design.html:
    Add and document the new module.
2025-02-15 04:51:03 +11:00