[llvm-jitlink] Teach InProcessDeltaMapper to honor -slab-page-size option.
authorLang Hames <lhames@gmail.com>
Tue, 4 Oct 2022 02:28:56 +0000 (19:28 -0700)
committerLang Hames <lhames@gmail.com>
Tue, 4 Oct 2022 04:50:01 +0000 (21:50 -0700)
commit7ec6dde83ae66b7b3a01c69d619970cd3280dfca
treeba1db69cffba85838b26f6d2fe0a860084eb1620
parent3019f488f4479933fca18d6a44ddaa70f2fd56d8
[llvm-jitlink] Teach InProcessDeltaMapper to honor -slab-page-size option.

The -slab-page-size option is used to set a simulated page size in -no-exec
tests. In order for this to work we need to use read/write permissions only
on all simulated pages in order to ensure that no simulated page is made
read-only by a permission change to the underlying real page.

The aim of this patch is to make it safe to enable ExecutionEngine regression
tests on arm64. Those tests will be enabled in a follow-up patch.
llvm/tools/llvm-jitlink/llvm-jitlink.cpp