This is an archive of the discontinued LLVM Phabricator instance.

[Modules] Implement an example module path for name lookup.
AbandonedPublicDraft

Authored by iains on Feb 3 2022, 6:37 AM.

Details

Reviewers
None
Summary

With the ability to create compiled module interfaces 'on demand' when the
relevant keywords are encountered, we need some mechanism to determine the
output file name to be used for such modules.

In the most simplistic case, we can choose to name the module CMI based on
the name of the source file. However, in many cases that is likely to be an over-
simplification.

The intent is that this on-demand facility would be used with P1184 or some
similar scheme - but that can be abstracted behind some query of the the
module loader or module mapper.

As a proof-of-principle we re (maybe ab-)use the fmodule=name=path command line
options to look up the file path given the module name.

Diff Detail

Event Timeline

iains created this revision.Feb 3 2022, 6:37 AM
iains updated this revision to Diff 405623.Feb 3 2022, 6:47 AM

reapply patch

iains abandoned this revision.Oct 3 2023, 1:38 AM

this will be updated and moved to a pull request

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 3 2023, 1:38 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript