summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKern Handa <kern.handa@gmail.com>2020-02-05 03:42:17 +0000
committerHans Wennborg <hans@chromium.org>2020-02-05 09:17:18 +0100
commit211aa5bf59eb36cd40b38b596901b6ce7cc84ba2 (patch)
tree8601cef1318f2c378165068a5c83c362d7174105
parentb833e0c5f1190e7102e570b0eb5055174aa03b32 (diff)
downloadbcm5719-llvm-211aa5bf59eb36cd40b38b596901b6ce7cc84ba2.tar.gz
bcm5719-llvm-211aa5bf59eb36cd40b38b596901b6ce7cc84ba2.zip
[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 (cherry picked from commit b8004b7308b490b93231789cd05f86294a77d663)
-rw-r--r--mlir/tools/mlir-cpu-runner/CMakeLists.txt2
-rw-r--r--mlir/tools/mlir-cuda-runner/CMakeLists.txt2
-rw-r--r--mlir/tools/mlir-translate/CMakeLists.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/mlir/tools/mlir-cpu-runner/CMakeLists.txt b/mlir/tools/mlir-cpu-runner/CMakeLists.txt
index 8227ac27c96..21da9052d05 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 6d296a5a5c7..294ff7f0f70 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 22b5ff35679..9d585579060 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)
OpenPOWER on IntegriCloud