Target/*/CMakeLists.txt: Add the dependency to CommonTableGen explicitly for each corresponding CodeGen.

Without explicit dependencies, both per-file action and in-CommonTableGen action could run in parallel.
It races to emit *.inc files simultaneously.

llvm-svn: 187780
This commit is contained in:
NAKAMURA Takumi 2013-08-06 06:38:37 +00:00
parent 9bc00b65b6
commit aaf66c7357
12 changed files with 14 additions and 12 deletions

View File

@ -28,6 +28,8 @@ add_llvm_target(AArch64CodeGen
AArch64TargetObjectFile.cpp
)
add_dependencies(LLVMAArch64CodeGen AArch64CommonTableGen)
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)
add_subdirectory(InstPrinter)

View File

@ -49,7 +49,7 @@ add_llvm_target(ARMCodeGen
Thumb2SizeReduction.cpp
)
add_dependencies(LLVMARMCodeGen intrinsics_gen)
add_dependencies(LLVMARMCodeGen ARMCommonTableGen intrinsics_gen)
# workaround for hanging compilation on MSVC9, 10
if( MSVC_VERSION EQUAL 1600 OR MSVC_VERSION EQUAL 1500 )

View File

@ -9,8 +9,6 @@ tablegen(LLVM HexagonGenSubtargetInfo.inc -gen-subtarget)
tablegen(LLVM HexagonGenDFAPacketizer.inc -gen-dfa-packetizer)
add_public_tablegen_target(HexagonCommonTableGen)
set(LLVM_COMMON_DEPENDS intrinsics_gen)
add_llvm_target(HexagonCodeGen
HexagonAsmPrinter.cpp
HexagonCallingConvLower.cpp
@ -38,6 +36,8 @@ add_llvm_target(HexagonCodeGen
HexagonCopyToCombine.cpp
)
add_dependencies(LLVMHexagonCodeGen HexagonCommonTableGen intrinsics_gen)
add_subdirectory(TargetInfo)
add_subdirectory(InstPrinter)
add_subdirectory(MCTargetDesc)

View File

@ -23,7 +23,7 @@ add_llvm_target(MSP430CodeGen
MSP430MCInstLower.cpp
)
add_dependencies(LLVMMSP430CodeGen intrinsics_gen)
add_dependencies(LLVMMSP430CodeGen MSP430CommonTableGen intrinsics_gen)
add_subdirectory(InstPrinter)
add_subdirectory(TargetInfo)

View File

@ -48,7 +48,7 @@ add_llvm_target(MipsCodeGen
MipsSelectionDAGInfo.cpp
)
add_dependencies(LLVMMipsCodeGen intrinsics_gen)
add_dependencies(LLVMMipsCodeGen MipsCommonTableGen intrinsics_gen)
add_subdirectory(InstPrinter)
add_subdirectory(Disassembler)

View File

@ -29,7 +29,7 @@ set(NVPTXCodeGen_sources
add_llvm_target(NVPTXCodeGen ${NVPTXCodeGen_sources})
add_dependencies(LLVMNVPTXCodeGen intrinsics_gen)
add_dependencies(LLVMNVPTXCodeGen NVPTXCommonTableGen intrinsics_gen)
add_subdirectory(TargetInfo)
add_subdirectory(InstPrinter)

View File

@ -34,7 +34,7 @@ add_llvm_target(PowerPCCodeGen
PPCSelectionDAGInfo.cpp
)
add_dependencies(LLVMPowerPCCodeGen intrinsics_gen)
add_dependencies(LLVMPowerPCCodeGen PowerPCCommonTableGen intrinsics_gen)
add_subdirectory(AsmParser)
add_subdirectory(InstPrinter)

View File

@ -48,7 +48,7 @@ add_llvm_target(R600CodeGen
SIRegisterInfo.cpp
)
add_dependencies(LLVMR600CodeGen intrinsics_gen)
add_dependencies(LLVMR600CodeGen AMDGPUCommonTableGen intrinsics_gen)
add_subdirectory(InstPrinter)
add_subdirectory(TargetInfo)

View File

@ -22,7 +22,7 @@ add_llvm_target(SparcCodeGen
SparcSelectionDAGInfo.cpp
)
add_dependencies(LLVMSparcCodeGen intrinsics_gen)
add_dependencies(LLVMSparcCodeGen SparcCommonTableGen intrinsics_gen)
add_subdirectory(TargetInfo)
add_subdirectory(MCTargetDesc)

View File

@ -28,7 +28,7 @@ add_llvm_target(SystemZCodeGen
SystemZTargetMachine.cpp
)
add_dependencies(LLVMSystemZCodeGen intrinsics_gen)
add_dependencies(LLVMSystemZCodeGen SystemZCommonTableGen intrinsics_gen)
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)

View File

@ -53,7 +53,7 @@ endif()
add_llvm_target(X86CodeGen ${sources})
add_dependencies(LLVMX86CodeGen intrinsics_gen)
add_dependencies(LLVMX86CodeGen X86CommonTableGen intrinsics_gen)
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)

View File

@ -25,7 +25,7 @@ add_llvm_target(XCoreCodeGen
XCoreSelectionDAGInfo.cpp
)
add_dependencies(LLVMXCoreCodeGen intrinsics_gen)
add_dependencies(LLVMXCoreCodeGen XCoreCommonTableGen intrinsics_gen)
add_subdirectory(Disassembler)
add_subdirectory(InstPrinter)