[llvm-commits] [llvm] r59342 - in /llvm/trunk: CMakeLists.txt include/llvm/CMakeLists.txt
Oscar Fuentes
ofv at wanadoo.es
Fri Nov 14 16:24:38 PST 2008
Author: ofv
Date: Fri Nov 14 18:24:38 2008
New Revision: 59342
URL: http://llvm.org/viewvc/llvm-project?rev=59342&view=rev
Log:
CMake: Moved generation of Intrinsics.gen to
include/llvm/CMakeLists.txt. Does it with the `tablegen' cmake macro.
Added:
llvm/trunk/include/llvm/CMakeLists.txt
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=59342&r1=59341&r2=59342&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Fri Nov 14 18:24:38 2008
@@ -157,15 +157,7 @@
include( CrossCompileLLVM )
endif( CMAKE_CROSSCOMPILING )
-add_custom_command(OUTPUT ${llvm_builded_incs_dir}/Intrinsics.gen
- COMMAND ${LLVM_TABLEGEN} -gen-intrinsic -I ${LLVM_MAIN_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR}/llvm/Intrinsics.td -o ${llvm_builded_incs_dir}/Intrinsics.gen
- DEPENDS tblgen
- COMMENT "Building intrinsics.gen...")
-
-add_custom_target(intrinsics_gen ALL
- DEPENDS ${llvm_builded_incs_dir}/Intrinsics.gen)
-
-set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} intrinsics_gen )
+add_subdirectory(include/llvm)
add_subdirectory(lib/VMCore)
add_subdirectory(lib/CodeGen)
Added: llvm/trunk/include/llvm/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CMakeLists.txt?rev=59342&view=auto
==============================================================================
--- llvm/trunk/include/llvm/CMakeLists.txt (added)
+++ llvm/trunk/include/llvm/CMakeLists.txt Fri Nov 14 18:24:38 2008
@@ -0,0 +1,8 @@
+set(LLVM_TARGET_DEFINITIONS Intrinsics.td)
+
+tablegen(Intrinsics.gen -gen-intrinsic)
+
+add_custom_target(intrinsics_gen ALL
+ DEPENDS ${llvm_builded_incs_dir}/Intrinsics.gen)
+
+set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} intrinsics_gen PARENT_SCOPE)
More information about the llvm-commits
mailing list