svn commit: r261700 - in projects/arm64/lib/clang: . include libllvmaarch64asmparser libllvmaarch64codegen libllvmaarch64desc libllvmaarch64disassembler libllvmaarch64info libllvmaarch64instprinter
Andrew Turner
andrew at FreeBSD.org
Sun Feb 9 22:13:58 UTC 2014
Author: andrew
Date: Sun Feb 9 22:13:53 2014
New Revision: 261700
URL: http://svnweb.freebsd.org/changeset/base/261700
Log:
Add untested support to build LLVM & Clang for arm64
Added:
projects/arm64/lib/clang/include/AArch64GenAsmMatcher.inc
projects/arm64/lib/clang/include/AArch64GenAsmWriter.inc
projects/arm64/lib/clang/include/AArch64GenCallingConv.inc
projects/arm64/lib/clang/include/AArch64GenDAGISel.inc
projects/arm64/lib/clang/include/AArch64GenDisassemblerTables.inc
projects/arm64/lib/clang/include/AArch64GenInstrInfo.inc
projects/arm64/lib/clang/include/AArch64GenMCCodeEmitter.inc
projects/arm64/lib/clang/include/AArch64GenMCPseudoLowering.inc
projects/arm64/lib/clang/include/AArch64GenRegisterInfo.inc
projects/arm64/lib/clang/include/AArch64GenSubtargetInfo.inc
projects/arm64/lib/clang/libllvmaarch64asmparser/
projects/arm64/lib/clang/libllvmaarch64asmparser/Makefile (contents, props changed)
projects/arm64/lib/clang/libllvmaarch64codegen/
projects/arm64/lib/clang/libllvmaarch64codegen/Makefile (contents, props changed)
projects/arm64/lib/clang/libllvmaarch64desc/
projects/arm64/lib/clang/libllvmaarch64desc/Makefile (contents, props changed)
projects/arm64/lib/clang/libllvmaarch64disassembler/
projects/arm64/lib/clang/libllvmaarch64disassembler/Makefile (contents, props changed)
projects/arm64/lib/clang/libllvmaarch64info/
projects/arm64/lib/clang/libllvmaarch64info/Makefile (contents, props changed)
projects/arm64/lib/clang/libllvmaarch64instprinter/
projects/arm64/lib/clang/libllvmaarch64instprinter/Makefile (contents, props changed)
Modified:
projects/arm64/lib/clang/Makefile
projects/arm64/lib/clang/clang.build.mk
Modified: projects/arm64/lib/clang/Makefile
==============================================================================
--- projects/arm64/lib/clang/Makefile Sun Feb 9 22:11:19 2014 (r261699)
+++ projects/arm64/lib/clang/Makefile Sun Feb 9 22:13:53 2014 (r261700)
@@ -62,6 +62,12 @@ SUBDIR= libclanganalysis \
libllvmtransformutils \
libllvmvectorize \
\
+ libllvmaarch64asmparser \
+ libllvmaarch64codegen \
+ libllvmaarch64desc \
+ libllvmaarch64disassembler \
+ libllvmaarch64info \
+ libllvmaarch64instprinter \
libllvmarmasmparser \
libllvmarmcodegen \
libllvmarmdesc \
Modified: projects/arm64/lib/clang/clang.build.mk
==============================================================================
--- projects/arm64/lib/clang/clang.build.mk Sun Feb 9 22:11:19 2014 (r261699)
+++ projects/arm64/lib/clang/clang.build.mk Sun Feb 9 22:13:53 2014 (r261700)
@@ -27,8 +27,8 @@ TARGET_ABI= gnueabi
TARGET_ABI= unknown
.endif
-TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-${TARGET_ABI}-freebsd11.0
-BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/}-unknown-freebsd11.0
+TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/:C/arm64/aarch64/}-${TARGET_ABI}-freebsd11.0
+BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/:C/arm53/aarch64/}-unknown-freebsd11.0
CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_TRIPLE}\" \
-DLLVM_HOST_TRIPLE=\"${BUILD_TRIPLE}\" \
-DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\"
@@ -52,7 +52,7 @@ Intrinsics.inc.h: ${LLVM_SRCS}/include/l
-gen-intrinsic -o ${.TARGET} \
${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
.for arch in \
- ARM/ARM Mips/Mips PowerPC/PPC X86/X86
+ AArch64/AArch64 ARM/ARM Mips/Mips PowerPC/PPC X86/X86
. for hdr in \
AsmMatcher/-gen-asm-matcher \
AsmWriter1/-gen-asm-writer,-asmwriternum=1 \
Added: projects/arm64/lib/clang/include/AArch64GenAsmMatcher.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/include/AArch64GenAsmMatcher.inc Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,2 @@
+/* $FreeBSD: projects/arm64/lib/clang/include/ARMGenAsmMatcher.inc 212904 2010-09-20 16:43:17Z dim $ */
+#include "AArch64GenAsmMatcher.inc.h"
Added: projects/arm64/lib/clang/include/AArch64GenAsmWriter.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/include/AArch64GenAsmWriter.inc Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,2 @@
+/* $FreeBSD: projects/arm64/lib/clang/include/ARMGenAsmMatcher.inc 212904 2010-09-20 16:43:17Z dim $ */
+#include "AArch64GenAsmWriter.inc.h"
Added: projects/arm64/lib/clang/include/AArch64GenCallingConv.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/include/AArch64GenCallingConv.inc Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,2 @@
+/* $FreeBSD: projects/arm64/lib/clang/include/ARMGenAsmMatcher.inc 212904 2010-09-20 16:43:17Z dim $ */
+#include "AArch64GenCallingConv.inc.h"
Added: projects/arm64/lib/clang/include/AArch64GenDAGISel.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/include/AArch64GenDAGISel.inc Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,2 @@
+/* $FreeBSD: projects/arm64/lib/clang/include/ARMGenAsmMatcher.inc 212904 2010-09-20 16:43:17Z dim $ */
+#include "AArch64GenDAGISel.inc.h"
Added: projects/arm64/lib/clang/include/AArch64GenDisassemblerTables.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/include/AArch64GenDisassemblerTables.inc Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,2 @@
+/* $FreeBSD: projects/arm64/lib/clang/include/ARMGenAsmMatcher.inc 212904 2010-09-20 16:43:17Z dim $ */
+#include "AArch64GenDisassemblerTables.inc.h"
Added: projects/arm64/lib/clang/include/AArch64GenInstrInfo.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/include/AArch64GenInstrInfo.inc Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,2 @@
+/* $FreeBSD: projects/arm64/lib/clang/include/ARMGenAsmMatcher.inc 212904 2010-09-20 16:43:17Z dim $ */
+#include "AArch64GenInstrInfo.inc.h"
Added: projects/arm64/lib/clang/include/AArch64GenMCCodeEmitter.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/include/AArch64GenMCCodeEmitter.inc Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,2 @@
+/* $FreeBSD: projects/arm64/lib/clang/include/ARMGenAsmMatcher.inc 212904 2010-09-20 16:43:17Z dim $ */
+#include "AArch64GenMCCodeEmitter.inc.h"
Added: projects/arm64/lib/clang/include/AArch64GenMCPseudoLowering.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/include/AArch64GenMCPseudoLowering.inc Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,2 @@
+/* $FreeBSD: projects/arm64/lib/clang/include/ARMGenAsmMatcher.inc 212904 2010-09-20 16:43:17Z dim $ */
+#include "AArch64GenMCPseudoLowering.inc.h"
Added: projects/arm64/lib/clang/include/AArch64GenRegisterInfo.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/include/AArch64GenRegisterInfo.inc Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,2 @@
+/* $FreeBSD: projects/arm64/lib/clang/include/ARMGenAsmMatcher.inc 212904 2010-09-20 16:43:17Z dim $ */
+#include "AArch64GenRegisterInfo.inc.h"
Added: projects/arm64/lib/clang/include/AArch64GenSubtargetInfo.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/include/AArch64GenSubtargetInfo.inc Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,2 @@
+/* $FreeBSD: projects/arm64/lib/clang/include/ARMGenAsmMatcher.inc 212904 2010-09-20 16:43:17Z dim $ */
+#include "AArch64GenSubtargetInfo.inc.h"
Added: projects/arm64/lib/clang/libllvmaarch64asmparser/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/libllvmaarch64asmparser/Makefile Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= llvmarmasmparser
+
+SRCDIR= lib/Target/AArch64/AsmParser
+INCDIR= lib/Target/AArch64
+SRCS= AArch64AsmParser.cpp
+
+TGHDRS= AArch64GenAsmMatcher \
+ AArch64GenInstrInfo \
+ AArch64GenRegisterInfo \
+ AArch64GenSubtargetInfo
+
+.include "../clang.lib.mk"
Added: projects/arm64/lib/clang/libllvmaarch64codegen/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/libllvmaarch64codegen/Makefile Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= llvmarmcodegen
+
+SRCDIR= lib/Target/AArch64
+SRCS= AArch64AsmPrinter.cpp \
+ AArch64BranchFixupPass.cpp \
+ AArch64FrameLowering.cpp \
+ AArch64ISelDAGToDAG.cpp \
+ AArch64ISelLowering.cpp \
+ AArch64InstrInfo.cpp \
+ AArch64MCInstLower.cpp \
+ AArch64MachineFunctionInfo.cpp \
+ AArch64RegisterInfo.cpp \
+ AArch64SelectionDAGInfo.cpp \
+ AArch64Subtarget.cpp \
+ AArch64TargetMachine.cpp \
+ AArch64TargetObjectFile.cpp
+
+TGHDRS= AArch64GenCallingConv \
+ AArch64GenDAGISel \
+ AArch64GenInstrInfo \
+ AArch64GenMCPseudoLowering \
+ AArch64GenRegisterInfo \
+ AArch64GenSubtargetInfo
+
+.include "../clang.lib.mk"
Added: projects/arm64/lib/clang/libllvmaarch64desc/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/libllvmaarch64desc/Makefile Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= llvmarmdesc
+
+SRCDIR= lib/Target/AArch64/MCTargetDesc
+SRCS= AArch64AsmBackend.cpp \
+ AArch64ELFObjectWriter.cpp \
+ AArch64ELFStreamer.cpp \
+ AArch64MCAsmInfo.cpp \
+ AArch64MCCodeEmitter.cpp \
+ AArch64MCExpr.cpp \
+ AArch64MCTargetDesc.cpp
+CFLAGS+= -I${LLVM_SRCS}/${SRCDIR}/..
+
+TGHDRS= AArch64GenInstrInfo \
+ AArch64GenMCCodeEmitter \
+ AArch64GenRegisterInfo \
+ AArch64GenSubtargetInfo
+
+.include "../clang.lib.mk"
Added: projects/arm64/lib/clang/libllvmaarch64disassembler/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/libllvmaarch64disassembler/Makefile Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= llvmarmdisassembler
+
+SRCDIR= lib/Target/AArch64/Disassembler
+INCDIR= lib/Target/AArch64
+SRCS= AArch64Disassembler.cpp
+
+TGHDRS= AArch64GenDisassemblerTables \
+ AArch64GenInstrInfo \
+ AArch64GenRegisterInfo \
+ AArch64GenSubtargetInfo
+
+.include "../clang.lib.mk"
Added: projects/arm64/lib/clang/libllvmaarch64info/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/libllvmaarch64info/Makefile Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= llvmarminfo
+
+SRCDIR= lib/Target/AArch64/TargetInfo
+INCDIR= lib/Target/AArch64
+SRCS= AArch64TargetInfo.cpp
+
+TGHDRS= AArch64GenInstrInfo \
+ AArch64GenRegisterInfo \
+ AArch64GenSubtargetInfo
+
+.include "../clang.lib.mk"
Added: projects/arm64/lib/clang/libllvmaarch64instprinter/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/arm64/lib/clang/libllvmaarch64instprinter/Makefile Sun Feb 9 22:13:53 2014 (r261700)
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= llvmarminstprinter
+
+SRCDIR= lib/Target/AArch64/InstPrinter
+INCDIR= lib/Target/AArch64
+SRCS= AArch64InstPrinter.cpp
+
+TGHDRS= AArch64GenAsmWriter \
+ AArch64GenInstrInfo \
+ AArch64GenRegisterInfo \
+ AArch64GenSubtargetInfo
+
+.include "../clang.lib.mk"
More information about the svn-src-projects
mailing list