Module Name: src Committed By: joerg Date: Tue Jul 5 19:37:11 UTC 2011
Modified Files: src/external/bsd/llvm/bin/clang: Makefile src/external/bsd/llvm/bin/llc: Makefile src/external/bsd/llvm/bin/llvm-mc: Makefile src/external/bsd/llvm/config/llvm/Config: AsmPrinters.def Targets.def src/external/bsd/llvm/lib: Makefile src/tools/llvm: Makefile Added Files: src/external/bsd/llvm/lib/libLLVMMipsCodeGen: Makefile src/external/bsd/llvm/lib/libLLVMMipsTargetInfo: Makefile src/tools/llvm-lib/libLLVMMipsCodeGen: Makefile src/tools/llvm-lib/libLLVMMipsTargetInfo: Makefile Log Message: Hook up LLVM's MIPS target. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/bsd/llvm/bin/clang/Makefile cvs rdiff -u -r1.5 -r1.6 src/external/bsd/llvm/bin/llc/Makefile cvs rdiff -u -r1.5 -r1.6 src/external/bsd/llvm/bin/llvm-mc/Makefile cvs rdiff -u -r1.4 -r1.5 \ src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def \ src/external/bsd/llvm/config/llvm/Config/Targets.def cvs rdiff -u -r1.10 -r1.11 src/external/bsd/llvm/lib/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/libLLVMMipsTargetInfo/Makefile cvs rdiff -u -r1.7 -r1.8 src/tools/llvm/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMMipsCodeGen/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMMipsTargetInfo/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/llvm/bin/clang/Makefile diff -u src/external/bsd/llvm/bin/clang/Makefile:1.9 src/external/bsd/llvm/bin/clang/Makefile:1.10 --- src/external/bsd/llvm/bin/clang/Makefile:1.9 Tue Jul 5 17:22:21 2011 +++ src/external/bsd/llvm/bin/clang/Makefile Tue Jul 5 19:37:10 2011 @@ -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 \ Index: src/external/bsd/llvm/bin/llc/Makefile diff -u src/external/bsd/llvm/bin/llc/Makefile:1.5 src/external/bsd/llvm/bin/llc/Makefile:1.6 --- src/external/bsd/llvm/bin/llc/Makefile:1.5 Tue Jul 5 17:22:21 2011 +++ src/external/bsd/llvm/bin/llc/Makefile Tue Jul 5 19:37:10 2011 @@ -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 \ Index: src/external/bsd/llvm/bin/llvm-mc/Makefile diff -u src/external/bsd/llvm/bin/llvm-mc/Makefile:1.5 src/external/bsd/llvm/bin/llvm-mc/Makefile:1.6 --- src/external/bsd/llvm/bin/llvm-mc/Makefile:1.5 Tue Jul 5 17:22:21 2011 +++ src/external/bsd/llvm/bin/llvm-mc/Makefile Tue Jul 5 19:37:10 2011 @@ -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 \ Index: src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def diff -u src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def:1.4 src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def:1.5 --- src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def:1.4 Tue Jul 5 17:22:22 2011 +++ src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def Tue Jul 5 19:37:11 2011 @@ -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 Index: src/external/bsd/llvm/config/llvm/Config/Targets.def diff -u src/external/bsd/llvm/config/llvm/Config/Targets.def:1.4 src/external/bsd/llvm/config/llvm/Config/Targets.def:1.5 --- src/external/bsd/llvm/config/llvm/Config/Targets.def:1.4 Tue Jul 5 17:22:22 2011 +++ src/external/bsd/llvm/config/llvm/Config/Targets.def Tue Jul 5 19:37:11 2011 @@ -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 Index: src/external/bsd/llvm/lib/Makefile diff -u src/external/bsd/llvm/lib/Makefile:1.10 src/external/bsd/llvm/lib/Makefile:1.11 --- src/external/bsd/llvm/lib/Makefile:1.10 Tue Jul 5 17:22:22 2011 +++ src/external/bsd/llvm/lib/Makefile Tue Jul 5 19:37:11 2011 @@ -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 Index: src/tools/llvm/Makefile diff -u src/tools/llvm/Makefile:1.7 src/tools/llvm/Makefile:1.8 --- src/tools/llvm/Makefile:1.7 Tue Jul 5 17:30:35 2011 +++ src/tools/llvm/Makefile Tue Jul 5 19:37:11 2011 @@ -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 Added files: Index: src/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile diff -u /dev/null src/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile:1.1 --- /dev/null Tue Jul 5 19:37:11 2011 +++ src/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile Tue Jul 5 19:37:11 2011 @@ -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 Index: src/external/bsd/llvm/lib/libLLVMMipsTargetInfo/Makefile diff -u /dev/null src/external/bsd/llvm/lib/libLLVMMipsTargetInfo/Makefile:1.1 --- /dev/null Tue Jul 5 19:37:11 2011 +++ src/external/bsd/llvm/lib/libLLVMMipsTargetInfo/Makefile Tue Jul 5 19:37:11 2011 @@ -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 Index: src/tools/llvm-lib/libLLVMMipsCodeGen/Makefile diff -u /dev/null src/tools/llvm-lib/libLLVMMipsCodeGen/Makefile:1.1 --- /dev/null Tue Jul 5 19:37:11 2011 +++ src/tools/llvm-lib/libLLVMMipsCodeGen/Makefile Tue Jul 5 19:37:11 2011 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2011/07/05 19:37:11 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/libLLVMMipsTargetInfo/Makefile diff -u /dev/null src/tools/llvm-lib/libLLVMMipsTargetInfo/Makefile:1.1 --- /dev/null Tue Jul 5 19:37:11 2011 +++ src/tools/llvm-lib/libLLVMMipsTargetInfo/Makefile Tue Jul 5 19:37:11 2011 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2011/07/05 19:37:11 joerg Exp $ + +.include <bsd.init.mk>