OSDN Git Service

[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)
commit1193b207a65999d93308dfdab1d79c75acd77473
tree4390d5a9f037c15c4927be681ad7b045508f1613
parentc01b09922482b4d0ea2c72c6356e51d804d3099b
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365671 91177308-0d34-0410-b5e6-96231b3b80d8
examples/CMakeLists.txt
examples/HowToUseLLJIT/HowToUseLLJIT.cpp
examples/LLJITExamples/CMakeLists.txt [new file with mode: 0644]
examples/LLJITExamples/ExampleModules.h [new file with mode: 0644]
examples/LLJITExamples/LLJITWithObjectCache/CMakeLists.txt [new file with mode: 0644]
examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp [new file with mode: 0644]
include/llvm/ExecutionEngine/Orc/CompileUtils.h
include/llvm/ExecutionEngine/Orc/LLJIT.h
lib/ExecutionEngine/Orc/LLJIT.cpp