Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / tools / lli / CMakeLists.txt
blob315de28e12b57ccdbbd420f6c2c2f809c535d566
1 if ( LLVM_INCLUDE_UTILS )
2   add_subdirectory(ChildTarget)
3 endif()
5 set(LLVM_LINK_COMPONENTS
6   CodeGen
7   Core
8   ExecutionEngine
9   IRReader
10   Interpreter
11   JITLink
12   MC
13   MCJIT
14   Object
15   OrcJIT
16   OrcDebugging
17   OrcShared
18   OrcTargetProcess
19   Passes
20   RuntimeDyld
21   SelectionDAG
22   Support
23   Target
24   TargetParser
25   TransformUtils
26   native
27   )
29 if( LLVM_USE_OPROFILE )
30   set(LLVM_LINK_COMPONENTS
31     ${LLVM_LINK_COMPONENTS}
32     OProfileJIT
33     )
34 endif( LLVM_USE_OPROFILE )
36 if( LLVM_USE_INTEL_JITEVENTS )
37   set(LLVM_LINK_COMPONENTS
38     ${LLVM_LINK_COMPONENTS}
39     DebugInfoDWARF
40     IntelJITEvents
41     Object
42     )
43 endif( LLVM_USE_INTEL_JITEVENTS )
45 if( LLVM_USE_PERF )
46   set(LLVM_LINK_COMPONENTS
47     ${LLVM_LINK_COMPONENTS}
48     DebugInfoDWARF
49     PerfJITEvents
50     Object
51     )
52 endif( LLVM_USE_PERF )
54 add_llvm_tool(lli
55   lli.cpp
56   ExecutionUtils.cpp
58   DEPENDS
59   intrinsics_gen
60   )
62 export_executable_symbols(lli)