[ORC] Add custom IR compiler configuration to LLJITBuilder to enable obj caches.
authorLang Hames <lhames@gmail.com>
Wed, 10 Jul 2019 17:24:24 +0000 (17:24 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 10 Jul 2019 17:24:24 +0000 (17:24 +0000)
commit843f198a83d8161dc580562cbe11643ed2b0e54f
tree2b99b9f9be4b4f695930150cb6575e71c7d34402
parent5a6d40be1f3c2bf5c232877969f0efbe49d370a6
[ORC] Add custom IR compiler configuration to LLJITBuilder to enable obj caches.

LLJITBuilder now has a setCompileFunctionCreator method which can be used to
construct a CompileFunction for the LLJIT instance being created. The motivating
use-case for this is supporting ObjectCaches, which can now be set up at
compile-function construction time. To demonstrate this an example project,
LLJITWithObjectCache, is included.

llvm-svn: 365671
llvm/examples/CMakeLists.txt
llvm/examples/HowToUseLLJIT/HowToUseLLJIT.cpp
llvm/examples/LLJITExamples/CMakeLists.txt [new file with mode: 0644]
llvm/examples/LLJITExamples/ExampleModules.h [new file with mode: 0644]
llvm/examples/LLJITExamples/LLJITWithObjectCache/CMakeLists.txt [new file with mode: 0644]
llvm/examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp [new file with mode: 0644]
llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h
llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
llvm/lib/ExecutionEngine/Orc/LLJIT.cpp