This is an archive of the discontinued LLVM Phabricator instance.

[Orc] Use MapperJITLinkMemoryManager with InProcessMapper in llvm-jitlink tool
ClosedPublic

Authored by argentite on Aug 20 2022, 3:27 PM.

Details

Summary

MapperJITLinkMemoryManager has slab allocation. Combined with
InProcessMapper, it can replace InProcessMemoryManager.

It can also replace JITLinkSlabAllocator through the InProcessDeltaMapper
that adds an offset to the executor addresses for use in tests.

Diff Detail

Event Timeline

argentite created this revision.Aug 20 2022, 3:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2022, 3:27 PM
argentite published this revision for review.Aug 22 2022, 4:35 AM
argentite added reviewers: lhames, sgraenitz.
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2022, 4:35 AM
lhames accepted this revision.Aug 26 2022, 12:03 PM

Otherwise LGTM!

llvm/tools/llvm-jitlink/llvm-jitlink.cpp
458

I'd change this to "only used for -noexec testing" -- I don't think there's any other use case.

This revision is now accepted and ready to land.Aug 26 2022, 12:03 PM