[m-rev.] for review: enumeration argument packing

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Jun 27 17:49:20 AEST 2011

Hi Peter,

In case someone reviews this before this evening, could you please
hold off committing this until after I create the 11.07 branch.


On Mon, 27 Jun 2011, Peter Wang wrote:

> For review by anyone.
> Branches: main
> Pack consecutive enumeration arguments in discriminated union types into a
> single word to reduce cell sizes.  Argument packing is only enabled on C
> back-ends, and reordering arguments to improve opportunities for packing is
> not yet attempted.  The RTTI implementations for other back-ends will need to
> be updated, but that is best left until after any argument reordering change.
> Modules which import abstract enumeration types are notified so by writing
> declarations of the form:
> 	:- type foo where type_is_abstract_enum(NumBits).
> into the interface file for the module which defines the type.
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au

More information about the reviews mailing list