[mlir] Add sectionMemoryMapper to ExecutionEngineOptions
authorEmilio Cota <ecg@google.com>
Wed, 23 Feb 2022 15:51:36 +0000 (10:51 -0500)
committerEmilio Cota <ecg@google.com>
Wed, 23 Feb 2022 19:56:50 +0000 (14:56 -0500)
commit011f653265e1c444a77fb24cf03b2ea7faa517b9
treea77a33bd948126a549895317c0b70f5905f16fc5
parente87c32e390bb812d9390d3df39357409d073ac3f
[mlir] Add sectionMemoryMapper to ExecutionEngineOptions

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.

Reviewed-by: ezhulenev
Differential Revision: https://reviews.llvm.org/D120415
mlir/include/mlir/ExecutionEngine/ExecutionEngine.h
mlir/lib/ExecutionEngine/ExecutionEngine.cpp