Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Plugins / Trace / intel-pt / CMakeLists.txt
blob90f36ed31078c559474bdf411460a7f05a9828c3
1 if (NOT LIBIPT_INCLUDE_PATH)
2   message (FATAL_ERROR "libipt include path not provided")
3 endif()
5 if (NOT EXISTS "${LIBIPT_INCLUDE_PATH}")
6   message (FATAL_ERROR "invalid libipt include path provided")
7 endif()
8 include_directories(${LIBIPT_INCLUDE_PATH})
10 find_library(LIBIPT_LIBRARY ipt PATHS ${LIBIPT_LIBRARY_PATH} REQUIRED)
12 lldb_tablegen(TraceIntelPTCommandOptions.inc -gen-lldb-option-defs
13   SOURCE TraceIntelPTOptions.td
14   TARGET TraceIntelPTOptionsGen)
16 lldb_tablegen(TraceIntelPTProperties.inc -gen-lldb-property-defs
17   SOURCE TraceIntelPTProperties.td
18   TARGET TraceIntelPTPropertiesGen)
20 lldb_tablegen(TraceIntelPTPropertiesEnum.inc -gen-lldb-property-enum-defs
21   SOURCE TraceIntelPTProperties.td
22   TARGET TraceIntelPTPropertiesEnumGen)
24 add_lldb_library(lldbPluginTraceIntelPT PLUGIN
25   CommandObjectTraceStartIntelPT.cpp
26   DecodedThread.cpp
27   TaskTimer.cpp
28   LibiptDecoder.cpp
29   PerfContextSwitchDecoder.cpp
30   ThreadDecoder.cpp
31   TraceCursorIntelPT.cpp
32   TraceIntelPT.cpp
33   TraceIntelPTJSONStructs.cpp
34   TraceIntelPTMultiCpuDecoder.cpp
35   TraceIntelPTBundleLoader.cpp
36   TraceIntelPTBundleSaver.cpp
38   LINK_LIBS
39     lldbCore
40     lldbSymbol
41     lldbTarget
42     lldbPluginTraceCommon
43     ${LIBIPT_LIBRARY}
44   LINK_COMPONENTS
45     Support
46   )
49 add_dependencies(lldbPluginTraceIntelPT
50   TraceIntelPTOptionsGen
51   TraceIntelPTPropertiesGen
52   TraceIntelPTPropertiesEnumGen)