From 055229185957d371d27e571d66c2a401a805813a Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 17 Jun 2010 15:17:41 +0000 Subject: [PATCH] Update CMake build system for ARM NEON generation. llvm-svn: 106220 --- clang/include/clang/Basic/CMakeLists.txt | 5 +++++ clang/lib/AST/CMakeLists.txt | 4 ++-- clang/lib/Basic/CMakeLists.txt | 2 ++ clang/lib/Headers/CMakeLists.txt | 3 +-- clang/lib/Sema/CMakeLists.txt | 4 ++-- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/clang/include/clang/Basic/CMakeLists.txt b/clang/include/clang/Basic/CMakeLists.txt index c88278aed1b8..c5952365d593 100644 --- a/clang/include/clang/Basic/CMakeLists.txt +++ b/clang/include/clang/Basic/CMakeLists.txt @@ -25,3 +25,8 @@ tablegen(AttrList.inc -I ${CMAKE_CURRENT_SOURCE_DIR}/../../) add_custom_target(ClangAttrList DEPENDS AttrList.inc) + +# ARM NEON +set(LLVM_TARGET_DEFINITIONS arm_neon.td) +tablegen(arm_neon.inc -gen-arm-neon-sema) +add_custom_target(ClangARMNeon DEPENDS arm_neon.inc) diff --git a/clang/lib/AST/CMakeLists.txt b/clang/lib/AST/CMakeLists.txt index 16abc65abb2b..4e09a9b8fcf3 100644 --- a/clang/lib/AST/CMakeLists.txt +++ b/clang/lib/AST/CMakeLists.txt @@ -39,5 +39,5 @@ add_clang_library(clangAST TypePrinter.cpp ) -add_dependencies(clangAST ClangAttrClasses ClangAttrList ClangDiagnosticAST - ClangDeclNodes ClangStmtNodes) +add_dependencies(clangAST ClangARMNeon ClangAttrClasses ClangAttrList + ClangDiagnosticAST ClangDeclNodes ClangStmtNodes) diff --git a/clang/lib/Basic/CMakeLists.txt b/clang/lib/Basic/CMakeLists.txt index b46d8fc9a6ab..87bf834c2752 100644 --- a/clang/lib/Basic/CMakeLists.txt +++ b/clang/lib/Basic/CMakeLists.txt @@ -25,6 +25,7 @@ if (Subversion_FOUND AND EXISTS "${CLANG_SOURCE_DIR}/.svn") endif() add_dependencies(clangBasic + ClangARMNeon ClangAttrList ClangDiagnosticAnalysis ClangDiagnosticAST @@ -35,3 +36,4 @@ add_dependencies(clangBasic ClangDiagnosticLex ClangDiagnosticParse ClangDiagnosticSema) + diff --git a/clang/lib/Headers/CMakeLists.txt b/clang/lib/Headers/CMakeLists.txt index 883b60a2a6db..97a99d676e87 100644 --- a/clang/lib/Headers/CMakeLists.txt +++ b/clang/lib/Headers/CMakeLists.txt @@ -22,9 +22,8 @@ else () endif () # Generate arm_neon.h -set(LLVM_TARGET_DEFINITIONS arm_neon.td) +set(LLVM_TARGET_DEFINITIONS ${CLANG_SOURCE_DIR}/include/clang/Basic/arm_neon.td) tablegen(arm_neon.h.inc -gen-arm-neon) -add_custom_target(ClangARMNeon DEPENDS arm_neon.h.inc) add_custom_command(OUTPUT ${output_dir}/arm_neon.h DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h.inc diff --git a/clang/lib/Sema/CMakeLists.txt b/clang/lib/Sema/CMakeLists.txt index baaac4ce32cc..70b4792f3ba5 100644 --- a/clang/lib/Sema/CMakeLists.txt +++ b/clang/lib/Sema/CMakeLists.txt @@ -34,5 +34,5 @@ add_clang_library(clangSema TargetAttributesSema.cpp ) -add_dependencies(clangSema ClangAttrClasses ClangAttrList ClangDiagnosticSema - ClangDeclNodes ClangStmtNodes) +add_dependencies(clangSema ClangARMNeon ClangAttrClasses ClangAttrList + ClangDiagnosticSema ClangDeclNodes ClangStmtNodes)