[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287206 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Bieneman 2016-11-17 04:36:50 +00:00
parent 44a5962ac5
commit 92cb3eecbd
22 changed files with 66 additions and 44 deletions

View File

@ -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
)

View File

@ -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
)

View File

@ -22,6 +22,7 @@ add_llvm_library(LLVMAsmPrinter
OcamlGCPrinter.cpp
WinException.cpp
CodeViewDebug.cpp
)
add_dependencies(LLVMAsmPrinter intrinsics_gen)
DEPENDS
intrinsics_gen
)

View File

@ -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)

View File

@ -28,6 +28,7 @@ endif()
add_llvm_library(LLVMGlobalISel
${GLOBAL_ISEL_BUILD_FILES}
GlobalISel.cpp
DEPENDS
intrinsics_gen
)
add_dependencies(LLVMGlobalISel intrinsics_gen)

View File

@ -2,6 +2,7 @@ add_llvm_library(LLVMMIRParser
MILexer.cpp
MIParser.cpp
MIRParser.cpp
)
add_dependencies(LLVMMIRParser intrinsics_gen)
DEPENDS
intrinsics_gen
)

View File

@ -23,6 +23,7 @@ add_llvm_library(LLVMSelectionDAG
SelectionDAGTargetInfo.cpp
StatepointLowering.cpp
TargetLowering.cpp
DEPENDS
intrinsics_gen
)
add_dependencies(LLVMSelectionDAG intrinsics_gen)

View File

@ -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)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -5,6 +5,7 @@ add_llvm_library(LLVMCoroutines
CoroElide.cpp
CoroFrame.cpp
CoroSplit.cpp
)
add_dependencies(LLVMCoroutines intrinsics_gen)
DEPENDS
intrinsics_gen
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)