[llvm-jitlink] Add optional slab allocator for testing locality optimizations.
authorLang Hames <lhames@gmail.com>
Fri, 6 Sep 2019 19:21:55 +0000 (19:21 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 6 Sep 2019 19:21:55 +0000 (19:21 +0000)
commit335676ee62167c021c17b90489b49c1015116556
treec88ca89bc52dd485e4168f60d8d003b487ddef32
parent7bb433c87b602a181a9e6ee08e38717a63b6f478
[llvm-jitlink] Add optional slab allocator for testing locality optimizations.

The llvm-jitlink utility now accepts a '-slab-allocate <size>' option. If given,
llvm-jitlink will use a slab-based memory manager rather than the default
InProcessMemoryManager. Using a slab allocator will allow reliable testing of
future locality based optimizations (e.g. PLT and GOT elimination) in JITLink.

The <size> argument is a number, optionally followed by a units specifier (Kb,
Mb, or Gb). If the units are not given then the number is assumed to be in Kb.

llvm-svn: 371244
llvm/tools/llvm-jitlink/llvm-jitlink.cpp
llvm/tools/llvm-jitlink/llvm-jitlink.h