[llvm] r287206 - [CMake] NFC. Updating CMake dependency specifications
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 20:36:51 PST 2016
Author: cbieneman
Date: Wed Nov 16 22:36:50 2016
New Revision: 287206
URL: http://llvm.org/viewvc/llvm-project?rev=287206&view=rev
Log:
[CMake] NFC. Updating CMake dependency specifications
This patch updates a bunch of places where add_dependencies was being explicitly called to add dependencies on intrinsics_gen to instead use the DEPENDS named parameter. This cleanup is needed for a patch I'm working on to add a dependency debugging mode to the build system.
Modified:
llvm/trunk/lib/Analysis/CMakeLists.txt
llvm/trunk/lib/Bitcode/Reader/CMakeLists.txt
llvm/trunk/lib/CodeGen/AsmPrinter/CMakeLists.txt
llvm/trunk/lib/CodeGen/CMakeLists.txt
llvm/trunk/lib/CodeGen/GlobalISel/CMakeLists.txt
llvm/trunk/lib/CodeGen/MIRParser/CMakeLists.txt
llvm/trunk/lib/CodeGen/SelectionDAG/CMakeLists.txt
llvm/trunk/lib/ExecutionEngine/Interpreter/CMakeLists.txt
llvm/trunk/lib/IR/CMakeLists.txt
llvm/trunk/lib/LTO/CMakeLists.txt
llvm/trunk/lib/Passes/CMakeLists.txt
llvm/trunk/lib/Target/AArch64/CMakeLists.txt
llvm/trunk/lib/Target/AVR/CMakeLists.txt
llvm/trunk/lib/Target/WebAssembly/CMakeLists.txt
llvm/trunk/lib/Transforms/Coroutines/CMakeLists.txt
llvm/trunk/lib/Transforms/IPO/CMakeLists.txt
llvm/trunk/lib/Transforms/InstCombine/CMakeLists.txt
llvm/trunk/lib/Transforms/Instrumentation/CMakeLists.txt
llvm/trunk/lib/Transforms/ObjCARC/CMakeLists.txt
llvm/trunk/lib/Transforms/Scalar/CMakeLists.txt
llvm/trunk/lib/Transforms/Utils/CMakeLists.txt
llvm/trunk/lib/Transforms/Vectorize/CMakeLists.txt
Modified: llvm/trunk/lib/Analysis/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CMakeLists.txt (original)
+++ llvm/trunk/lib/Analysis/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -83,6 +83,7 @@ add_llvm_library(LLVMAnalysis
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis
- )
-add_dependencies(LLVMAnalysis intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/Bitcode/Reader/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/CMakeLists.txt (original)
+++ llvm/trunk/lib/Bitcode/Reader/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -5,6 +5,7 @@ add_llvm_library(LLVMBitReader
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Bitcode
- )
-add_dependencies(LLVMBitReader intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/CMakeLists.txt (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -22,6 +22,7 @@ add_llvm_library(LLVMAsmPrinter
OcamlGCPrinter.cpp
WinException.cpp
CodeViewDebug.cpp
- )
-add_dependencies(LLVMAsmPrinter intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/CodeGen/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CMakeLists.txt (original)
+++ llvm/trunk/lib/CodeGen/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -147,9 +147,10 @@ add_llvm_library(LLVMCodeGen
${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen/PBQP
LINK_LIBS ${PTHREAD_LIB}
- )
-add_dependencies(LLVMCodeGen intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
add_subdirectory(SelectionDAG)
add_subdirectory(AsmPrinter)
Modified: llvm/trunk/lib/CodeGen/GlobalISel/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/CMakeLists.txt (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -28,6 +28,7 @@ endif()
add_llvm_library(LLVMGlobalISel
${GLOBAL_ISEL_BUILD_FILES}
GlobalISel.cpp
+
+ DEPENDS
+ intrinsics_gen
)
-
-add_dependencies(LLVMGlobalISel intrinsics_gen)
Modified: llvm/trunk/lib/CodeGen/MIRParser/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MIRParser/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MIRParser/CMakeLists.txt (original)
+++ llvm/trunk/lib/CodeGen/MIRParser/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -2,6 +2,7 @@ add_llvm_library(LLVMMIRParser
MILexer.cpp
MIParser.cpp
MIRParser.cpp
- )
-add_dependencies(LLVMMIRParser intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/CMakeLists.txt (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -23,6 +23,7 @@ add_llvm_library(LLVMSelectionDAG
SelectionDAGTargetInfo.cpp
StatepointLowering.cpp
TargetLowering.cpp
+
+ DEPENDS
+ intrinsics_gen
)
-
-add_dependencies(LLVMSelectionDAG intrinsics_gen)
Modified: llvm/trunk/lib/ExecutionEngine/Interpreter/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Interpreter/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Interpreter/CMakeLists.txt (original)
+++ llvm/trunk/lib/ExecutionEngine/Interpreter/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -10,10 +10,11 @@ add_llvm_library(LLVMInterpreter
Execution.cpp
ExternalFunctions.cpp
Interpreter.cpp
+
+ DEPENDS
+ intrinsics_gen
)
if( LLVM_ENABLE_FFI )
target_link_libraries( LLVMInterpreter PRIVATE ${FFI_LIBRARY_PATH} )
endif()
-
-add_dependencies(LLVMInterpreter intrinsics_gen)
Modified: llvm/trunk/lib/IR/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/IR/CMakeLists.txt (original)
+++ llvm/trunk/lib/IR/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -56,6 +56,7 @@ add_llvm_library(LLVMCore
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/IR
- )
-add_dependencies(LLVMCore intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/LTO/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/CMakeLists.txt (original)
+++ llvm/trunk/lib/LTO/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -59,6 +59,7 @@ add_llvm_library(LLVMLTO
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/LTO
-)
-add_dependencies(LLVMLTO intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+)
Modified: llvm/trunk/lib/Passes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Passes/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Passes/CMakeLists.txt (original)
+++ llvm/trunk/lib/Passes/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -3,6 +3,7 @@ add_llvm_library(LLVMPasses
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Passes
- )
-add_dependencies(LLVMPasses intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/Target/AArch64/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/AArch64/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -64,9 +64,10 @@ add_llvm_target(AArch64CodeGen
AArch64TargetTransformInfo.cpp
AArch64VectorByElementOpt.cpp
${GLOBAL_ISEL_BUILD_FILES}
-)
-add_dependencies(LLVMAArch64CodeGen intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+)
add_subdirectory(TargetInfo)
add_subdirectory(AsmParser)
Modified: llvm/trunk/lib/Target/AVR/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/AVR/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -28,9 +28,10 @@ add_llvm_target(AVRCodeGen
AVRSubtarget.cpp
AVRTargetMachine.cpp
AVRTargetObjectFile.cpp
-)
-add_dependencies(LLVMAVRCodeGen intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+)
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)
Modified: llvm/trunk/lib/Target/WebAssembly/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/WebAssembly/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -42,9 +42,10 @@ add_llvm_target(WebAssemblyCodeGen
WebAssemblyTargetObjectFile.cpp
WebAssemblyTargetTransformInfo.cpp
WebAssemblyUtilities.cpp
-)
-add_dependencies(LLVMWebAssemblyCodeGen intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+)
add_subdirectory(Disassembler)
add_subdirectory(InstPrinter)
Modified: llvm/trunk/lib/Transforms/Coroutines/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Coroutines/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Coroutines/CMakeLists.txt (original)
+++ llvm/trunk/lib/Transforms/Coroutines/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -5,6 +5,7 @@ add_llvm_library(LLVMCoroutines
CoroElide.cpp
CoroFrame.cpp
CoroSplit.cpp
- )
-add_dependencies(LLVMCoroutines intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/Transforms/IPO/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/CMakeLists.txt (original)
+++ llvm/trunk/lib/Transforms/IPO/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -33,6 +33,7 @@ add_llvm_library(LLVMipo
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/IPO
- )
-add_dependencies(LLVMipo intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/Transforms/InstCombine/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/CMakeLists.txt (original)
+++ llvm/trunk/lib/Transforms/InstCombine/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -16,6 +16,7 @@ add_llvm_library(LLVMInstCombine
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/InstCombine
- )
-add_dependencies(LLVMInstCombine intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/Transforms/Instrumentation/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/CMakeLists.txt (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -14,6 +14,7 @@ add_llvm_library(LLVMInstrumentation
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
- )
-add_dependencies(LLVMInstrumentation intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/Transforms/ObjCARC/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/ObjCARC/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/ObjCARC/CMakeLists.txt (original)
+++ llvm/trunk/lib/Transforms/ObjCARC/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -11,6 +11,7 @@ add_llvm_library(LLVMObjCARCOpts
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
- )
-add_dependencies(LLVMObjCARCOpts intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/Transforms/Scalar/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/CMakeLists.txt (original)
+++ llvm/trunk/lib/Transforms/Scalar/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -59,6 +59,7 @@ add_llvm_library(LLVMScalarOpts
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/Scalar
- )
-add_dependencies(LLVMScalarOpts intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/Transforms/Utils/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CMakeLists.txt (original)
+++ llvm/trunk/lib/Transforms/Utils/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -54,6 +54,7 @@ add_llvm_library(LLVMTransformUtils
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/Utils
- )
-add_dependencies(LLVMTransformUtils intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
Modified: llvm/trunk/lib/Transforms/Vectorize/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/CMakeLists.txt?rev=287206&r1=287205&r2=287206&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/CMakeLists.txt (original)
+++ llvm/trunk/lib/Transforms/Vectorize/CMakeLists.txt Wed Nov 16 22:36:50 2016
@@ -7,6 +7,7 @@ add_llvm_library(LLVMVectorize
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
- )
-add_dependencies(LLVMVectorize intrinsics_gen)
+ DEPENDS
+ intrinsics_gen
+ )
More information about the llvm-commits
mailing list