Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Hook up LLVM's SPARC target.
details: https://anonhg.NetBSD.org/src/rev/b8980897bd55
branches: trunk
changeset: 766972:b8980897bd55
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jul 05 14:15:56 2011 +0000
description:
Hook up LLVM's SPARC target.
diffstat:
external/bsd/llvm/bin/clang/Makefile | 4 +-
external/bsd/llvm/bin/llc/Makefile | 4 +-
external/bsd/llvm/bin/llvm-mc/Makefile | 4 +-
external/bsd/llvm/config/llvm/Config/AsmPrinters.def | 2 +-
external/bsd/llvm/config/llvm/Config/Targets.def | 2 +-
external/bsd/llvm/lib/Makefile | 6 ++-
external/bsd/llvm/lib/libLLVMSparcCodeGen/Makefile | 39 +++++++++++++++++++
external/bsd/llvm/lib/libLLVMSparcTargetInfo/Makefile | 18 ++++++++
tools/llvm-lib/libLLVMSparcCodeGen/Makefile | 3 +
tools/llvm-lib/libLLVMSparcTargetInfo/Makefile | 3 +
tools/llvm/Makefile | 4 +-
11 files changed, 81 insertions(+), 8 deletions(-)
diffs (200 lines):
diff -r 6877314409fb -r b8980897bd55 external/bsd/llvm/bin/clang/Makefile
--- a/external/bsd/llvm/bin/clang/Makefile Tue Jul 05 14:07:12 2011 +0000
+++ b/external/bsd/llvm/bin/clang/Makefile Tue Jul 05 14:15:56 2011 +0000
@@ -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
NOMAN= yes
@@ -41,6 +41,8 @@
PowerPCCodeGen \
PowerPCTargetInfo \
PowerPCAsmPrinter \
+ SparcCodeGen \
+ SparcTargetInfo \
X86CodeGen \
X86TargetInfo \
X86Utils \
diff -r 6877314409fb -r b8980897bd55 external/bsd/llvm/bin/llc/Makefile
--- a/external/bsd/llvm/bin/llc/Makefile Tue Jul 05 14:07:12 2011 +0000
+++ b/external/bsd/llvm/bin/llc/Makefile Tue Jul 05 14:15:56 2011 +0000
@@ -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
NOMAN= yes
@@ -16,6 +16,8 @@
PowerPCCodeGen \
PowerPCTargetInfo \
PowerPCAsmPrinter \
+ SparcCodeGen \
+ SparcTargetInfo \
X86CodeGen \
X86TargetInfo \
X86AsmParser \
diff -r 6877314409fb -r b8980897bd55 external/bsd/llvm/bin/llvm-mc/Makefile
--- a/external/bsd/llvm/bin/llvm-mc/Makefile Tue Jul 05 14:07:12 2011 +0000
+++ b/external/bsd/llvm/bin/llvm-mc/Makefile Tue Jul 05 14:15:56 2011 +0000
@@ -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
NOMAN= yes
@@ -14,6 +14,8 @@
PowerPCCodeGen \
PowerPCTargetInfo \
PowerPCAsmPrinter \
+ SparcCodeGen \
+ SparcTargetInfo \
X86CodeGen \
X86TargetInfo \
X86AsmParser \
diff -r 6877314409fb -r b8980897bd55 external/bsd/llvm/config/llvm/Config/AsmPrinters.def
--- a/external/bsd/llvm/config/llvm/Config/AsmPrinters.def Tue Jul 05 14:07:12 2011 +0000
+++ b/external/bsd/llvm/config/llvm/Config/AsmPrinters.def Tue Jul 05 14:15:56 2011 +0000
@@ -24,6 +24,6 @@
# error Please define the macro LLVM_ASM_PRINTER(TargetName)
#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
diff -r 6877314409fb -r b8980897bd55 external/bsd/llvm/config/llvm/Config/Targets.def
--- a/external/bsd/llvm/config/llvm/Config/Targets.def Tue Jul 05 14:07:12 2011 +0000
+++ b/external/bsd/llvm/config/llvm/Config/Targets.def Tue Jul 05 14:15:56 2011 +0000
@@ -23,6 +23,6 @@
# error Please define the macro LLVM_TARGET(TargetName)
#endif
-LLVM_TARGET(X86) LLVM_TARGET(PowerPC)
+LLVM_TARGET(X86) LLVM_TARGET(PowerPC) LLVM_TARGET(Sparc)
#undef LLVM_TARGET
diff -r 6877314409fb -r b8980897bd55 external/bsd/llvm/lib/Makefile
--- a/external/bsd/llvm/lib/Makefile Tue Jul 05 14:07:12 2011 +0000
+++ b/external/bsd/llvm/lib/Makefile Tue Jul 05 14:15:56 2011 +0000
@@ -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>
@@ -25,6 +25,7 @@
libLLVMTarget \
libLLVMTransformsUtils \
libLLVMPowerPCCodeGen \
+ libLLVMSparcCodeGen \
libLLVMX86CodeGen
SUBDIR+= .WAIT
@@ -34,6 +35,9 @@
libLLVMPowerPCTargetInfo
SUBDIR+= \
+ libLLVMSparcTargetInfo
+
+SUBDIR+= \
libLLVMX86AsmParser \
libLLVMX86AsmPrinter \
libLLVMX86Disassembler \
diff -r 6877314409fb -r b8980897bd55 external/bsd/llvm/lib/libLLVMSparcCodeGen/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMSparcCodeGen/Makefile Tue Jul 05 14:15:56 2011 +0000
@@ -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
diff -r 6877314409fb -r b8980897bd55 external/bsd/llvm/lib/libLLVMSparcTargetInfo/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMSparcTargetInfo/Makefile Tue Jul 05 14:15:56 2011 +0000
@@ -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
diff -r 6877314409fb -r b8980897bd55 tools/llvm-lib/libLLVMSparcCodeGen/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/llvm-lib/libLLVMSparcCodeGen/Makefile Tue Jul 05 14:15:56 2011 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 14:15:56 joerg Exp $
+
+.include <bsd.init.mk>
diff -r 6877314409fb -r b8980897bd55 tools/llvm-lib/libLLVMSparcTargetInfo/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/llvm-lib/libLLVMSparcTargetInfo/Makefile Tue Jul 05 14:15:56 2011 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 14:15:56 joerg Exp $
+
+.include <bsd.init.mk>
diff -r 6877314409fb -r b8980897bd55 tools/llvm/Makefile
--- a/tools/llvm/Makefile Tue Jul 05 14:07:12 2011 +0000
+++ b/tools/llvm/Makefile Tue Jul 05 14:15:56 2011 +0000
@@ -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>
@@ -20,7 +20,7 @@
config/config.status: ${LLVM_SRCDIR}/configure
mkdir -p config
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 \
--enable-optimized --disable--assertions
Home |
Main Index |
Thread Index |
Old Index