Hook up LLVM's SPARC target.
This commit is contained in:
parent
03e0d01e97
commit
b49cc14919
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile,v 1.6 2011/07/04 22:37:59 joerg Exp $
|
# $NetBSD: Makefile,v 1.7 2011/07/05 14:15:56 joerg Exp $
|
||||||
|
|
||||||
PROG_CXX= clang
|
PROG_CXX= clang
|
||||||
NOMAN= yes
|
NOMAN= yes
|
||||||
|
@ -41,6 +41,8 @@ LLVM_LIBS+= \
|
||||||
PowerPCCodeGen \
|
PowerPCCodeGen \
|
||||||
PowerPCTargetInfo \
|
PowerPCTargetInfo \
|
||||||
PowerPCAsmPrinter \
|
PowerPCAsmPrinter \
|
||||||
|
SparcCodeGen \
|
||||||
|
SparcTargetInfo \
|
||||||
X86CodeGen \
|
X86CodeGen \
|
||||||
X86TargetInfo \
|
X86TargetInfo \
|
||||||
X86Utils \
|
X86Utils \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile,v 1.3 2011/07/04 22:37:59 joerg Exp $
|
# $NetBSD: Makefile,v 1.4 2011/07/05 14:15:56 joerg Exp $
|
||||||
|
|
||||||
PROG_CXX= llc
|
PROG_CXX= llc
|
||||||
NOMAN= yes
|
NOMAN= yes
|
||||||
|
@ -16,6 +16,8 @@ LLVM_LIBS+= \
|
||||||
PowerPCCodeGen \
|
PowerPCCodeGen \
|
||||||
PowerPCTargetInfo \
|
PowerPCTargetInfo \
|
||||||
PowerPCAsmPrinter \
|
PowerPCAsmPrinter \
|
||||||
|
SparcCodeGen \
|
||||||
|
SparcTargetInfo \
|
||||||
X86CodeGen \
|
X86CodeGen \
|
||||||
X86TargetInfo \
|
X86TargetInfo \
|
||||||
X86AsmParser \
|
X86AsmParser \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile,v 1.3 2011/07/04 22:37:59 joerg Exp $
|
# $NetBSD: Makefile,v 1.4 2011/07/05 14:15:56 joerg Exp $
|
||||||
|
|
||||||
PROG_CXX= llvm-mc
|
PROG_CXX= llvm-mc
|
||||||
NOMAN= yes
|
NOMAN= yes
|
||||||
|
@ -14,6 +14,8 @@ LLVM_LIBS+= \
|
||||||
PowerPCCodeGen \
|
PowerPCCodeGen \
|
||||||
PowerPCTargetInfo \
|
PowerPCTargetInfo \
|
||||||
PowerPCAsmPrinter \
|
PowerPCAsmPrinter \
|
||||||
|
SparcCodeGen \
|
||||||
|
SparcTargetInfo \
|
||||||
X86CodeGen \
|
X86CodeGen \
|
||||||
X86TargetInfo \
|
X86TargetInfo \
|
||||||
X86AsmParser \
|
X86AsmParser \
|
||||||
|
|
|
@ -24,6 +24,6 @@
|
||||||
# error Please define the macro LLVM_ASM_PRINTER(TargetName)
|
# error Please define the macro LLVM_ASM_PRINTER(TargetName)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LLVM_ASM_PRINTER(X86) LLVM_ASM_PRINTER(PowerPC)
|
LLVM_ASM_PRINTER(X86) LLVM_ASM_PRINTER(PowerPC) LLVM_ASM_PRINTER(Sparc)
|
||||||
|
|
||||||
#undef LLVM_ASM_PRINTER
|
#undef LLVM_ASM_PRINTER
|
||||||
|
|
|
@ -23,6 +23,6 @@
|
||||||
# error Please define the macro LLVM_TARGET(TargetName)
|
# error Please define the macro LLVM_TARGET(TargetName)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LLVM_TARGET(X86) LLVM_TARGET(PowerPC)
|
LLVM_TARGET(X86) LLVM_TARGET(PowerPC) LLVM_TARGET(Sparc)
|
||||||
|
|
||||||
#undef LLVM_TARGET
|
#undef LLVM_TARGET
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile,v 1.7 2011/07/04 22:37:59 joerg Exp $
|
# $NetBSD: Makefile,v 1.8 2011/07/05 14:15:56 joerg Exp $
|
||||||
|
|
||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ SUBDIR= \
|
||||||
libLLVMTarget \
|
libLLVMTarget \
|
||||||
libLLVMTransformsUtils \
|
libLLVMTransformsUtils \
|
||||||
libLLVMPowerPCCodeGen \
|
libLLVMPowerPCCodeGen \
|
||||||
|
libLLVMSparcCodeGen \
|
||||||
libLLVMX86CodeGen
|
libLLVMX86CodeGen
|
||||||
|
|
||||||
SUBDIR+= .WAIT
|
SUBDIR+= .WAIT
|
||||||
|
@ -33,6 +34,9 @@ SUBDIR+= \
|
||||||
libLLVMPowerPCAsmPrinter \
|
libLLVMPowerPCAsmPrinter \
|
||||||
libLLVMPowerPCTargetInfo
|
libLLVMPowerPCTargetInfo
|
||||||
|
|
||||||
|
SUBDIR+= \
|
||||||
|
libLLVMSparcTargetInfo
|
||||||
|
|
||||||
SUBDIR+= \
|
SUBDIR+= \
|
||||||
libLLVMX86AsmParser \
|
libLLVMX86AsmParser \
|
||||||
libLLVMX86AsmPrinter \
|
libLLVMX86AsmPrinter \
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2011/07/05 14:15:56 joerg Exp $
|
||||||
|
|
||||||
|
LIB= LLVMSparcCodeGen
|
||||||
|
|
||||||
|
.include <bsd.init.mk>
|
||||||
|
|
||||||
|
.PATH: ${LLVM_SRCDIR}/lib/Target/Sparc
|
||||||
|
|
||||||
|
SRCS+= DelaySlotFiller.cpp \
|
||||||
|
FPMover.cpp \
|
||||||
|
SparcAsmPrinter.cpp \
|
||||||
|
SparcInstrInfo.cpp \
|
||||||
|
SparcISelDAGToDAG.cpp \
|
||||||
|
SparcISelLowering.cpp \
|
||||||
|
SparcFrameLowering.cpp \
|
||||||
|
SparcMCAsmInfo.cpp \
|
||||||
|
SparcRegisterInfo.cpp \
|
||||||
|
SparcSubtarget.cpp \
|
||||||
|
SparcTargetMachine.cpp \
|
||||||
|
SparcSelectionDAGInfo.cpp
|
||||||
|
|
||||||
|
|
||||||
|
TABLEGEN_SRC= Sparc.td
|
||||||
|
TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/Sparc
|
||||||
|
TABLEGEN_OUTPUT= \
|
||||||
|
SparcGenRegisterInfo.inc|-gen-register-info \
|
||||||
|
SparcGenInstrInfo.inc|-gen-instr-info \
|
||||||
|
SparcGenAsmWriter.inc|-gen-asm-writer \
|
||||||
|
SparcGenDAGISel.inc|-gen-dag-isel \
|
||||||
|
SparcGenSubtargetInfo.inc|-gen-subtarget \
|
||||||
|
SparcGenCallingConv.inc|-gen-callingconv \
|
||||||
|
|
||||||
|
.include "${.PARSEDIR}/../../tablegen.mk"
|
||||||
|
|
||||||
|
.if defined(HOSTLIB)
|
||||||
|
.include <bsd.hostlib.mk>
|
||||||
|
.else
|
||||||
|
.include <bsd.lib.mk>
|
||||||
|
.endif
|
|
@ -0,0 +1,18 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2011/07/05 14:15:56 joerg Exp $
|
||||||
|
|
||||||
|
LIB= LLVMSparcTargetInfo
|
||||||
|
|
||||||
|
.include <bsd.init.mk>
|
||||||
|
|
||||||
|
SPARC_OBJDIR!= cd ${.CURDIR}/../libLLVMSparcCodeGen && ${PRINTOBJDIR}
|
||||||
|
CPPFLAGS+= -I${SPARC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Sparc
|
||||||
|
|
||||||
|
.PATH: ${LLVM_SRCDIR}/lib/Target/Sparc/TargetInfo
|
||||||
|
|
||||||
|
SRCS+= SparcTargetInfo.cpp
|
||||||
|
|
||||||
|
.if defined(HOSTLIB)
|
||||||
|
.include <bsd.hostlib.mk>
|
||||||
|
.else
|
||||||
|
.include <bsd.lib.mk>
|
||||||
|
.endif
|
|
@ -0,0 +1,3 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2011/07/05 14:15:56 joerg Exp $
|
||||||
|
|
||||||
|
.include <bsd.init.mk>
|
|
@ -0,0 +1,3 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1 2011/07/05 14:15:56 joerg Exp $
|
||||||
|
|
||||||
|
.include <bsd.init.mk>
|
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile,v 1.5 2011/07/04 22:37:58 joerg Exp $
|
# $NetBSD: Makefile,v 1.6 2011/07/05 14:15:56 joerg Exp $
|
||||||
|
|
||||||
.include <bsd.init.mk>
|
.include <bsd.init.mk>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ config/include/clang/Basic/Version.inc: \
|
||||||
config/config.status: ${LLVM_SRCDIR}/configure
|
config/config.status: ${LLVM_SRCDIR}/configure
|
||||||
mkdir -p config
|
mkdir -p config
|
||||||
cd config && ${LLVM_SRCDIR}/configure --prefix=/usr \
|
cd config && ${LLVM_SRCDIR}/configure --prefix=/usr \
|
||||||
--enable-targets=x86,powerpc --host=${MACHINE_GNU_PLATFORM} \
|
--enable-targets=x86,powerpc,sparc --host=${MACHINE_GNU_PLATFORM} \
|
||||||
--with-c-include-dirs=/usr/include/clang-3.0:/usr/include \
|
--with-c-include-dirs=/usr/include/clang-3.0:/usr/include \
|
||||||
--enable-optimized --disable--assertions
|
--enable-optimized --disable--assertions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue