[CMake] Support installation of InstrProfData.inc
authorPetr Hosek <phosek@google.com>
Fri, 22 Nov 2019 03:39:51 +0000 (19:39 -0800)
committerPetr Hosek <phosek@google.com>
Fri, 22 Nov 2019 19:52:50 +0000 (11:52 -0800)
commitf11bc1776fd2815b60e0b1ed97be00b517348162
tree3eb61570d2f2ae9cafba0e9db03726e6fac7a836
parent4fdbc0728d4b8acb1921fc48301622e971fc3961
[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/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