llvm-project/llvm/lib/XRay
Dean Michael Berris f578aaa058 [XRay] Clean up XRay build configuration
Summary:
This change spans both LLVM and compiler-rt, where we do the following:

- Add XRay to the LLVMBuild system, to allow for distributing the XRay
  trace loading library along with the LLVM distributions.

- Use `llvm-config` better in the compiler-rt XRay implementation, to
  depend on the potentially already-distributed LLVM XRay library.

While this is tested with the standalone compiler-rt build, it does
require that the LLVMXRay library (and LLVMSupport as well) are
available during the build. In case the static libraries are available,
the unit tests will build and work fine. We're still having issues with
attempting to use a shared library version of the LLVMXRay library since
the shared library might not be accessible from the standard shared
library lookup paths.

The larger change here is the inclusion of the LLVMXRay library in the
distribution, which allows for building tools around the XRay traces and
profiles that the XRay runtime already generates.

Reviewers: echristo, beanz

Subscribers: mgorny, hiraditya, mboerger, llvm-commits

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

llvm-svn: 342859
2018-09-24 05:28:01 +00:00
..
BlockIndexer.cpp [XRay] Bug fixes for FDR custom event and arg-logging 2018-09-13 09:25:42 +00:00
BlockPrinter.cpp [XRay] Add the `llvm-xray fdr-dump` implementation 2018-09-11 00:22:53 +00:00
BlockVerifier.cpp [XRay] Remove unused reference 2018-09-10 02:57:05 +00:00
CMakeLists.txt [XRay] Use FDR Records+Visitors for Trace Loading 2018-09-11 06:45:59 +00:00
FDRRecordProducer.cpp [XRay] Remove array for Metadata Record Types 2018-08-31 11:41:08 +00:00
FDRRecords.cpp [XRay] FDRTraceWriter and FDR Trace Loading 2018-08-30 07:22:21 +00:00
FDRTraceExpander.cpp [XRay] Use FDR Records+Visitors for Trace Loading 2018-09-11 06:45:59 +00:00
FDRTraceWriter.cpp [XRay] Write the TSC along with CPUID 2018-09-11 07:27:59 +00:00
FileHeaderReader.cpp [XRay] Refactor file header reading (NFC) 2018-08-22 07:37:55 +00:00
InstrumentationMap.cpp [Xray] tooling allow MachO format support 2018-09-10 05:00:43 +00:00
LLVMBuild.txt [XRay] Clean up XRay build configuration 2018-09-24 05:28:01 +00:00
LogBuilderConsumer.cpp [XRay] FDR Record Producer/Consumer Implementation 2018-08-31 08:04:56 +00:00
Profile.cpp [XRay][llvm] Load XRay Profiles 2018-08-30 01:43:22 +00:00
RecordInitializer.cpp [XRay] Add TSC to NewCPUId Records 2018-09-11 06:36:51 +00:00
RecordPrinter.cpp [XRay] Add TSC to NewCPUId Records 2018-09-11 06:36:51 +00:00
Trace.cpp [XRay] Bug fixes for FDR custom event and arg-logging 2018-09-13 09:25:42 +00:00