Add Makefile glue to build the Sparc backend libraries and link them

into the clang executable.
This commit is contained in:
Dimitry Andric 2014-02-20 22:22:39 +00:00
parent e18c3d5a5a
commit 137470fbfb
28 changed files with 186 additions and 1 deletions

View File

@ -79,6 +79,12 @@ SUBDIR= libclanganalysis \
libllvmpowerpcdesc \
libllvmpowerpcinfo \
libllvmpowerpcinstprinter \
libllvmsparcasmparser \
libllvmsparccodegen \
libllvmsparcdesc \
libllvmsparcdisassembler \
libllvmsparcinfo \
libllvmsparcinstprinter \
libllvmx86asmparser \
libllvmx86codegen \
libllvmx86desc \

View File

@ -52,7 +52,7 @@ Intrinsics.inc.h: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td \
-gen-intrinsic -o ${.TARGET} \
${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
.for arch in \
ARM/ARM Mips/Mips PowerPC/PPC X86/X86
ARM/ARM Mips/Mips PowerPC/PPC Sparc/Sparc X86/X86
. for hdr in \
AsmMatcher/-gen-asm-matcher \
AsmWriter1/-gen-asm-writer,-asmwriternum=1 \

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "SparcGenAsmMatcher.inc.h"

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "SparcGenAsmWriter.inc.h"

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "SparcGenCallingConv.inc.h"

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "SparcGenCodeEmitter.inc.h"

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "SparcGenDAGISel.inc.h"

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "SparcGenDisassemblerTables.inc.h"

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "SparcGenInstrInfo.inc.h"

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "SparcGenMCCodeEmitter.inc.h"

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "SparcGenRegisterInfo.inc.h"

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "SparcGenSubtargetInfo.inc.h"

View File

@ -3,6 +3,7 @@
LLVM_ASM_PARSER(ARM)
LLVM_ASM_PARSER(Mips)
LLVM_ASM_PARSER(PowerPC)
LLVM_ASM_PARSER(Sparc)
LLVM_ASM_PARSER(X86)
#undef LLVM_ASM_PARSER

View File

@ -3,6 +3,7 @@
LLVM_ASM_PRINTER(ARM)
LLVM_ASM_PRINTER(Mips)
LLVM_ASM_PRINTER(PowerPC)
LLVM_ASM_PRINTER(Sparc)
LLVM_ASM_PRINTER(X86)
#undef LLVM_ASM_PRINTER

View File

@ -2,6 +2,7 @@
LLVM_DISASSEMBLER(ARM)
LLVM_DISASSEMBLER(Mips)
LLVM_DISASSEMBLER(Sparc)
LLVM_DISASSEMBLER(X86)
#undef LLVM_DISASSEMBLER

View File

@ -3,6 +3,7 @@
LLVM_TARGET(ARM)
LLVM_TARGET(Mips)
LLVM_TARGET(PowerPC)
LLVM_TARGET(Sparc)
LLVM_TARGET(X86)
#undef LLVM_TARGET

View File

@ -0,0 +1,16 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= llvmsparcasmparser
SRCDIR= lib/Target/Sparc/AsmParser
INCDIR= lib/Target/Sparc
SRCS= SparcAsmParser.cpp
TGHDRS= SparcGenAsmMatcher \
SparcGenInstrInfo \
SparcGenRegisterInfo \
SparcGenSubtargetInfo
.include "../clang.lib.mk"

View File

@ -0,0 +1,34 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= llvmsparccodegen
SRCDIR= lib/Target/Sparc
SRCS= DelaySlotFiller.cpp \
SparcAsmPrinter.cpp \
SparcCodeEmitter.cpp \
SparcFrameLowering.cpp \
SparcISelDAGToDAG.cpp \
SparcISelLowering.cpp \
SparcInstrInfo.cpp \
SparcJITInfo.cpp \
SparcMCInstLower.cpp \
SparcMachineFunctionInfo.cpp \
SparcRegisterInfo.cpp \
SparcSelectionDAGInfo.cpp \
SparcSubtarget.cpp \
SparcTargetMachine.cpp \
SparcTargetObjectFile.cpp
TGHDRS= Intrinsics \
SparcGenAsmWriter \
SparcGenCallingConv \
SparcGenCodeEmitter \
SparcGenDAGISel \
SparcGenInstrInfo \
SparcGenMCCodeEmitter \
SparcGenRegisterInfo \
SparcGenSubtargetInfo
.include "../clang.lib.mk"

View File

@ -0,0 +1,22 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= llvmsparcdesc
SRCDIR= lib/Target/Sparc/MCTargetDesc
SRCS= SparcAsmBackend.cpp \
SparcELFObjectWriter.cpp \
SparcMCAsmInfo.cpp \
SparcMCCodeEmitter.cpp \
SparcMCExpr.cpp \
SparcMCTargetDesc.cpp \
SparcTargetStreamer.cpp
CFLAGS+= -I${LLVM_SRCS}/${SRCDIR}/..
TGHDRS= SparcGenInstrInfo \
SparcGenMCCodeEmitter \
SparcGenRegisterInfo \
SparcGenSubtargetInfo
.include "../clang.lib.mk"

View File

@ -0,0 +1,16 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= llvmsparcdisassembler
SRCDIR= lib/Target/Sparc/Disassembler
INCDIR= lib/Target/Sparc
SRCS= SparcDisassembler.cpp
TGHDRS= SparcGenDisassemblerTables \
SparcGenInstrInfo \
SparcGenRegisterInfo \
SparcGenSubtargetInfo
.include "../clang.lib.mk"

View File

@ -0,0 +1,15 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= llvmsparcinfo
SRCDIR= lib/Target/Sparc/TargetInfo
INCDIR= lib/Target/Sparc
SRCS= SparcTargetInfo.cpp
TGHDRS= SparcGenInstrInfo \
SparcGenRegisterInfo \
SparcGenSubtargetInfo
.include "../clang.lib.mk"

View File

@ -0,0 +1,16 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= llvmsparcinstprinter
SRCDIR= lib/Target/Sparc/InstPrinter
INCDIR= lib/Target/Sparc
SRCS= SparcInstPrinter.cpp
TGHDRS= SparcGenAsmWriter \
SparcGenInstrInfo \
SparcGenRegisterInfo \
SparcGenSubtargetInfo
.include "../clang.lib.mk"

View File

@ -89,6 +89,12 @@ LIBDEPS=clangfrontendtool \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
llvmsparcdisassembler \
llvmsparccodegen \
llvmsparcasmparser \
llvmsparcdesc \
llvmsparcinfo \
llvmsparcinstprinter \
llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \

View File

@ -27,6 +27,12 @@ LIBDEPS=llvmirreader \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
llvmsparcdisassembler \
llvmsparccodegen \
llvmsparcasmparser \
llvmsparcdesc \
llvmsparcinfo \
llvmsparcinstprinter \
llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \

View File

@ -27,6 +27,12 @@ LIBDEPS=llvmmcdisassembler \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
llvmsparcdisassembler \
llvmsparccodegen \
llvmsparcasmparser \
llvmsparcdesc \
llvmsparcinfo \
llvmsparcinstprinter \
llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \

View File

@ -32,6 +32,12 @@ LIBDEPS=llvmmcdisassembler \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
llvmsparcdisassembler \
llvmsparccodegen \
llvmsparcasmparser \
llvmsparcdesc \
llvmsparcinfo \
llvmsparcinstprinter \
llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \

View File

@ -31,6 +31,12 @@ LIBDEPS=llvmdebuginfo \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
llvmsparcdisassembler \
llvmsparccodegen \
llvmsparcasmparser \
llvmsparcdesc \
llvmsparcinfo \
llvmsparcinstprinter \
llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \

View File

@ -28,6 +28,12 @@ LIBDEPS=llvmarmdisassembler \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
llvmsparcdisassembler \
llvmsparccodegen \
llvmsparcasmparser \
llvmsparcdesc \
llvmsparcinfo \
llvmsparcinstprinter \
llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \