This is an archive of the discontinued LLVM Phabricator instance.

Modify FunctionImport to take a callback to load modules
ClosedPublic

Authored by mehdi_amini on Nov 30 2015, 10:41 PM.

Details

Summary

When linking static archive, there is no individual module files to
load. Instead they can be mmap'ed and could be initialized from a
buffer directly. The callback provide flexibility to override the
scheme for loading module from the summary.

Diff Detail

Event Timeline

mehdi_amini retitled this revision from to Modify FunctionImport to take a callback to load modules.
mehdi_amini updated this object.
mehdi_amini added a reviewer: tejohnson.
mehdi_amini added subscribers: llvm-commits, dexonsmith.
tejohnson accepted this revision.Dec 1 2015, 6:30 AM
tejohnson edited edge metadata.

loading module from the summary.

Change LGTM, I just didn't understand the above note about loading the module from the summary? Do you just mean from memory (not the function summary)?

This revision is now accepted and ready to land.Dec 1 2015, 6:30 AM

When I wrote "when loading module from the summary" I meant "when loading module from the module identifier in the summary (which may not be a file despite the accessor being called modulePath())". Makes sense?