[cmake] Add an option to build llvm with IR PGO
authorVedant Kumar <vsk@apple.com>
Wed, 20 Sep 2017 17:16:01 +0000 (17:16 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 20 Sep 2017 17:16:01 +0000 (17:16 +0000)
commit9aaaeb3c93c66c51b3549553690b9f122a24b1bc
tree4453fa8d8e0846434ee5b5e91ddc275c1e37525e
parent0b7cb326a1c5c4cf6e7aad1971de92880f5585aa
[cmake] Add an option to build llvm with IR PGO

This adds an LLVM_ENABLE_IR_PGO option to enable building llvm and its
tools with IR PGO instrumentation.

Usage: -DLLVM_BUILD_INSTRUMENTED=On -DLLVM_ENABLE_IR_PGO=On (both
options must be enabled)

Differential Revision: https://reviews.llvm.org/D38066

llvm-svn: 313770
llvm/CMakeLists.txt
llvm/cmake/modules/HandleLLVMOptions.cmake