[PATCH] D73986: [nfc][mlir] Mark the MLIR tools for installation in CMake
Kern Handa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 4 11:44:46 PST 2020
kernhanda created this revision.
kernhanda added reviewers: mehdi_amini, nicolasvasilache, ftynse.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mgorny.
Herald added a project: LLVM.
kernhanda edited the summary of this revision.
This binplaces `mlir-translate`, `mlir-cuda-runner`, and `mlir-cpu-runner` when building the CMake install target.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73986
Files:
mlir/tools/mlir-cpu-runner/CMakeLists.txt
mlir/tools/mlir-cuda-runner/CMakeLists.txt
mlir/tools/mlir-translate/CMakeLists.txt
Index: mlir/tools/mlir-translate/CMakeLists.txt
===================================================================
--- mlir/tools/mlir-translate/CMakeLists.txt
+++ mlir/tools/mlir-translate/CMakeLists.txt
@@ -9,7 +9,7 @@
MLIRTranslation
MLIRSupport
)
-add_llvm_executable(mlir-translate
+add_llvm_tool(mlir-translate
mlir-translate.cpp
)
llvm_update_compile_flags(mlir-translate)
Index: mlir/tools/mlir-cuda-runner/CMakeLists.txt
===================================================================
--- mlir/tools/mlir-cuda-runner/CMakeLists.txt
+++ mlir/tools/mlir-cuda-runner/CMakeLists.txt
@@ -60,7 +60,7 @@
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)
Index: mlir/tools/mlir-cpu-runner/CMakeLists.txt
===================================================================
--- mlir/tools/mlir-cpu-runner/CMakeLists.txt
+++ 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73986.242387.patch
Type: text/x-patch
Size: 1202 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200204/c2b315c8/attachment.bin>
More information about the llvm-commits
mailing list