Reland "[CMake] Support installation of InstrProfData.inc"
authorPetr Hosek <phosek@google.com>
Fri, 22 Nov 2019 20:09:15 +0000 (12:09 -0800)
committerPetr Hosek <phosek@google.com>
Fri, 22 Nov 2019 22:09:46 +0000 (14:09 -0800)
commitf35032e03d9263b1d2a8ac2e675fc94cb43b608b
tree91c9da59495b75f8c19afe6388df393c4787cc01
parent90f641f2f1585efe57c59249a4b9442f2c06a283
Reland "[CMake] Support installation of InstrProfData.inc"

This header fragment is useful on its own for any consumer that wants
to use custom instruction profile runtime with the LLVM instrumentation.
The concrete use case is in Fuchsia's kernel where we want to use
instruction profile instrumentation, but we cannot use the compiler-rt
runtime because it's not designed for use in the kernel environment.
This change allows installing this header as part of compiler-rt.

Differential Revision: https://reviews.llvm.org/D64532
compiler-rt/include/CMakeLists.txt
compiler-rt/include/profile/InstrProfData.inc [moved from compiler-rt/lib/profile/InstrProfData.inc with 100% similarity]
compiler-rt/lib/profile/CMakeLists.txt
compiler-rt/lib/profile/InstrProfiling.c
compiler-rt/lib/profile/InstrProfiling.h
compiler-rt/lib/profile/InstrProfilingMerge.c
compiler-rt/lib/profile/InstrProfilingMergeFile.c
compiler-rt/lib/profile/InstrProfilingValue.c
compiler-rt/lib/profile/InstrProfilingWriter.c
llvm/utils/gn/secondary/compiler-rt/include/BUILD.gn
llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn