From 11e485ca19fca0c41818d3dd4fd2a3551abc4b72 Mon Sep 17 00:00:00 2001 From: River Riddle Date: Thu, 30 May 2019 08:23:49 -0700 Subject: [PATCH] Replace usages of 'add_executable' with 'add_llvm_executable'. -- PiperOrigin-RevId: 250691487 --- mlir/examples/Linalg/Linalg1/lib/CMakeLists.txt | 2 +- mlir/test/EDSC/CMakeLists.txt | 2 +- mlir/test/SDBM/CMakeLists.txt | 2 +- mlir/test/TestDialect/CMakeLists.txt | 2 +- mlir/tools/mlir-cpu-runner/CMakeLists.txt | 2 +- mlir/tools/mlir-opt/CMakeLists.txt | 2 +- mlir/tools/mlir-translate/CMakeLists.txt | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mlir/examples/Linalg/Linalg1/lib/CMakeLists.txt b/mlir/examples/Linalg/Linalg1/lib/CMakeLists.txt index 54bf01ff6039..064d0e871703 100644 --- a/mlir/examples/Linalg/Linalg1/lib/CMakeLists.txt +++ b/mlir/examples/Linalg/Linalg1/lib/CMakeLists.txt @@ -52,7 +52,7 @@ add_llvm_library(Linalg1DialectConstruction ) target_link_libraries(Linalg1DialectConstruction PUBLIC Linalg1) -add_executable(linalg1-opt +add_llvm_executable(linalg1-opt DialectRegistration.cpp ) llvm_update_compile_flags(linalg1-opt) diff --git a/mlir/test/EDSC/CMakeLists.txt b/mlir/test/EDSC/CMakeLists.txt index 01fc5ec452e0..17dda5cba167 100644 --- a/mlir/test/EDSC/CMakeLists.txt +++ b/mlir/test/EDSC/CMakeLists.txt @@ -1,4 +1,4 @@ -add_executable(mlir-edsc-builder-api-test +add_llvm_executable(mlir-edsc-builder-api-test builder-api-test.cpp ) diff --git a/mlir/test/SDBM/CMakeLists.txt b/mlir/test/SDBM/CMakeLists.txt index 321a37de559f..d1ced9af8462 100644 --- a/mlir/test/SDBM/CMakeLists.txt +++ b/mlir/test/SDBM/CMakeLists.txt @@ -1,4 +1,4 @@ -add_executable(mlir-sdbm-api-test +add_llvm_executable(mlir-sdbm-api-test sdbm-api-test.cpp ) diff --git a/mlir/test/TestDialect/CMakeLists.txt b/mlir/test/TestDialect/CMakeLists.txt index b0b5027099be..83075f699cf0 100644 --- a/mlir/test/TestDialect/CMakeLists.txt +++ b/mlir/test/TestDialect/CMakeLists.txt @@ -16,7 +16,7 @@ target_link_libraries(MLIRTestDialect LLVMSupport ) -add_executable(mlir-test-opt +add_llvm_executable(mlir-test-opt ${MLIR_MAIN_SRC_DIR}/../tools/mlir-opt/mlir-opt.cpp ) llvm_update_compile_flags(mlir-test-opt) diff --git a/mlir/tools/mlir-cpu-runner/CMakeLists.txt b/mlir/tools/mlir-cpu-runner/CMakeLists.txt index 9460264cdd1c..b680c5c5e98c 100644 --- a/mlir/tools/mlir-cpu-runner/CMakeLists.txt +++ b/mlir/tools/mlir-cpu-runner/CMakeLists.txt @@ -23,7 +23,7 @@ add_llvm_library(MLIRCPURunnerLib ) target_link_libraries(MLIRCPURunnerLib ${LIBS}) -add_executable(mlir-cpu-runner +add_llvm_executable(mlir-cpu-runner mlir-cpu-runner.cpp ) llvm_update_compile_flags(mlir-cpu-runner) diff --git a/mlir/tools/mlir-opt/CMakeLists.txt b/mlir/tools/mlir-opt/CMakeLists.txt index 276be6a7b53b..d67159488939 100644 --- a/mlir/tools/mlir-opt/CMakeLists.txt +++ b/mlir/tools/mlir-opt/CMakeLists.txt @@ -34,7 +34,7 @@ set(LIBS MLIRSupport MLIRVectorOps ) -add_executable(mlir-opt +add_llvm_executable(mlir-opt mlir-opt.cpp ) llvm_update_compile_flags(mlir-opt) diff --git a/mlir/tools/mlir-translate/CMakeLists.txt b/mlir/tools/mlir-translate/CMakeLists.txt index 3d4e96a9dabe..b22d988238a3 100644 --- a/mlir/tools/mlir-translate/CMakeLists.txt +++ b/mlir/tools/mlir-translate/CMakeLists.txt @@ -12,7 +12,7 @@ set(LIBS MLIRSupport MLIRVectorOps ) -add_executable(mlir-translate +add_llvm_executable(mlir-translate mlir-translate.cpp ) llvm_update_compile_flags(mlir-translate)