[ORC] Add partitioning support to CompileOnDemandLayer2.
authorLang Hames <lhames@gmail.com>
Sat, 29 Sep 2018 23:49:57 +0000 (23:49 +0000)
committerLang Hames <lhames@gmail.com>
Sat, 29 Sep 2018 23:49:57 +0000 (23:49 +0000)
commit98440293fb903f69dbec401b8b4826b1fa206385
treecf7feeb31965aa6bca6c709c047badabbd641576
parentc3053e41bfcee50d80e3597452df55e2ecb4198a
[ORC] Add partitioning support to CompileOnDemandLayer2.

CompileOnDemandLayer2 now supports user-supplied partition functions (the
original CompileOnDemandLayer already supported these).

Partition functions are called with the list of requested global values
(i.e. global values that currently have queries waiting on them) and have an
opportunity to select extra global values to materialize at the same time.

Also adds testing infrastructure for the new feature to lli.

llvm-svn: 343396
llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
llvm/lib/ExecutionEngine/Orc/Core.cpp
llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
llvm/test/ExecutionEngine/OrcLazy/basic-whole-module-partitions.ll [new file with mode: 0644]
llvm/test/ExecutionEngine/OrcLazy/module-flags.ll
llvm/tools/lli/lli.cpp