Add Makefile glue to build the Sparc backend libraries and link them
into the clang executable.
This commit is contained in:
parent
e18c3d5a5a
commit
137470fbfb
@ -79,6 +79,12 @@ SUBDIR= libclanganalysis \
|
||||
libllvmpowerpcdesc \
|
||||
libllvmpowerpcinfo \
|
||||
libllvmpowerpcinstprinter \
|
||||
libllvmsparcasmparser \
|
||||
libllvmsparccodegen \
|
||||
libllvmsparcdesc \
|
||||
libllvmsparcdisassembler \
|
||||
libllvmsparcinfo \
|
||||
libllvmsparcinstprinter \
|
||||
libllvmx86asmparser \
|
||||
libllvmx86codegen \
|
||||
libllvmx86desc \
|
||||
|
@ -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 \
|
||||
|
2
lib/clang/include/SparcGenAsmMatcher.inc
Normal file
2
lib/clang/include/SparcGenAsmMatcher.inc
Normal file
@ -0,0 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "SparcGenAsmMatcher.inc.h"
|
2
lib/clang/include/SparcGenAsmWriter.inc
Normal file
2
lib/clang/include/SparcGenAsmWriter.inc
Normal file
@ -0,0 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "SparcGenAsmWriter.inc.h"
|
2
lib/clang/include/SparcGenCallingConv.inc
Normal file
2
lib/clang/include/SparcGenCallingConv.inc
Normal file
@ -0,0 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "SparcGenCallingConv.inc.h"
|
2
lib/clang/include/SparcGenCodeEmitter.inc
Normal file
2
lib/clang/include/SparcGenCodeEmitter.inc
Normal file
@ -0,0 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "SparcGenCodeEmitter.inc.h"
|
2
lib/clang/include/SparcGenDAGISel.inc
Normal file
2
lib/clang/include/SparcGenDAGISel.inc
Normal file
@ -0,0 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "SparcGenDAGISel.inc.h"
|
2
lib/clang/include/SparcGenDisassemblerTables.inc
Normal file
2
lib/clang/include/SparcGenDisassemblerTables.inc
Normal file
@ -0,0 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "SparcGenDisassemblerTables.inc.h"
|
2
lib/clang/include/SparcGenInstrInfo.inc
Normal file
2
lib/clang/include/SparcGenInstrInfo.inc
Normal file
@ -0,0 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "SparcGenInstrInfo.inc.h"
|
2
lib/clang/include/SparcGenMCCodeEmitter.inc
Normal file
2
lib/clang/include/SparcGenMCCodeEmitter.inc
Normal file
@ -0,0 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "SparcGenMCCodeEmitter.inc.h"
|
2
lib/clang/include/SparcGenRegisterInfo.inc
Normal file
2
lib/clang/include/SparcGenRegisterInfo.inc
Normal file
@ -0,0 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "SparcGenRegisterInfo.inc.h"
|
2
lib/clang/include/SparcGenSubtargetInfo.inc
Normal file
2
lib/clang/include/SparcGenSubtargetInfo.inc
Normal file
@ -0,0 +1,2 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "SparcGenSubtargetInfo.inc.h"
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
LLVM_DISASSEMBLER(ARM)
|
||||
LLVM_DISASSEMBLER(Mips)
|
||||
LLVM_DISASSEMBLER(Sparc)
|
||||
LLVM_DISASSEMBLER(X86)
|
||||
|
||||
#undef LLVM_DISASSEMBLER
|
||||
|
@ -3,6 +3,7 @@
|
||||
LLVM_TARGET(ARM)
|
||||
LLVM_TARGET(Mips)
|
||||
LLVM_TARGET(PowerPC)
|
||||
LLVM_TARGET(Sparc)
|
||||
LLVM_TARGET(X86)
|
||||
|
||||
#undef LLVM_TARGET
|
||||
|
16
lib/clang/libllvmsparcasmparser/Makefile
Normal file
16
lib/clang/libllvmsparcasmparser/Makefile
Normal 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"
|
34
lib/clang/libllvmsparccodegen/Makefile
Normal file
34
lib/clang/libllvmsparccodegen/Makefile
Normal 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"
|
22
lib/clang/libllvmsparcdesc/Makefile
Normal file
22
lib/clang/libllvmsparcdesc/Makefile
Normal 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"
|
16
lib/clang/libllvmsparcdisassembler/Makefile
Normal file
16
lib/clang/libllvmsparcdisassembler/Makefile
Normal 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"
|
15
lib/clang/libllvmsparcinfo/Makefile
Normal file
15
lib/clang/libllvmsparcinfo/Makefile
Normal 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"
|
16
lib/clang/libllvmsparcinstprinter/Makefile
Normal file
16
lib/clang/libllvmsparcinstprinter/Makefile
Normal 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"
|
@ -89,6 +89,12 @@ LIBDEPS=clangfrontendtool \
|
||||
llvmpowerpcdesc \
|
||||
llvmpowerpcinfo \
|
||||
llvmpowerpcinstprinter \
|
||||
llvmsparcdisassembler \
|
||||
llvmsparccodegen \
|
||||
llvmsparcasmparser \
|
||||
llvmsparcdesc \
|
||||
llvmsparcinfo \
|
||||
llvmsparcinstprinter \
|
||||
llvmx86disassembler \
|
||||
llvmx86asmparser \
|
||||
llvmx86codegen \
|
||||
|
@ -27,6 +27,12 @@ LIBDEPS=llvmirreader \
|
||||
llvmpowerpcdesc \
|
||||
llvmpowerpcinfo \
|
||||
llvmpowerpcinstprinter \
|
||||
llvmsparcdisassembler \
|
||||
llvmsparccodegen \
|
||||
llvmsparcasmparser \
|
||||
llvmsparcdesc \
|
||||
llvmsparcinfo \
|
||||
llvmsparcinstprinter \
|
||||
llvmx86disassembler \
|
||||
llvmx86asmparser \
|
||||
llvmx86codegen \
|
||||
|
@ -27,6 +27,12 @@ LIBDEPS=llvmmcdisassembler \
|
||||
llvmpowerpcdesc \
|
||||
llvmpowerpcinfo \
|
||||
llvmpowerpcinstprinter \
|
||||
llvmsparcdisassembler \
|
||||
llvmsparccodegen \
|
||||
llvmsparcasmparser \
|
||||
llvmsparcdesc \
|
||||
llvmsparcinfo \
|
||||
llvmsparcinstprinter \
|
||||
llvmx86disassembler \
|
||||
llvmx86asmparser \
|
||||
llvmx86codegen \
|
||||
|
@ -32,6 +32,12 @@ LIBDEPS=llvmmcdisassembler \
|
||||
llvmpowerpcdesc \
|
||||
llvmpowerpcinfo \
|
||||
llvmpowerpcinstprinter \
|
||||
llvmsparcdisassembler \
|
||||
llvmsparccodegen \
|
||||
llvmsparcasmparser \
|
||||
llvmsparcdesc \
|
||||
llvmsparcinfo \
|
||||
llvmsparcinstprinter \
|
||||
llvmx86disassembler \
|
||||
llvmx86asmparser \
|
||||
llvmx86codegen \
|
||||
|
@ -31,6 +31,12 @@ LIBDEPS=llvmdebuginfo \
|
||||
llvmpowerpcdesc \
|
||||
llvmpowerpcinfo \
|
||||
llvmpowerpcinstprinter \
|
||||
llvmsparcdisassembler \
|
||||
llvmsparccodegen \
|
||||
llvmsparcasmparser \
|
||||
llvmsparcdesc \
|
||||
llvmsparcinfo \
|
||||
llvmsparcinstprinter \
|
||||
llvmx86disassembler \
|
||||
llvmx86asmparser \
|
||||
llvmx86codegen \
|
||||
|
@ -28,6 +28,12 @@ LIBDEPS=llvmarmdisassembler \
|
||||
llvmpowerpcdesc \
|
||||
llvmpowerpcinfo \
|
||||
llvmpowerpcinstprinter \
|
||||
llvmsparcdisassembler \
|
||||
llvmsparccodegen \
|
||||
llvmsparcasmparser \
|
||||
llvmsparcdesc \
|
||||
llvmsparcinfo \
|
||||
llvmsparcinstprinter \
|
||||
llvmx86disassembler \
|
||||
llvmx86asmparser \
|
||||
llvmx86codegen \
|
||||
|
Loading…
Reference in New Issue
Block a user