[llvm] r246236 - CodeGen: Introduce splitCodeGen and teach LTOCodeGenerator to use it.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 29 15:36:16 PDT 2015


On Sat, Aug 29, 2015 at 01:20:29PM +0300, İsmail Dönmez wrote:
> On Sat, Aug 29, 2015 at 12:06 PM, Tobias Grosser via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
> > On 08/28/2015 01:37 AM, Peter Collingbourne via llvm-commits wrote:
> >>
> >> Author: pcc
> >> Date: Thu Aug 27 18:37:36 2015
> >> New Revision: 246236
> >>
> >> URL: http://llvm.org/viewvc/llvm-project?rev=246236&view=rev
> >> Log:
> >> CodeGen: Introduce splitCodeGen and teach LTOCodeGenerator to use it.
> >>
> >> llvm::splitCodeGen 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.
> >
> >
> > Hi Peter,
> >
> > I currently see build errors such as the following with cmake +
> > BUILD_SHARED_LIBS=ON.
> > I did not investigate this yet, so I am not yet 100% certain this patch is
> > the cause.
> 
> Same issue here, this commits creates a dependency on Support/thread.h
> which results in a pthread dependency.

Should be fixed by r246365.

Thanks,
-- 
Peter


More information about the llvm-commits mailing list