[PATCH] D12260: CodeGen: Introduce LinkedCodeGen and teach LTOCodeGenerator to use it.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 19:31:28 PDT 2015


pcc created this revision.
pcc added reviewers: joker.eph, dexonsmith, chandlerc.
pcc added a subscriber: llvm-commits.

llvm::LinkedCodeGen is a function that implements the core of parallel LTO
code generation. It uses llvm::SplitModule to split the module into linkable
partitions and spawning one code generation thread per partition. The function
produces multiple object files which can be linked in the usual way.

This has been threaded through to LTOCodeGenerator (and llvm-lto for testing
purposes). Separate patches will add parallel LTO support to the gold plugin
and lld.

http://reviews.llvm.org/D12260

Files:
  include/llvm/CodeGen/Parallel.h
  include/llvm/LTO/LTOCodeGenerator.h
  lib/CodeGen/CMakeLists.txt
  lib/CodeGen/Parallel.cpp
  lib/LTO/LTOCodeGenerator.cpp
  test/LTO/X86/parallel.ll
  tools/llvm-lto/llvm-lto.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12260.32894.patch
Type: text/x-patch
Size: 11735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150822/6f39e312/attachment.bin>


More information about the llvm-commits mailing list