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 PowerPC.



details:   https://anonhg.NetBSD.org/src/rev/9af86008929d
branches:  trunk
changeset: 766953:9af86008929d
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Jul 04 22:37:58 2011 +0000

description:
Hook up LLVM's PowerPC.

diffstat:

 external/bsd/llvm/bin/clang/Makefile                    |   5 +-
 external/bsd/llvm/bin/llc/Makefile                      |   5 +-
 external/bsd/llvm/bin/llvm-mc/Makefile                  |   5 +-
 external/bsd/llvm/config/llvm/Config/AsmPrinters.def    |   2 +-
 external/bsd/llvm/config/llvm/Config/Targets.def        |   2 +-
 external/bsd/llvm/lib/Makefile                          |  10 ++-
 external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter/Makefile |  19 +++++++
 external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile    |  46 +++++++++++++++++
 external/bsd/llvm/lib/libLLVMPowerPCTargetInfo/Makefile |  18 ++++++
 tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile        |   3 +
 tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile           |   3 +
 tools/llvm-lib/libLLVMPowerPCTargetInfo/Makefile        |   3 +
 tools/llvm/Makefile                                     |   4 +-
 13 files changed, 116 insertions(+), 9 deletions(-)

diffs (240 lines):

diff -r f5d9a206b8e7 -r 9af86008929d external/bsd/llvm/bin/clang/Makefile
--- a/external/bsd/llvm/bin/clang/Makefile      Mon Jul 04 22:33:29 2011 +0000
+++ b/external/bsd/llvm/bin/clang/Makefile      Mon Jul 04 22:37:58 2011 +0000
@@ -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 \
diff -r f5d9a206b8e7 -r 9af86008929d external/bsd/llvm/bin/llc/Makefile
--- a/external/bsd/llvm/bin/llc/Makefile        Mon Jul 04 22:33:29 2011 +0000
+++ b/external/bsd/llvm/bin/llc/Makefile        Mon Jul 04 22:37:58 2011 +0000
@@ -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 \
diff -r f5d9a206b8e7 -r 9af86008929d external/bsd/llvm/bin/llvm-mc/Makefile
--- a/external/bsd/llvm/bin/llvm-mc/Makefile    Mon Jul 04 22:33:29 2011 +0000
+++ b/external/bsd/llvm/bin/llvm-mc/Makefile    Mon Jul 04 22:37:58 2011 +0000
@@ -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 \
diff -r f5d9a206b8e7 -r 9af86008929d external/bsd/llvm/config/llvm/Config/AsmPrinters.def
--- a/external/bsd/llvm/config/llvm/Config/AsmPrinters.def      Mon Jul 04 22:33:29 2011 +0000
+++ b/external/bsd/llvm/config/llvm/Config/AsmPrinters.def      Mon Jul 04 22:37:58 2011 +0000
@@ -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
diff -r f5d9a206b8e7 -r 9af86008929d external/bsd/llvm/config/llvm/Config/Targets.def
--- a/external/bsd/llvm/config/llvm/Config/Targets.def  Mon Jul 04 22:33:29 2011 +0000
+++ b/external/bsd/llvm/config/llvm/Config/Targets.def  Mon Jul 04 22:37:58 2011 +0000
@@ -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
diff -r f5d9a206b8e7 -r 9af86008929d external/bsd/llvm/lib/Makefile
--- a/external/bsd/llvm/lib/Makefile    Mon Jul 04 22:33:29 2011 +0000
+++ b/external/bsd/llvm/lib/Makefile    Mon Jul 04 22:37:58 2011 +0000
@@ -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+= \
-       .WAIT \
+       libLLVMPowerPCAsmPrinter \
+       libLLVMPowerPCTargetInfo
+
+SUBDIR+= \
        libLLVMX86AsmParser \
        libLLVMX86AsmPrinter \
        libLLVMX86Disassembler \
diff -r f5d9a206b8e7 -r 9af86008929d external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMPowerPCAsmPrinter/Makefile   Mon Jul 04 22:37:58 2011 +0000
@@ -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
diff -r f5d9a206b8e7 -r 9af86008929d external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile      Mon Jul 04 22:37:58 2011 +0000
@@ -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
diff -r f5d9a206b8e7 -r 9af86008929d external/bsd/llvm/lib/libLLVMPowerPCTargetInfo/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMPowerPCTargetInfo/Makefile   Mon Jul 04 22:37:58 2011 +0000
@@ -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
diff -r f5d9a206b8e7 -r 9af86008929d tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile  Mon Jul 04 22:37:58 2011 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: Makefile,v 1.1 2011/07/04 22:37:58 joerg Exp $
+
+.include <bsd.init.mk>
diff -r f5d9a206b8e7 -r 9af86008929d tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile     Mon Jul 04 22:37:58 2011 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: Makefile,v 1.1 2011/07/04 22:37:58 joerg Exp $
+
+.include <bsd.init.mk>
diff -r f5d9a206b8e7 -r 9af86008929d tools/llvm-lib/libLLVMPowerPCTargetInfo/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/llvm-lib/libLLVMPowerPCTargetInfo/Makefile  Mon Jul 04 22:37:58 2011 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: Makefile,v 1.1 2011/07/04 22:37:58 joerg Exp $
+
+.include <bsd.init.mk>
diff -r f5d9a206b8e7 -r 9af86008929d tools/llvm/Makefile
--- a/tools/llvm/Makefile       Mon Jul 04 22:33:29 2011 +0000
+++ b/tools/llvm/Makefile       Mon Jul 04 22:37:58 2011 +0000
@@ -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
 



Home | Main Index | Thread Index | Old Index