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 MIPS target.
details: https://anonhg.NetBSD.org/src/rev/ec5150c82a0d
branches: trunk
changeset: 766982:ec5150c82a0d
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jul 05 19:37:10 2011 +0000
description:
Hook up LLVM's MIPS 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/libLLVMMipsCodeGen/Makefile | 40 ++++++++++++++++++++
external/bsd/llvm/lib/libLLVMMipsTargetInfo/Makefile | 18 +++++++++
tools/llvm-lib/libLLVMMipsCodeGen/Makefile | 3 +
tools/llvm-lib/libLLVMMipsTargetInfo/Makefile | 3 +
tools/llvm/Makefile | 4 +-
11 files changed, 82 insertions(+), 8 deletions(-)
diffs (201 lines):
diff -r 33c3bbc9d3c3 -r ec5150c82a0d external/bsd/llvm/bin/clang/Makefile
--- a/external/bsd/llvm/bin/clang/Makefile Tue Jul 05 19:30:50 2011 +0000
+++ b/external/bsd/llvm/bin/clang/Makefile Tue Jul 05 19:37:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2011/07/05 17:22:21 joerg Exp $
+# $NetBSD: Makefile,v 1.10 2011/07/05 19:37:10 joerg Exp $
PROG_CXX= clang
NOMAN= yes
@@ -42,6 +42,8 @@
ARMTargetInfo \
ARMAsmParser \
ARMAsmPrinter \
+ MipsCodeGen \
+ MipsTargetInfo \
PowerPCCodeGen \
PowerPCTargetInfo \
PowerPCAsmPrinter \
diff -r 33c3bbc9d3c3 -r ec5150c82a0d external/bsd/llvm/bin/llc/Makefile
--- a/external/bsd/llvm/bin/llc/Makefile Tue Jul 05 19:30:50 2011 +0000
+++ b/external/bsd/llvm/bin/llc/Makefile Tue Jul 05 19:37:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2011/07/05 17:22:21 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2011/07/05 19:37:10 joerg Exp $
PROG_CXX= llc
NOMAN= yes
@@ -17,6 +17,8 @@
ARMTargetInfo \
ARMAsmParser \
ARMAsmPrinter \
+ MipsCodeGen \
+ MipsTargetInfo \
PowerPCCodeGen \
PowerPCTargetInfo \
PowerPCAsmPrinter \
diff -r 33c3bbc9d3c3 -r ec5150c82a0d external/bsd/llvm/bin/llvm-mc/Makefile
--- a/external/bsd/llvm/bin/llvm-mc/Makefile Tue Jul 05 19:30:50 2011 +0000
+++ b/external/bsd/llvm/bin/llvm-mc/Makefile Tue Jul 05 19:37:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2011/07/05 17:22:21 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2011/07/05 19:37:10 joerg Exp $
PROG_CXX= llvm-mc
NOMAN= yes
@@ -17,6 +17,8 @@
ARMAsmParser \
ARMAsmPrinter \
ARMDisassembler \
+ MipsCodeGen \
+ MipsTargetInfo \
PowerPCCodeGen \
PowerPCTargetInfo \
PowerPCAsmPrinter \
diff -r 33c3bbc9d3c3 -r ec5150c82a0d external/bsd/llvm/config/llvm/Config/AsmPrinters.def
--- a/external/bsd/llvm/config/llvm/Config/AsmPrinters.def Tue Jul 05 19:30:50 2011 +0000
+++ b/external/bsd/llvm/config/llvm/Config/AsmPrinters.def Tue Jul 05 19:37:10 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(Sparc) LLVM_ASM_PRINTER(ARM)
+LLVM_ASM_PRINTER(X86) LLVM_ASM_PRINTER(PowerPC) LLVM_ASM_PRINTER(Sparc) LLVM_ASM_PRINTER(ARM) LLVM_ASM_PRINTER(Mips)
#undef LLVM_ASM_PRINTER
diff -r 33c3bbc9d3c3 -r ec5150c82a0d external/bsd/llvm/config/llvm/Config/Targets.def
--- a/external/bsd/llvm/config/llvm/Config/Targets.def Tue Jul 05 19:30:50 2011 +0000
+++ b/external/bsd/llvm/config/llvm/Config/Targets.def Tue Jul 05 19:37:10 2011 +0000
@@ -23,6 +23,6 @@
# error Please define the macro LLVM_TARGET(TargetName)
#endif
-LLVM_TARGET(X86) LLVM_TARGET(PowerPC) LLVM_TARGET(Sparc) LLVM_TARGET(ARM)
+LLVM_TARGET(X86) LLVM_TARGET(PowerPC) LLVM_TARGET(Sparc) LLVM_TARGET(ARM) LLVM_TARGET(Mips)
#undef LLVM_TARGET
diff -r 33c3bbc9d3c3 -r ec5150c82a0d external/bsd/llvm/lib/Makefile
--- a/external/bsd/llvm/lib/Makefile Tue Jul 05 19:30:50 2011 +0000
+++ b/external/bsd/llvm/lib/Makefile Tue Jul 05 19:37:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2011/07/05 17:22:22 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2011/07/05 19:37:11 joerg Exp $
.include <bsd.own.mk>
@@ -25,6 +25,7 @@
libLLVMTarget \
libLLVMTransformsUtils \
libLLVMARMCodeGen \
+ libLLVMMipsCodeGen \
libLLVMPowerPCCodeGen \
libLLVMSparcCodeGen \
libLLVMX86CodeGen
@@ -38,6 +39,9 @@
libLLVMARMTargetInfo
SUBDIR+= \
+ libLLVMMipsTargetInfo
+
+SUBDIR+= \
libLLVMPowerPCAsmPrinter \
libLLVMPowerPCTargetInfo
diff -r 33c3bbc9d3c3 -r ec5150c82a0d external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile Tue Jul 05 19:37:10 2011 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 19:37:11 joerg Exp $
+
+LIB= LLVMMipsCodeGen
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Mips
+
+SRCS+= MipsAsmPrinter.cpp \
+ MipsDelaySlotFiller.cpp \
+ MipsEmitGPRestore.cpp \
+ MipsExpandPseudo.cpp \
+ MipsInstrInfo.cpp \
+ MipsISelDAGToDAG.cpp \
+ MipsISelLowering.cpp \
+ MipsFrameLowering.cpp \
+ MipsMCAsmInfo.cpp \
+ MipsRegisterInfo.cpp \
+ MipsSubtarget.cpp \
+ MipsTargetMachine.cpp \
+ MipsTargetObjectFile.cpp \
+ MipsSelectionDAGInfo.cpp
+
+TABLEGEN_SRC= Mips.td
+TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/Mips
+TABLEGEN_OUTPUT= \
+ MipsGenRegisterInfo.inc|-gen-register-info \
+ MipsGenInstrInfo.inc|-gen-instr-info \
+ MipsGenAsmWriter.inc|-gen-asm-writer \
+ MipsGenDAGISel.inc|-gen-dag-isel \
+ MipsGenCallingConv.inc|-gen-callingconv \
+ MipsGenSubtargetInfo.inc|-gen-subtarget
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r 33c3bbc9d3c3 -r ec5150c82a0d external/bsd/llvm/lib/libLLVMMipsTargetInfo/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMMipsTargetInfo/Makefile Tue Jul 05 19:37:10 2011 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 19:37:11 joerg Exp $
+
+LIB= LLVMMipsTargetInfo
+
+.include <bsd.init.mk>
+
+MIPS_OBJDIR!= cd ${.CURDIR}/../libLLVMMipsCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${MIPS_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Mips
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/Mips/TargetInfo
+
+SRCS+= MipsTargetInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r 33c3bbc9d3c3 -r ec5150c82a0d tools/llvm-lib/libLLVMMipsCodeGen/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/llvm-lib/libLLVMMipsCodeGen/Makefile Tue Jul 05 19:37:10 2011 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 19:37:11 joerg Exp $
+
+.include <bsd.init.mk>
diff -r 33c3bbc9d3c3 -r ec5150c82a0d tools/llvm-lib/libLLVMMipsTargetInfo/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/llvm-lib/libLLVMMipsTargetInfo/Makefile Tue Jul 05 19:37:10 2011 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 19:37:11 joerg Exp $
+
+.include <bsd.init.mk>
diff -r 33c3bbc9d3c3 -r ec5150c82a0d tools/llvm/Makefile
--- a/tools/llvm/Makefile Tue Jul 05 19:30:50 2011 +0000
+++ b/tools/llvm/Makefile Tue Jul 05 19:37:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2011/07/05 17:30:35 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2011/07/05 19:37:11 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,sparc,arm --host=${MACHINE_GNU_PLATFORM} \
+ --enable-targets=x86,powerpc,sparc,arm,mips --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