This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add sectionMemoryMapper to ExecutionEngineOptions
ClosedPublic

Authored by cota on Feb 23 2022, 7:55 AM.

Details

Summary

By specifying a sectionMemoryMapper, users can control how
memory for JIT code is allocated.

In particular, I need this in order to use a named memory
region so that profilers such as perf(1) can correctly label
execution cycles coming from JIT'ed code.

Diff Detail

Event Timeline

cota created this revision.Feb 23 2022, 7:55 AM
cota requested review of this revision.Feb 23 2022, 7:55 AM
cota added a reviewer: ftynse.Feb 23 2022, 8:13 AM
ezhulenev accepted this revision.Feb 23 2022, 10:45 AM
This revision is now accepted and ready to land.Feb 23 2022, 10:45 AM
cota updated this revision to Diff 410869.Feb 23 2022, 11:13 AM

Capture options.sectionMemoryMapper by value instead of by reference

ezhulenev accepted this revision.Feb 23 2022, 11:20 AM
This revision was automatically updated to reflect the committed changes.