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 ARM target.
details: https://anonhg.NetBSD.org/src/rev/3d71fc7ec9f6
branches: trunk
changeset: 766979:3d71fc7ec9f6
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jul 05 17:22:20 2011 +0000
description:
Hook up LLVM's ARM target.
diffstat:
external/bsd/llvm/bin/clang/Makefile | 6 +-
external/bsd/llvm/bin/llc/Makefile | 6 +-
external/bsd/llvm/bin/llvm-mc/Makefile | 9 +-
external/bsd/llvm/config/llvm/Config/AsmParsers.def | 2 +-
external/bsd/llvm/config/llvm/Config/AsmPrinters.def | 2 +-
external/bsd/llvm/config/llvm/Config/Disassemblers.def | 2 +-
external/bsd/llvm/config/llvm/Config/Targets.def | 2 +-
external/bsd/llvm/lib/Makefile | 9 ++-
external/bsd/llvm/lib/libLLVMARMAsmParser/Makefile | 19 ++++
external/bsd/llvm/lib/libLLVMARMAsmPrinter/Makefile | 18 ++++
external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile | 69 ++++++++++++++++++
external/bsd/llvm/lib/libLLVMARMDisassembler/Makefile | 19 ++++
external/bsd/llvm/lib/libLLVMARMTargetInfo/Makefile | 18 ++++
tools/llvm-lib/libLLVMARMAsmParser/Makefile | 3 +
tools/llvm-lib/libLLVMARMAsmPrinter/Makefile | 3 +
tools/llvm-lib/libLLVMARMCodeGen/Makefile | 3 +
tools/llvm-lib/libLLVMARMDisassembler/Makefile | 3 +
tools/llvm-lib/libLLVMARMTargetInfo/Makefile | 3 +
18 files changed, 187 insertions(+), 9 deletions(-)
diffs (truncated from 342 to 300 lines):
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/bin/clang/Makefile
--- a/external/bsd/llvm/bin/clang/Makefile Tue Jul 05 17:15:51 2011 +0000
+++ b/external/bsd/llvm/bin/clang/Makefile Tue Jul 05 17:22:20 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2011/07/05 17:06:10 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2011/07/05 17:22:21 joerg Exp $
PROG_CXX= clang
NOMAN= yes
@@ -38,6 +38,10 @@
AsmParser \
BitReader \
BitWriter \
+ ARMCodeGen \
+ ARMTargetInfo \
+ ARMAsmParser \
+ ARMAsmPrinter \
PowerPCCodeGen \
PowerPCTargetInfo \
PowerPCAsmPrinter \
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/bin/llc/Makefile
--- a/external/bsd/llvm/bin/llc/Makefile Tue Jul 05 17:15:51 2011 +0000
+++ b/external/bsd/llvm/bin/llc/Makefile Tue Jul 05 17:22:20 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2011/07/05 14:15:56 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2011/07/05 17:22:21 joerg Exp $
PROG_CXX= llc
NOMAN= yes
@@ -13,6 +13,10 @@
AsmPrinter \
AsmParser \
BitReader \
+ ARMCodeGen \
+ ARMTargetInfo \
+ ARMAsmParser \
+ ARMAsmPrinter \
PowerPCCodeGen \
PowerPCTargetInfo \
PowerPCAsmPrinter \
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/bin/llvm-mc/Makefile
--- a/external/bsd/llvm/bin/llvm-mc/Makefile Tue Jul 05 17:15:51 2011 +0000
+++ b/external/bsd/llvm/bin/llvm-mc/Makefile Tue Jul 05 17:22:20 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2011/07/05 14:15:56 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2011/07/05 17:22:21 joerg Exp $
PROG_CXX= llvm-mc
NOMAN= yes
@@ -11,6 +11,12 @@
Disassembler.cpp
LLVM_LIBS+= \
+ MCDisassembler \
+ ARMCodeGen \
+ ARMTargetInfo \
+ ARMAsmParser \
+ ARMAsmPrinter \
+ ARMDisassembler \
PowerPCCodeGen \
PowerPCTargetInfo \
PowerPCAsmPrinter \
@@ -29,7 +35,6 @@
TransformsUtils \
Analysis \
AsmPrinter \
- MCDisassembler \
MCParser \
MC \
Core \
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/config/llvm/Config/AsmParsers.def
--- a/external/bsd/llvm/config/llvm/Config/AsmParsers.def Tue Jul 05 17:15:51 2011 +0000
+++ b/external/bsd/llvm/config/llvm/Config/AsmParsers.def Tue Jul 05 17:22:20 2011 +0000
@@ -24,6 +24,6 @@
# error Please define the macro LLVM_ASM_PARSER(TargetName)
#endif
-LLVM_ASM_PARSER(X86)
+LLVM_ASM_PARSER(X86) LLVM_ASM_PARSER(ARM)
#undef LLVM_ASM_PARSER
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/config/llvm/Config/AsmPrinters.def
--- a/external/bsd/llvm/config/llvm/Config/AsmPrinters.def Tue Jul 05 17:15:51 2011 +0000
+++ b/external/bsd/llvm/config/llvm/Config/AsmPrinters.def Tue Jul 05 17:22:20 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(X86) LLVM_ASM_PRINTER(PowerPC) LLVM_ASM_PRINTER(Sparc) LLVM_ASM_PRINTER(ARM)
#undef LLVM_ASM_PRINTER
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/config/llvm/Config/Disassemblers.def
--- a/external/bsd/llvm/config/llvm/Config/Disassemblers.def Tue Jul 05 17:15:51 2011 +0000
+++ b/external/bsd/llvm/config/llvm/Config/Disassemblers.def Tue Jul 05 17:22:20 2011 +0000
@@ -24,6 +24,6 @@
# error Please define the macro LLVM_DISASSEMBLER(TargetName)
#endif
-LLVM_DISASSEMBLER(X86)
+LLVM_DISASSEMBLER(X86) LLVM_DISASSEMBLER(ARM)
#undef LLVM_DISASSEMBLER
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/config/llvm/Config/Targets.def
--- a/external/bsd/llvm/config/llvm/Config/Targets.def Tue Jul 05 17:15:51 2011 +0000
+++ b/external/bsd/llvm/config/llvm/Config/Targets.def Tue Jul 05 17:22:20 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(X86) LLVM_TARGET(PowerPC) LLVM_TARGET(Sparc) LLVM_TARGET(ARM)
#undef LLVM_TARGET
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/lib/Makefile
--- a/external/bsd/llvm/lib/Makefile Tue Jul 05 17:15:51 2011 +0000
+++ b/external/bsd/llvm/lib/Makefile Tue Jul 05 17:22:20 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2011/07/05 17:15:51 joerg Exp $
+# $NetBSD: Makefile,v 1.10 2011/07/05 17:22:22 joerg Exp $
.include <bsd.own.mk>
@@ -24,6 +24,7 @@
libLLVMSupport \
libLLVMTarget \
libLLVMTransformsUtils \
+ libLLVMARMCodeGen \
libLLVMPowerPCCodeGen \
libLLVMSparcCodeGen \
libLLVMX86CodeGen
@@ -31,6 +32,12 @@
SUBDIR+= .WAIT
SUBDIR+= \
+ libLLVMARMAsmParser \
+ libLLVMARMAsmPrinter \
+ libLLVMARMDisassembler \
+ libLLVMARMTargetInfo
+
+SUBDIR+= \
libLLVMPowerPCAsmPrinter \
libLLVMPowerPCTargetInfo
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/lib/libLLVMARMAsmParser/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMARMAsmParser/Makefile Tue Jul 05 17:22:20 2011 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 17:22:22 joerg Exp $
+
+LIB= LLVMARMAsmParser
+
+.include <bsd.init.mk>
+
+ARM_OBJDIR!= cd ${.CURDIR}/../libLLVMARMCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${ARM_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/ARM
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM/AsmParser
+
+SRCS+= ARMAsmLexer.cpp \
+ ARMAsmParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/lib/libLLVMARMAsmPrinter/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMARMAsmPrinter/Makefile Tue Jul 05 17:22:20 2011 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 17:22:22 joerg Exp $
+
+LIB= LLVMARMAsmPrinter
+
+.include <bsd.init.mk>
+
+ARM_OBJDIR!= cd ${.CURDIR}/../libLLVMARMCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${ARM_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/ARM
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM/InstPrinter
+
+SRCS+= ARMInstPrinter.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile Tue Jul 05 17:22:20 2011 +0000
@@ -0,0 +1,69 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 17:22:22 joerg Exp $
+
+LIB= LLVMARMCodeGen
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM
+
+SRCS+= ARMAsmBackend.cpp \
+ ARMAsmPrinter.cpp \
+ ARMBaseInstrInfo.cpp \
+ ARMBaseRegisterInfo.cpp \
+ ARMCodeEmitter.cpp \
+ ARMConstantIslandPass.cpp \
+ ARMConstantPoolValue.cpp \
+ ARMELFWriterInfo.cpp \
+ ARMExpandPseudoInsts.cpp \
+ ARMFastISel.cpp \
+ ARMFrameLowering.cpp \
+ ARMGlobalMerge.cpp \
+ ARMHazardRecognizer.cpp \
+ ARMISelDAGToDAG.cpp \
+ ARMISelLowering.cpp \
+ ARMInstrInfo.cpp \
+ ARMJITInfo.cpp \
+ ARMMachObjectWriter.cpp \
+ ARMMCCodeEmitter.cpp \
+ ARMMCExpr.cpp \
+ ARMLoadStoreOptimizer.cpp \
+ ARMMCAsmInfo.cpp \
+ ARMMCInstLower.cpp \
+ ARMRegisterInfo.cpp \
+ ARMSelectionDAGInfo.cpp \
+ ARMSubtarget.cpp \
+ ARMTargetMachine.cpp \
+ ARMTargetObjectFile.cpp \
+ MLxExpansionPass.cpp \
+ NEONMoveFix.cpp \
+ Thumb1InstrInfo.cpp \
+ Thumb1FrameLowering.cpp \
+ Thumb1RegisterInfo.cpp \
+ Thumb2ITBlockPass.cpp \
+ Thumb2InstrInfo.cpp \
+ Thumb2RegisterInfo.cpp \
+ Thumb2SizeReduction.cpp
+
+TABLEGEN_SRC= ARM.td
+TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/ARM
+TABLEGEN_OUTPUT= \
+ ARMGenRegisterInfo.inc|-gen-register-info \
+ ARMGenInstrInfo.inc|-gen-instr-info \
+ ARMGenCodeEmitter.inc|-gen-emitter \
+ ARMGenMCCodeEmitter.inc|-gen-emitter^-mc-emitter \
+ ARMGenAsmWriter.inc|-gen-asm-writer \
+ ARMGenAsmMatcher.inc|-gen-asm-matcher \
+ ARMGenDAGISel.inc|-gen-dag-isel \
+ ARMGenFastISel.inc|-gen-fast-isel \
+ ARMGenCallingConv.inc|-gen-callingconv \
+ ARMGenSubtargetInfo.inc|-gen-subtarget \
+ ARMGenEDInfo.inc|-gen-enhanced-disassembly-info \
+ ARMGenDecoderTables.inc|-gen-arm-decoder
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/lib/libLLVMARMDisassembler/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMARMDisassembler/Makefile Tue Jul 05 17:22:20 2011 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 17:22:22 joerg Exp $
+
+LIB= LLVMARMDisassembler
+
+.include <bsd.init.mk>
+
+ARM_OBJDIR!= cd ${.CURDIR}/../libLLVMARMCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${ARM_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/ARM
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM/Disassembler
+
+SRCS+= ARMDisassembler.cpp \
+ ARMDisassemblerCore.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r a7380012b2bc -r 3d71fc7ec9f6 external/bsd/llvm/lib/libLLVMARMTargetInfo/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMARMTargetInfo/Makefile Tue Jul 05 17:22:20 2011 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2011/07/05 17:22:23 joerg Exp $
+
+LIB= LLVMARMTargetInfo
+
+.include <bsd.init.mk>
+
+ARM_OBJDIR!= cd ${.CURDIR}/../libLLVMARMCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${ARM_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/ARM
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/ARM/TargetInfo
+
Home |
Main Index |
Thread Index |
Old Index