Commit Graph

4 Commits

Author SHA1 Message Date
Tyson Dowd
20013e0829 Add the module name to name of LambdaGoal predicates.
Estimated hours taken: 0.2

Add the module name to name of LambdaGoal predicates.

compiler/lambda.m:
	Prepend the module name to __LambdaGoal__, as name clashes
	occur with native gc (because static symbols become global).
1996-01-12 06:29:32 +00:00
Dylan Shuttleworth
3ab8d92226 Change names with badly placed double underscores (ie where the part of
Estimated hours taken: _2___

Change names with badly placed double underscores (ie where the part of
a name before a double underscore is not the same as the module name.)

Reflect changes in the library interface.

compiler/*:
	Use the newer, more correct form of the term and bool names.
	Predicates "bool__" are now "std_util__bool" and labels of
	the term ADT are now "term_" instead of "term__".

compiler/vn*.m:
	change all names "vn__*" to a correct module prefix.  All the
	names remain qualified.

compiler/hlds.m:
	s/\<is_builtin__/hlds__is_builtin_/g
	s/\<dependency_info__/hlds__dependency_info_/g

compiler/unify_proc.m:
	s/\<unify_proc_info__/unify_proc__info_/g

compiler/transform.m:
	s/\<reschedule__conj/transform__reschedule_conj/g
1995-12-29 03:45:20 +00:00
David Jeffery
970bf7b2f1 Added better warnings and error messages. Fixed bug with having
Estimated hours taken: 3

Added better warnings and error messages. Fixed bug with having
pragma(c_code, ...) decs for different modes of the same pred, and with having
clauses and pragma(c_code, ...) decs.

hlds.m:
	Added a fields to the pred_info indicating whether the pred contained
	pragma(c_code, ...) decs, clauses, or was currently empty. Also
	updated the access predicates, and require a new argument for
	pred_info_init
lambda.m:
	Pass the new argument to pred_info_init
make_hlds.m:
	Improve error messages and warnings. Fix bug with pragma decs for
	different modes, and bug with clauses an pragmas for same pred.
1995-11-20 09:57:24 +00:00
Fergus Henderson
0669cdd93a Fix design error which led to the bug reported by Philip Dart:
Estimated hours taken: 15
	(Debugging 3 people * 3 hours, design 2 hours, coding 4 hours.)

Fix design error which led to the bug reported by Philip Dart:
cse_detection was reinvoking mode analysis, which converted
higher-order pred terms into lambda expressions, but was
not reinvoking polymorphism.m, and so they remained as
lambda expressions, which caused the code generator to generate
incorrect code.

compiler/polymorphism.m:
	Move the stuff for handling lambda expressions into
	a new file lambda.m.

compiler/lambda.m:
	New file.  Contains the lambda expression handling
	stuff from polymorphism.m, plus new code to traverse
	the HLDS for a predicate applying this transformation
	to each lambda expression in the procedure bodies
	for that predicate.

compiler/cse_detection.m:
	After re-running mode analysis, invoke lambda__process_pred
	to transform away lambda expressions.
1995-11-04 15:38:59 +00:00