Add a basic configuration for the 65816 target - build fails now…
This commit is contained in:
parent
292c2829ab
commit
4b9fc0c5ac
|
@ -1451,8 +1451,8 @@ Optional Features:
|
||||||
--enable-targets Build specific host targets: all or
|
--enable-targets Build specific host targets: all or
|
||||||
target1,target2,... Valid targets are: host, x86,
|
target1,target2,... Valid targets are: host, x86,
|
||||||
x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
|
x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
|
||||||
xcore, msp430, nvptx, systemz, r600, and cpp
|
xcore, msp430, nvptx, systemz, r600, wdc65816 and
|
||||||
(default=all)
|
cpp (default=all)
|
||||||
--enable-experimental-targets
|
--enable-experimental-targets
|
||||||
Build experimental host targets: disable or
|
Build experimental host targets: disable or
|
||||||
target1,target2,... (default=disable)
|
target1,target2,... (default=disable)
|
||||||
|
@ -4058,6 +4058,7 @@ else
|
||||||
hexagon-*) llvm_cv_target_arch="Hexagon" ;;
|
hexagon-*) llvm_cv_target_arch="Hexagon" ;;
|
||||||
nvptx-*) llvm_cv_target_arch="NVPTX" ;;
|
nvptx-*) llvm_cv_target_arch="NVPTX" ;;
|
||||||
s390x-*) llvm_cv_target_arch="SystemZ" ;;
|
s390x-*) llvm_cv_target_arch="SystemZ" ;;
|
||||||
|
wdc65816-*) llvm_cv_target_arch="WDC65816" ;;
|
||||||
*) llvm_cv_target_arch="Unknown" ;;
|
*) llvm_cv_target_arch="Unknown" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -5707,7 +5708,7 @@ if test "$enableval" = host-only ; then
|
||||||
enableval=host
|
enableval=host
|
||||||
fi
|
fi
|
||||||
case "$enableval" in
|
case "$enableval" in
|
||||||
all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
|
all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600 WDC65816" ;;
|
||||||
*)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
|
*)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
|
||||||
case "$a_target" in
|
case "$a_target" in
|
||||||
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
|
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
|
||||||
|
@ -5727,6 +5728,7 @@ case "$enableval" in
|
||||||
nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
|
nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
|
||||||
systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
|
systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
|
||||||
r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
|
r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
|
||||||
|
wdc65816) TARGETS_TO_BUILD="WDC65816 $TARGETS_TO_BUILD" ;;
|
||||||
host) case "$llvm_cv_target_arch" in
|
host) case "$llvm_cv_target_arch" in
|
||||||
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
|
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
|
||||||
x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
|
x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
;===------------------------------------------------------------------------===;
|
;===------------------------------------------------------------------------===;
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
subdirectories = AArch64 ARM CppBackend Hexagon MSP430 NVPTX Mips PowerPC R600 Sparc SystemZ X86 XCore
|
subdirectories = AArch64 ARM CppBackend Hexagon MSP430 NVPTX Mips PowerPC R600 Sparc SystemZ WDC65816 X86 XCore
|
||||||
|
|
||||||
; This is a special group whose required libraries are extended (by llvm-build)
|
; This is a special group whose required libraries are extended (by llvm-build)
|
||||||
; with the best execution engine (the native JIT, if available, or the
|
; with the best execution engine (the native JIT, if available, or the
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
;===- ./lib/Target/WDC65816/LLVMBuild.txt -------------------------*- Conf -*--===;
|
||||||
|
;
|
||||||
|
; The LLVM Compiler Infrastructure
|
||||||
|
;
|
||||||
|
; This file is distributed under the University of Illinois Open Source
|
||||||
|
; License. See LICENSE.TXT for details.
|
||||||
|
;
|
||||||
|
;===------------------------------------------------------------------------===;
|
||||||
|
;
|
||||||
|
; This is an LLVMBuild description file for the components in this subdirectory.
|
||||||
|
;
|
||||||
|
; For more information on the LLVMBuild system, please see:
|
||||||
|
;
|
||||||
|
; http://llvm.org/docs/LLVMBuild.html
|
||||||
|
;
|
||||||
|
;===------------------------------------------------------------------------===;
|
||||||
|
|
||||||
|
[common]
|
||||||
|
subdirectories =
|
||||||
|
|
||||||
|
[component_0]
|
||||||
|
type = TargetGroup
|
||||||
|
name = WDC65816
|
||||||
|
parent = Target
|
||||||
|
has_asmprinter = 0
|
||||||
|
has_jit = 0
|
||||||
|
|
||||||
|
[component_1]
|
||||||
|
type = Library
|
||||||
|
name = WDC65816CodeGen
|
||||||
|
parent = WDC65816
|
||||||
|
required_libraries = AsmPrinter CodeGen Core MC SelectionDAG
|
||||||
|
Support Target
|
||||||
|
add_to_library_groups = WDC65816
|
|
@ -0,0 +1,20 @@
|
||||||
|
##===- lib/Target/WDC65816/Makefile ----------------------------*- Makefile -*-===##
|
||||||
|
#
|
||||||
|
# The LLVM Compiler Infrastructure
|
||||||
|
#
|
||||||
|
# This file is distributed under the University of Illinois Open Source
|
||||||
|
# License. See LICENSE.TXT for details.
|
||||||
|
#
|
||||||
|
##===----------------------------------------------------------------------===##
|
||||||
|
|
||||||
|
LEVEL = ../../..
|
||||||
|
LIBRARYNAME = LLVMWDC65816CodeGen
|
||||||
|
TARGET = WDC65816
|
||||||
|
|
||||||
|
# Make sure that tblgen is run, first thing.
|
||||||
|
BUILT_SOURCES =
|
||||||
|
|
||||||
|
# DIRS = InstPrinter Disassembler AsmParser TargetInfo MCTargetDesc
|
||||||
|
|
||||||
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
Loading…
Reference in New Issue