mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-16 22:35:41 +00:00
Move the stuff currently in hlds_pred.m that deals with clauses into a new
Estimated hours taken: 1.5 Branches: main Move the stuff currently in hlds_pred.m that deals with clauses into a new module, hlds_clauses.m. Move the stuff currently in hlds_pred.m that deals with RTTI into a new module, hlds_rtti.m. Move the stuff currently in hlds_module.m that deals with predicate tables into a new module, pred_table.m. These changes make hlds_pred.m and hlds_module.m much more cohesive, but there are no changes in algorithms. compiler/hlds_clauses.m: compiler/hlds_rtti.m: compiler/pred_table.m: New modules as described above. In some cases, fix mixleading or ambiguous predicate names in the process, and convert a few predicates to functions. compiler/hlds_pred.m: compiler/hlds_module.m: Delete the stuff moved to other modules. compiler/*.m: In modules that need the functionality moved a new module, import the new module. It is rare for all the new modules to be needed, and many modules don't need any of the new modules at all. (For example, of the 200+ modules that import hlds_module.m, only about 40 need pred_table.m.) Conform to the few minor changes to e.g. predicate names. compiler/notes/compiler_design.html: Document the new modules.
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
:- import_module check_hlds.inst_match.
|
||||
:- import_module hlds.hlds_data.
|
||||
:- import_module hlds.hlds_goal.
|
||||
:- import_module hlds.hlds_rtti.
|
||||
:- import_module hlds.instmap.
|
||||
:- import_module hlds.passes_aux.
|
||||
:- import_module libs.compiler_util.
|
||||
@@ -226,7 +227,7 @@ delay_construct_in_conj([Goal0 | Goals0], InstMap0, DelayInfo,
|
||||
Goal0 = GoalExpr0 - GoalInfo0,
|
||||
delay_construct_skippable(GoalExpr0, GoalInfo0),
|
||||
goal_info_get_nonlocals(GoalInfo0, NonLocals),
|
||||
proc_info_maybe_complete_with_typeinfo_vars(NonLocals,
|
||||
maybe_complete_with_typeinfo_vars(NonLocals,
|
||||
DelayInfo ^ body_typeinfo_liveness,
|
||||
DelayInfo ^ vartypes,
|
||||
DelayInfo ^ rtti_varmaps, CompletedNonLocals),
|
||||
|
||||
Reference in New Issue
Block a user