Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / tools / opt-viewer / CMakeLists.txt
blobc0070f8cbfac8207e939925a3bd940dd5259989f
1 set (files
2   "opt-diff.py"
3   "opt-stats.py"
4   "opt-viewer.py"
5   "optpmap.py"
6   "optrecord.py"
7   "style.css")
9 foreach (file ${files})
10   install(PROGRAMS ${file}
11     DESTINATION "${CMAKE_INSTALL_DATADIR}/opt-viewer"
12     COMPONENT opt-viewer)
13 endforeach (file)
15 add_custom_target(opt-viewer DEPENDS ${files})
16 if(NOT LLVM_ENABLE_IDE)
17   add_llvm_install_targets("install-opt-viewer"
18                            DEPENDS opt-viewer
19                            COMPONENT opt-viewer)
20 endif()