Added support for C6000 with CMake
authorJon Humphreys <jon@micro.ti.com>
Wed, 24 Dec 2014 07:21:58 +0000 (01:21 -0600)
committerJon Humphreys <j-humphreys@ti.com>
Thu, 22 Jan 2015 23:39:32 +0000 (17:39 -0600)
CMakeLists.txt
cmake/config-ix.cmake
configure
lib/Target/C6000/CMakeLists.txt [new file with mode: 0644]
lib/Target/C6000/MCTargetDesc/CMakeLists.txt [new file with mode: 0644]
lib/Target/C6000/TargetInfo/CMakeLists.txt [new file with mode: 0644]

index 3177564b61962a5721a5e01a78639f85131f8e61..f68cd4f1226b51b5c05c4452c34fcfa032e29f5d 100644 (file)
@@ -161,6 +161,7 @@ set(LLVM_ALL_TARGETS
   Hexagon
   Mips
   MSP430
+  C6000
   NVPTX
   PowerPC
   R600
index f806d9c54ed93506498281e7c5f1463881879f3d..de098b99f4ad2a5b75e5faa29ef65e74656972b2 100755 (executable)
@@ -363,6 +363,8 @@ elseif (LLVM_NATIVE_ARCH MATCHES "xcore")
   set(LLVM_NATIVE_ARCH XCore)
 elseif (LLVM_NATIVE_ARCH MATCHES "msp430")
   set(LLVM_NATIVE_ARCH MSP430)
+elseif (LLVM_NATIVE_ARCH MATCHES "c6000")
+  set(LLVM_NATIVE_ARCH C6000)
 elseif (LLVM_NATIVE_ARCH MATCHES "hexagon")
   set(LLVM_NATIVE_ARCH Hexagon)
 elseif (LLVM_NATIVE_ARCH MATCHES "s390x")
index 50b0912b43687999e3a483674a9a0decba416d78..fcbe76dd15036285e018feaed5cea4cc5fcfb9dc 100755 (executable)
--- a/configure
+++ b/configure
@@ -1435,8 +1435,8 @@ Optional Features:
   --enable-targets        Build specific host targets: all or
                           target1,target2,... Valid targets are: host, x86,
                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
-                          hexagon, xcore, msp430, nvptx, systemz, r600, and
-                          cpp (default=all)
+                          hexagon, xcore, msp430, c6000, nvptx, 
+                          systemz, r600, and cpp (default=all)
   --enable-experimental-targets
                           Build experimental host targets: disable or
                           target1,target2,... (default=disable)
@@ -5309,7 +5309,7 @@ _ACEOF
 
 fi
 
-ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
+ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 C6000 CppBackend NVPTX Hexagon SystemZ R600"
 ALL_TARGETS=$ALL_TARGETS
 
 
diff --git a/lib/Target/C6000/CMakeLists.txt b/lib/Target/C6000/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6d5848e
--- /dev/null
@@ -0,0 +1,7 @@
+add_llvm_target(C6000CodeGen
+  C6000TargetMachine.cpp
+  C6000TargetTransformInfo.cpp
+  )
+
+add_subdirectory(TargetInfo)
+add_subdirectory(MCTargetDesc)
diff --git a/lib/Target/C6000/MCTargetDesc/CMakeLists.txt b/lib/Target/C6000/MCTargetDesc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2be2650
--- /dev/null
@@ -0,0 +1,3 @@
+add_llvm_library(LLVMC6000Desc
+  C6000MCTargetDesc.cpp
+  )
diff --git a/lib/Target/C6000/TargetInfo/CMakeLists.txt b/lib/Target/C6000/TargetInfo/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1c4f4d6
--- /dev/null
@@ -0,0 +1,3 @@
+add_llvm_library(LLVMC6000Info
+  C6000TargetInfo.cpp
+  )