[llvm] r250108 - [CMake] Adding support for passing in profiling data.
Sean Silva via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 13 17:19:23 PDT 2015
Thanks!
On Mon, Oct 12, 2015 at 10:38 PM, Chris Bieneman <beanz at apple.com> wrote:
>
> On Oct 12, 2015, at 8:35 PM, Sean Silva <chisophugis at gmail.com> wrote:
>
> Do we emit an error if this option is passed if the compiler is not clang?
>
>
> We do now :-)
>
>
> Also, please update
> http://llvm.org/docs/CMake.html#llvm-specific-variables (docs/CMake.rst)
>
>
> Updated r250150.
>
> Thanks,
> -Chris
>
>
> -- Sean Silva
>
> On Mon, Oct 12, 2015 at 2:13 PM, Chris Bieneman via llvm-commits <
> llvm-commits at lists.llvm.org> wrote:
>
>> Author: cbieneman
>> Date: Mon Oct 12 16:13:20 2015
>> New Revision: 250108
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=250108&view=rev
>> Log:
>> [CMake] Adding support for passing in profiling data.
>>
>> Adds LLVM_PROFDATA_FILE option to allow specifying a profile data file to
>> be used during compilation of LLVM and subprojects.
>>
>> Modified:
>> llvm/trunk/CMakeLists.txt
>>
>> Modified: llvm/trunk/CMakeLists.txt
>> URL:
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=250108&r1=250107&r2=250108&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/CMakeLists.txt (original)
>> +++ llvm/trunk/CMakeLists.txt Mon Oct 12 16:13:20 2015
>> @@ -590,6 +590,13 @@ endif( ${CMAKE_SYSTEM_NAME} MATCHES SunO
>> # use export_executable_symbols(target).
>> set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
>>
>> +set(LLVM_PROFDATA_FILE "" CACHE FILEPATH
>> + "Profiling data file to use when compiling in order to improve runtime
>> performance.")
>> +
>> +if(LLVM_PROFDATA_FILE AND EXISTS ${LLVM_PROFDATA_FILE})
>> + add_definitions("-fprofile-instr-use=${LLVM_PROFDATA_FILE}")
>> +endif()
>> +
>> include(AddLLVM)
>> include(TableGen)
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151013/f265bf96/attachment.html>
More information about the llvm-commits
mailing list