aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-03-04 17:06:02 +0000
committerTeresa Johnson <tejohnson@google.com>2016-03-04 17:06:02 +0000
commit7cffaf3ad05cb9e199656868e157507dec1b4503 (patch)
tree6927967b562a6210a1ddb66bdcedf423dab2c49f /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent8144d3b091075ab236e17482d7ad9d3ee863eef0 (diff)
downloadllvm-7cffaf3ad05cb9e199656868e157507dec1b4503.zip
llvm-7cffaf3ad05cb9e199656868e157507dec1b4503.tar.gz
llvm-7cffaf3ad05cb9e199656868e157507dec1b4503.tar.bz2
[ThinLTO] Launch importing backends in parallel threads from gold plugin
Summary: Launch ThinLTO backends (LTO and codegen pipelines with importing) in parallel using a ThreadPool, after creating the combined index. The number of threads is controlled by the existing -jobs gold plugin option, or the hardware concurrency if not specified. The old behavior of exiting after creating the combined index can be invoked via a new thinlto-index-only plugin option. This commit involves just the ThinLTO-specific pieces of D15390, the NFC and other restructuring pieces were committed independently: r262677: Add hardware_concurrency interface to llvm::thread (NFC) r262719: Change split code gen to use ThreadPool r262721: Refactor gold-plugin codegen to prepare for ThinLTO threads (NFC) Reviewers: pcc, joker.eph, rafael Subscribers: rafael, davidxl, llvm-commits, joker.eph Differential Revision: http://reviews.llvm.org/D15390 llvm-svn: 262724
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
0 files changed, 0 insertions, 0 deletions