From: Oscar Fuentes Date: Sat, 15 Nov 2008 00:24:38 +0000 (+0000) Subject: CMake: Moved generation of Intrinsics.gen to X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=422fcf3837e43c430b39d440efbbe369b1aea053;p=oota-llvm.git CMake: Moved generation of Intrinsics.gen to include/llvm/CMakeLists.txt. Does it with the `tablegen' cmake macro. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59342 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c4239b045a..dfdd13c36bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,15 +157,7 @@ if( CMAKE_CROSSCOMPILING ) 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) diff --git a/include/llvm/CMakeLists.txt b/include/llvm/CMakeLists.txt new file mode 100644 index 00000000000..523f2312778 --- /dev/null +++ b/include/llvm/CMakeLists.txt @@ -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)