3 Commits

Author SHA1 Message Date
Zoltan Somogyi
81af28d388 Delete unnecessary fields from mai_stats.
compiler/module_imports.m:
    Don't collect statistics for access to module_and_imports fields
    that have been deleted, with the info now being looked up from the
    parse_tree_module_src.

    Don't store statistics for mcm_make, since that way of making a
    module_and_imports structure was deleted recently.

tools/mai_stats:
    Don't expect deleted statistics.
2021-07-30 19:14:25 +10:00
Zoltan Somogyi
47a1a02a92 Add vim modelines to most tools.
tools/add_cont_lines:
tools/appears:
tools/assemble:
tools/avg_frame_size:
tools/build_srcdist:
tools/cleanint:
tools/compare_frame_sizes:
tools/configure_mingw_cross:
tools/cont:
tools/ctor_rep_stats:
tools/cur_param:
tools/dd_speedtest:
tools/divide:
tools/extract_dd_stats:
tools/file_name_translation_stats:
tools/frame_sizes:
tools/gdbrun:
tools/half:
tools/info_stats.awk:
tools/linear:
tools/lmc.in:
tools/mai_stats:
tools/make_arena:
tools/next_param:
tools/not:
tools/optstages:
tools/type_ctor_stats:
    Add vim mode lines. Replace tabs with spaces.
2021-04-27 03:54:27 +10:00
Zoltan Somogyi
507ca6c250 Find out which module_and_imports fields are used when.
compiler/module_imports.m:
    We construct module_and_imports structures in three different ways.
    Each way fills in only a subset of the its fields with meaningful
    information. To see whether this is OK, we need to know whether the
    fields filled in with dummies are ever accessed. This diff thus adds
    an extra field to module_and_imports structures that says how they
    were constructed, and if the right compile time flag is set, it records,
    for each construction method, which fields have been accessed.

compiler/mercury_compile_main.m:
    If that same compile time flag is set, append the recorded information
    to a file.

tools/mai_stats:
    This tool summarizes the information in that file.
2019-05-09 21:25:24 +10:00