From 2390b62f3afd9cc83d03a1972d4533eb52c246a4 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106220 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/CMakeLists.txt | 5 +++++ lib/AST/CMakeLists.txt | 4 ++-- lib/Basic/CMakeLists.txt | 2 ++ lib/Headers/CMakeLists.txt | 3 +-- lib/Sema/CMakeLists.txt | 4 ++-- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/include/clang/Basic/CMakeLists.txt b/include/clang/Basic/CMakeLists.txt index c88278aed1..c5952365d5 100644 --- a/include/clang/Basic/CMakeLists.txt +++ b/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/lib/AST/CMakeLists.txt b/lib/AST/CMakeLists.txt index 16abc65abb..4e09a9b8fc 100644 --- a/lib/AST/CMakeLists.txt +++ b/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/lib/Basic/CMakeLists.txt b/lib/Basic/CMakeLists.txt index b46d8fc9a6..87bf834c27 100644 --- a/lib/Basic/CMakeLists.txt +++ b/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/lib/Headers/CMakeLists.txt b/lib/Headers/CMakeLists.txt index 883b60a2a6..97a99d676e 100644 --- a/lib/Headers/CMakeLists.txt +++ b/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/lib/Sema/CMakeLists.txt b/lib/Sema/CMakeLists.txt index baaac4ce32..70b4792f3b 100644 --- a/lib/Sema/CMakeLists.txt +++ b/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)