Module Name: src Committed By: joerg Date: Mon Jul 4 22:37:59 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/libLLVMPowerPCAsmPrinter: Makefile src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen: Makefile src/external/bsd/llvm/lib/libLLVMPowerPCTargetInfo: Makefile src/tools/llvm-lib/libLLVMPowerPCAsmPrinter: Makefile src/tools/llvm-lib/libLLVMPowerPCCodeGen: Makefile src/tools/llvm-lib/libLLVMPowerPCTargetInfo: Makefile Log Message: Hook up LLVM's PowerPC. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/bsd/llvm/bin/clang/Makefile cvs rdiff -u -r1.2 -r1.3 src/external/bsd/llvm/bin/llc/Makefile cvs rdiff -u -r1.2 -r1.3 src/external/bsd/llvm/bin/llvm-mc/Makefile cvs rdiff -u -r1.1 -r1.2 \ src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def \ src/external/bsd/llvm/config/llvm/Config/Targets.def cvs rdiff -u -r1.6 -r1.7 src/external/bsd/llvm/lib/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/libLLVMPowerPCTargetInfo/Makefile cvs rdiff -u -r1.4 -r1.5 src/tools/llvm/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMPowerPCTargetInfo/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.5 src/external/bsd/llvm/bin/clang/Makefile:1.6 --- src/external/bsd/llvm/bin/clang/Makefile:1.5 Mon Jul 4 16:10:39 2011 +++ src/external/bsd/llvm/bin/clang/Makefile Mon Jul 4 22:37:59 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2011/07/04 16:10:39 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2011/07/04 22:37:59 joerg Exp $ PROG_CXX= clang NOMAN= yes @@ -38,6 +38,9 @@ AsmParser \ BitReader \ BitWriter \ + PowerPCCodeGen \ + PowerPCTargetInfo \ + PowerPCAsmPrinter \ X86CodeGen \ X86TargetInfo \ X86Utils \ Index: src/external/bsd/llvm/bin/llc/Makefile diff -u src/external/bsd/llvm/bin/llc/Makefile:1.2 src/external/bsd/llvm/bin/llc/Makefile:1.3 --- src/external/bsd/llvm/bin/llc/Makefile:1.2 Fri Mar 18 23:32:01 2011 +++ src/external/bsd/llvm/bin/llc/Makefile Mon Jul 4 22:37:59 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2011/03/18 23:32:01 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2011/07/04 22:37:59 joerg Exp $ PROG_CXX= llc NOMAN= yes @@ -13,6 +13,9 @@ AsmPrinter \ AsmParser \ BitReader \ + PowerPCCodeGen \ + PowerPCTargetInfo \ + PowerPCAsmPrinter \ X86CodeGen \ X86TargetInfo \ X86AsmParser \ Index: src/external/bsd/llvm/bin/llvm-mc/Makefile diff -u src/external/bsd/llvm/bin/llvm-mc/Makefile:1.2 src/external/bsd/llvm/bin/llvm-mc/Makefile:1.3 --- src/external/bsd/llvm/bin/llvm-mc/Makefile:1.2 Fri Mar 18 23:32:02 2011 +++ src/external/bsd/llvm/bin/llvm-mc/Makefile Mon Jul 4 22:37:59 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2011/03/18 23:32:02 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2011/07/04 22:37:59 joerg Exp $ PROG_CXX= llvm-mc NOMAN= yes @@ -11,6 +11,9 @@ Disassembler.cpp LLVM_LIBS+= \ + PowerPCCodeGen \ + PowerPCTargetInfo \ + PowerPCAsmPrinter \ X86CodeGen \ X86TargetInfo \ X86AsmParser \ Index: src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def diff -u src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def:1.1 src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def:1.2 --- src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def:1.1 Sun Feb 6 01:13:49 2011 +++ src/external/bsd/llvm/config/llvm/Config/AsmPrinters.def Mon Jul 4 22:37:59 2011 @@ -24,6 +24,6 @@ # error Please define the macro LLVM_ASM_PRINTER(TargetName) #endif -LLVM_ASM_PRINTER(X86) +LLVM_ASM_PRINTER(X86) LLVM_ASM_PRINTER(PowerPC) #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.1 src/external/bsd/llvm/config/llvm/Config/Targets.def:1.2 --- src/external/bsd/llvm/config/llvm/Config/Targets.def:1.1 Sun Feb 6 01:13:50 2011 +++ src/external/bsd/llvm/config/llvm/Config/Targets.def Mon Jul 4 22:37:59 2011 @@ -23,6 +23,6 @@ # error Please define the macro LLVM_TARGET(TargetName) #endif -LLVM_TARGET(X86) +LLVM_TARGET(X86) LLVM_TARGET(PowerPC) #undef LLVM_TARGET Index: src/external/bsd/llvm/lib/Makefile diff -u src/external/bsd/llvm/lib/Makefile:1.6 src/external/bsd/llvm/lib/Makefile:1.7 --- src/external/bsd/llvm/lib/Makefile:1.6 Mon Jul 4 16:10:39 2011 +++ src/external/bsd/llvm/lib/Makefile Mon Jul 4 22:37:59 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2011/07/04 16:10:39 joerg Exp $ +# $NetBSD: Makefile,v 1.7 2011/07/04 22:37:59 joerg Exp $ .include <bsd.own.mk> @@ -24,10 +24,16 @@ libLLVMSupport \ libLLVMTarget \ libLLVMTransformsUtils \ + libLLVMPowerPCCodeGen \ libLLVMX86CodeGen +SUBDIR+= .WAIT + +SUBDIR+= \ + libLLVMPowerPCAsmPrinter \ + libLLVMPowerPCTargetInfo + SUBDIR+= \ - .WAIT \ libLLVMX86AsmParser \ libLLVMX86AsmPrinter \ libLLVMX86Disassembler \ Index: src/tools/llvm/Makefile diff -u src/tools/llvm/Makefile:1.4 src/tools/llvm/Makefile:1.5 --- src/tools/llvm/Makefile:1.4 Mon May 16 19:27:47 2011 +++ src/tools/llvm/Makefile Mon Jul 4 22:37:58 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2011/05/16 19:27:47 joerg Exp $ +# $NetBSD: Makefile,v 1.5 2011/07/04 22:37:58 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 --host=x86_64--netbsd \ + --enable-targets=x86,powerpc --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/libLLVMPowerPCAsmPrinter/Makefile diff -u /dev/null src/external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter/Makefile:1.1 --- /dev/null Mon Jul 4 22:37:59 2011 +++ src/external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter/Makefile Mon Jul 4 22:37:59 2011 @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2011/07/04 22:37:59 joerg Exp $ + +LIB= LLVMPowerPCAsmPrinter +NOGCCERROR= yes + +.include <bsd.init.mk> + +PPC_OBJDIR!= cd ${.CURDIR}/../libLLVMPowerPCCodeGen && ${PRINTOBJDIR} +CPPFLAGS+= -I${PPC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/PowerPC + +.PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC/InstPrinter + +SRCS+= PPCInstPrinter.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile diff -u /dev/null src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile:1.1 --- /dev/null Mon Jul 4 22:38:00 2011 +++ src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile Mon Jul 4 22:37:59 2011 @@ -0,0 +1,46 @@ +# $NetBSD: Makefile,v 1.1 2011/07/04 22:37:59 joerg Exp $ + +LIB= LLVMPowerPCCodeGen + +.include <bsd.init.mk> + +.PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC + +SRCS+= PPCAsmBackend.cpp \ + PPCAsmPrinter.cpp \ + PPCBranchSelector.cpp \ + PPCCodeEmitter.cpp \ + PPCHazardRecognizers.cpp \ + PPCInstrInfo.cpp \ + PPCISelDAGToDAG.cpp \ + PPCISelLowering.cpp \ + PPCFrameLowering.cpp \ + PPCJITInfo.cpp \ + PPCMCAsmInfo.cpp \ + PPCMCCodeEmitter.cpp \ + PPCMCInstLower.cpp \ + PPCPredicates.cpp \ + PPCRegisterInfo.cpp \ + PPCSubtarget.cpp \ + PPCTargetMachine.cpp \ + PPCSelectionDAGInfo.cpp + +TABLEGEN_SRC= PPC.td +TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/PowerPC +TABLEGEN_OUTPUT= \ + PPCGenAsmWriter.inc|-gen-asm-writer \ + PPCGenCodeEmitter.inc|-gen-emitter \ + PPCGenMCCodeEmitter.inc|-gen-emitter^-mc-emitter \ + PPCGenRegisterInfo.inc|-gen-register-info \ + PPCGenInstrInfo.inc|-gen-instr-info \ + PPCGenDAGISel.inc|-gen-dag-isel \ + PPCGenCallingConv.inc|-gen-callingconv \ + PPCGenSubtargetInfo.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/libLLVMPowerPCTargetInfo/Makefile diff -u /dev/null src/external/bsd/llvm/lib/libLLVMPowerPCTargetInfo/Makefile:1.1 --- /dev/null Mon Jul 4 22:38:00 2011 +++ src/external/bsd/llvm/lib/libLLVMPowerPCTargetInfo/Makefile Mon Jul 4 22:37:59 2011 @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2011/07/04 22:37:59 joerg Exp $ + +LIB= LLVMPowerPCTargetInfo + +.include <bsd.init.mk> + +PPC_OBJDIR!= cd ${.CURDIR}/../libLLVMPowerPCCodeGen && ${PRINTOBJDIR} +CPPFLAGS+= -I${PPC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/PowerPC + +.PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC/TargetInfo + +SRCS+= PowerPCTargetInfo.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile diff -u /dev/null src/tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile:1.1 --- /dev/null Mon Jul 4 22:38:00 2011 +++ src/tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile Mon Jul 4 22:37:58 2011 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2011/07/04 22:37:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile diff -u /dev/null src/tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile:1.1 --- /dev/null Mon Jul 4 22:38:00 2011 +++ src/tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile Mon Jul 4 22:37:58 2011 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2011/07/04 22:37:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/libLLVMPowerPCTargetInfo/Makefile diff -u /dev/null src/tools/llvm-lib/libLLVMPowerPCTargetInfo/Makefile:1.1 --- /dev/null Mon Jul 4 22:38:00 2011 +++ src/tools/llvm-lib/libLLVMPowerPCTargetInfo/Makefile Mon Jul 4 22:37:58 2011 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2011/07/04 22:37:58 joerg Exp $ + +.include <bsd.init.mk>