This is an archive of the discontinued LLVM Phabricator instance.

[LTO] Refactor the ThinLTO distributed backend
Needs ReviewPublic

Authored by mehdi_amini on Aug 18 2016, 11:19 PM.

Details

Reviewers
tejohnson
Summary

Delegate the way the information is communicated to the build
system to the client.

Diff Detail

Event Timeline

mehdi_amini retitled this revision from to [LTO] Refactor the ThinLTO distributed backend.
mehdi_amini updated this object.
mehdi_amini added a reviewer: tejohnson.
mehdi_amini added a subscriber: llvm-commits.
tejohnson edited edge metadata.Aug 19 2016, 6:15 AM

It isn't clear to me why we would want this functionality to live in the clients, rather than providing a set of configurable functionality that different build systems might need inside LTO itself. It means possibly implementing the same functionality required by a single build system in potentially all clients, since the build system is not dependent on a single client linker.

include/llvm/LTO/LTO.h
262

Parameter is called AddModule elsewhere.

tools/gold/gold-plugin.cpp
754

This may be null

mehdi_amini marked an inline comment as done.
mehdi_amini edited edge metadata.

Address comments

mehdi_amini marked an inline comment as done.Aug 21 2016, 11:51 PM