aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-09-26 02:39:42 +0000
committerLang Hames <lhames@gmail.com>2018-09-26 02:39:42 +0000
commit225a32af72b6f9dac6adb35263201ec7a2a08901 (patch)
tree6dd4b9a33203a322615b8ca8e82ea90d89bff07c /clang/lib/CodeGen/CodeGenModule.cpp
parent867587f88586a07c75002a63975c62883a7e75da (diff)
downloadllvm-225a32af72b6f9dac6adb35263201ec7a2a08901.zip
llvm-225a32af72b6f9dac6adb35263201ec7a2a08901.tar.gz
llvm-225a32af72b6f9dac6adb35263201ec7a2a08901.tar.bz2
[ORC] Add support for multithreaded compiles to LLJIT and LLLazyJIT.
LLJIT and LLLazyJIT can now be constructed with an optional NumCompileThreads arguments. If this is non-zero then a thread-pool will be created with the given number of threads, and compile tasks will be dispatched to the thread pool. To enable testing of this feature, two new flags are added to lli: (1) -compile-threads=N (N = 0 by default) controls the number of compile threads to use. (2) -thread-entry can be used to execute code on additional threads. For each -thread-entry argument supplied (multiple are allowed) a new thread will be created and the given symbol called. These additional thread entry points are called after static constructors are run, but before main. llvm-svn: 343058
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions