Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / openmp / libomptarget / tools / kernelreplay / CMakeLists.txt
blob6f3dc33d6736adfed877bed0dec6480cd9bb9995
1 ##===----------------------------------------------------------------------===##
3 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 # See https://llvm.org/LICENSE.txt for license information.
5 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 ##===----------------------------------------------------------------------===##
9 # Build llvm-omp-kernel-replay tool
11 ##===----------------------------------------------------------------------===##
13 libomptarget_say("Building the llvm-omp-kernel-replay tool")
15 add_openmp_tool(llvm-omp-kernel-replay llvm-omp-kernel-replay.cpp)
17 llvm_update_compile_flags(llvm-omp-kernel-replay)
19 target_include_directories(llvm-omp-kernel-replay PRIVATE
20   ${LIBOMPTARGET_INCLUDE_DIR}
22 target_link_libraries(llvm-omp-kernel-replay PRIVATE
23   LLVMSupport
24   omp
25   omptarget