[llvm] r195929 - [CMake] Let add_public_tablegen_target() provide intrinsics_gen, too.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Nov 28 09:04:32 PST 2013
Author: chapuni
Date: Thu Nov 28 11:04:31 2013
New Revision: 195929
URL: http://llvm.org/viewvc/llvm-project?rev=195929&view=rev
Log:
[CMake] Let add_public_tablegen_target() provide intrinsics_gen, too.
I think, in principle, intrinsics_gen may be added explicitly.
That said, it can be added incidentally, since each target already has dependencies to llvm-tblgen.
Almost all source files depend on both CommonTaleGen and intrinsics_gen.
Explicit add_dependencies() have been pruned under lib/Target.
Modified:
llvm/trunk/cmake/modules/TableGen.cmake
llvm/trunk/lib/Target/ARM/CMakeLists.txt
llvm/trunk/lib/Target/Hexagon/CMakeLists.txt
llvm/trunk/lib/Target/MSP430/CMakeLists.txt
llvm/trunk/lib/Target/Mips/CMakeLists.txt
llvm/trunk/lib/Target/NVPTX/CMakeLists.txt
llvm/trunk/lib/Target/PowerPC/CMakeLists.txt
llvm/trunk/lib/Target/R600/CMakeLists.txt
llvm/trunk/lib/Target/R600/TargetInfo/CMakeLists.txt
llvm/trunk/lib/Target/Sparc/CMakeLists.txt
llvm/trunk/lib/Target/X86/CMakeLists.txt
llvm/trunk/lib/Target/XCore/CMakeLists.txt
Modified: llvm/trunk/cmake/modules/TableGen.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/TableGen.cmake?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/TableGen.cmake (original)
+++ llvm/trunk/cmake/modules/TableGen.cmake Thu Nov 28 11:04:31 2013
@@ -54,7 +54,7 @@ macro(add_public_tablegen_target target)
add_dependencies(${target} ${LLVM_COMMON_DEPENDS})
endif ()
set_target_properties(${target} PROPERTIES FOLDER "Tablegenning")
- list(APPEND LLVM_COMMON_DEPENDS ${target})
+ list(APPEND LLVM_COMMON_DEPENDS ${target} intrinsics_gen)
endif( TABLEGEN_OUTPUT )
endmacro()
Modified: llvm/trunk/lib/Target/ARM/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/ARM/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -49,8 +49,6 @@ add_llvm_target(ARMCodeGen
Thumb2SizeReduction.cpp
)
-add_dependencies(LLVMARMCodeGen intrinsics_gen)
-
# workaround for hanging compilation on MSVC9, 10
if( MSVC_VERSION EQUAL 1600 OR MSVC_VERSION EQUAL 1500 )
set_property(
Modified: llvm/trunk/lib/Target/Hexagon/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/Hexagon/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -37,8 +37,6 @@ add_llvm_target(HexagonCodeGen
HexagonCopyToCombine.cpp
)
-add_dependencies(LLVMHexagonCodeGen intrinsics_gen)
-
add_subdirectory(TargetInfo)
add_subdirectory(InstPrinter)
add_subdirectory(MCTargetDesc)
Modified: llvm/trunk/lib/Target/MSP430/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/MSP430/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -23,8 +23,6 @@ add_llvm_target(MSP430CodeGen
MSP430MCInstLower.cpp
)
-add_dependencies(LLVMMSP430CodeGen intrinsics_gen)
-
add_subdirectory(InstPrinter)
add_subdirectory(TargetInfo)
add_subdirectory(MCTargetDesc)
Modified: llvm/trunk/lib/Target/Mips/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/Mips/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -48,8 +48,6 @@ add_llvm_target(MipsCodeGen
MipsSelectionDAGInfo.cpp
)
-add_dependencies(LLVMMipsCodeGen intrinsics_gen)
-
add_subdirectory(InstPrinter)
add_subdirectory(Disassembler)
add_subdirectory(TargetInfo)
Modified: llvm/trunk/lib/Target/NVPTX/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/NVPTX/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -30,8 +30,6 @@ set(NVPTXCodeGen_sources
add_llvm_target(NVPTXCodeGen ${NVPTXCodeGen_sources})
-add_dependencies(LLVMNVPTXCodeGen intrinsics_gen)
-
add_subdirectory(TargetInfo)
add_subdirectory(InstPrinter)
add_subdirectory(MCTargetDesc)
Modified: llvm/trunk/lib/Target/PowerPC/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/PowerPC/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -34,8 +34,6 @@ add_llvm_target(PowerPCCodeGen
PPCSelectionDAGInfo.cpp
)
-add_dependencies(LLVMPowerPCCodeGen intrinsics_gen)
-
add_subdirectory(AsmParser)
add_subdirectory(InstPrinter)
add_subdirectory(TargetInfo)
Modified: llvm/trunk/lib/Target/R600/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/R600/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -50,8 +50,6 @@ add_llvm_target(R600CodeGen
SITypeRewriter.cpp
)
-add_dependencies(LLVMR600CodeGen intrinsics_gen)
-
add_subdirectory(InstPrinter)
add_subdirectory(TargetInfo)
add_subdirectory(MCTargetDesc)
Modified: llvm/trunk/lib/Target/R600/TargetInfo/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/TargetInfo/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/TargetInfo/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/R600/TargetInfo/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -1,5 +1,3 @@
add_llvm_library(LLVMR600Info
AMDGPUTargetInfo.cpp
)
-
-add_dependencies(LLVMR600Info intrinsics_gen)
Modified: llvm/trunk/lib/Target/Sparc/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/Sparc/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -25,7 +25,5 @@ add_llvm_target(SparcCodeGen
SparcCodeEmitter.cpp
)
-add_dependencies(LLVMSparcCodeGen intrinsics_gen)
-
add_subdirectory(TargetInfo)
add_subdirectory(MCTargetDesc)
Modified: llvm/trunk/lib/Target/X86/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/X86/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -53,8 +53,6 @@ endif()
add_llvm_target(X86CodeGen ${sources})
-add_dependencies(LLVMX86CodeGen intrinsics_gen)
-
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)
add_subdirectory(InstPrinter)
Modified: llvm/trunk/lib/Target/XCore/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/CMakeLists.txt?rev=195929&r1=195928&r2=195929&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/XCore/CMakeLists.txt Thu Nov 28 11:04:31 2013
@@ -26,8 +26,6 @@ add_llvm_target(XCoreCodeGen
XCoreSelectionDAGInfo.cpp
)
-add_dependencies(LLVMXCoreCodeGen intrinsics_gen)
-
add_subdirectory(Disassembler)
add_subdirectory(InstPrinter)
add_subdirectory(TargetInfo)
More information about the llvm-commits
mailing list