From: Kern Handa Date: Wed, 5 Feb 2020 03:42:17 +0000 (+0000) Subject: [mlir] Mark the MLIR tools for installation in CMake X-Git-Tag: llvmorg-12-init~15728 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8004b7308b490b93231789cd05f86294a77d663;p=platform%2Fupstream%2Fllvm.git [mlir] Mark the MLIR tools for installation in CMake This binplaces `mlir-translate`, `mlir-cuda-runner`, and `mlir-cpu-runner` when building the CMake install target. Differential Revision: https://reviews.llvm.org/D73986 --- diff --git a/mlir/tools/mlir-cpu-runner/CMakeLists.txt b/mlir/tools/mlir-cpu-runner/CMakeLists.txt index 8227ac2..21da905 100644 --- a/mlir/tools/mlir-cpu-runner/CMakeLists.txt +++ b/mlir/tools/mlir-cpu-runner/CMakeLists.txt @@ -1,4 +1,4 @@ -add_llvm_executable(mlir-cpu-runner +add_llvm_tool(mlir-cpu-runner mlir-cpu-runner.cpp ) llvm_update_compile_flags(mlir-cpu-runner) diff --git a/mlir/tools/mlir-cuda-runner/CMakeLists.txt b/mlir/tools/mlir-cuda-runner/CMakeLists.txt index 6d296a5..294ff7f 100644 --- a/mlir/tools/mlir-cuda-runner/CMakeLists.txt +++ b/mlir/tools/mlir-cuda-runner/CMakeLists.txt @@ -60,7 +60,7 @@ if(MLIR_CUDA_RUNNER_ENABLED) LLVMSupport ${CUDA_RUNTIME_LIBRARY} ) - add_llvm_executable(mlir-cuda-runner + add_llvm_tool(mlir-cuda-runner mlir-cuda-runner.cpp ) add_dependencies(mlir-cuda-runner cuda-runtime-wrappers) diff --git a/mlir/tools/mlir-translate/CMakeLists.txt b/mlir/tools/mlir-translate/CMakeLists.txt index 22b5ff3..9d58557 100644 --- a/mlir/tools/mlir-translate/CMakeLists.txt +++ b/mlir/tools/mlir-translate/CMakeLists.txt @@ -9,7 +9,7 @@ set(LIBS MLIRTranslation MLIRSupport ) -add_llvm_executable(mlir-translate +add_llvm_tool(mlir-translate mlir-translate.cpp ) llvm_update_compile_flags(mlir-translate)