[PATCH] D38808: [CMake] Improve logic for enabling LTO on LLVM itself

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 22:11:35 PDT 2017


Yea, the motivation for this was that I wanted an easy way to compare
ThinLTO to MSVC LTCG, and the easiest way to get test data was to use LLVM
itself as the benchmark
On Wed, Oct 11, 2017 at 9:38 PM Mehdi AMINI <joker.eph at gmail.com> wrote:

> Oh right I totally missed that it would be using MSVC as a host compiler
> to build LLVM, I somehow misread the context and thought there was a mode
> where clang would generate LTO files consumed by MSVC.
>
> --
> Mehdi
>
>
>
> 2017-10-11 21:32 GMT-07:00 Zachary Turner <zturner at google.com>:
>
>> Microsoft visual c++?
>>
>> It’s basically the same idea, although they call it LTCG, and the idea
>> here is just that we need to pass different flags to msvc than we do to
>> other compilers
>> On Wed, Oct 11, 2017 at 8:37 PM Mehdi AMINI via Phabricator <
>> reviews at reviews.llvm.org> wrote:
>>
>>> mehdi_amini added inline comments.
>>>
>>>
>>> ================
>>> Comment at: llvm/cmake/modules/HandleLLVMOptions.cmake:771
>>> +# Sets the output parameter style to one of the following values:
>>> +#   thin, none, msvc, full
>>> +# If the function returns (e.g. there is no fatal error), the output
>>> parameter
>>> ----------------
>>> What is "msvc"? (pointer to another doc accepted :))
>>>
>>>
>>> https://reviews.llvm.org/D38808
>>>
>>>
>>>
>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171012/02f6d22a/attachment.html>


More information about the llvm-commits mailing list