diff options
author | 2016-09-19 11:39:05 +0000 | |
---|---|---|
committer | 2016-09-19 11:39:05 +0000 | |
commit | aff8593247cb965a5244ec117252fd256024ca91 (patch) | |
tree | 577cf170c84e0bef7fa2b6d2a0ecb811f2fbdf30 | |
parent | Add non-VFP arm-specific code. (diff) | |
download | wireguard-openbsd-aff8593247cb965a5244ec117252fd256024ca91.tar.xz wireguard-openbsd-aff8593247cb965a5244ec117252fd256024ca91.zip |
Add PowerPC backend build infrastructure.
ok kettenis@
-rw-r--r-- | gnu/usr.bin/clang/include/llvm/PowerPC/Makefile | 75 | ||||
-rw-r--r-- | gnu/usr.bin/clang/libLLVMPowerPCAsmParser/Makefile | 21 | ||||
-rw-r--r-- | gnu/usr.bin/clang/libLLVMPowerPCAsmPrinter/Makefile | 21 | ||||
-rw-r--r-- | gnu/usr.bin/clang/libLLVMPowerPCCodeGen/Makefile | 46 | ||||
-rw-r--r-- | gnu/usr.bin/clang/libLLVMPowerPCDesc/Makefile | 28 | ||||
-rw-r--r-- | gnu/usr.bin/clang/libLLVMPowerPCDisassembler/Makefile | 21 | ||||
-rw-r--r-- | gnu/usr.bin/clang/libLLVMPowerPCInfo/Makefile | 21 |
7 files changed, 233 insertions, 0 deletions
diff --git a/gnu/usr.bin/clang/include/llvm/PowerPC/Makefile b/gnu/usr.bin/clang/include/llvm/PowerPC/Makefile new file mode 100644 index 00000000000..bbf904aefe2 --- /dev/null +++ b/gnu/usr.bin/clang/include/llvm/PowerPC/Makefile @@ -0,0 +1,75 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/19 11:39:05 pascal Exp $ + +.include <bsd.own.mk> + +LLVM_SRCS= ${.CURDIR}/../../../../../llvm + +HDRS= PPCGenAsmMatcher.inc PPCGenAsmWriter.inc \ + PPCGenCallingConv.inc \ + PPCGenDAGISel.inc PPCGenDisassemblerTables.inc \ + PPCGenFastISel.inc PPCGenInstrInfo.inc \ + PPCGenRegisterInfo.inc PPCGenSubtargetInfo.inc \ + PPCGenMCCodeEmitter.inc + +all: ${HDRS} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean cleandir: + rm -f ${HDRS} + +PPCGenAsmMatcher.inc: ${LLVM_SRCS}/lib/Target/PowerPC/PPC.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-asm-matcher \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/PowerPC \ + -o ${.TARGET} ${.ALLSRC} + +PPCGenAsmWriter.inc: ${LLVM_SRCS}/lib/Target/PowerPC/PPC.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-asm-writer \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/PowerPC \ + -o ${.TARGET} ${.ALLSRC} + +PPCGenCallingConv.inc: ${LLVM_SRCS}/lib/Target/PowerPC/PPC.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-callingconv \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/PowerPC \ + -o ${.TARGET} ${.ALLSRC} + +PPCGenDAGISel.inc: ${LLVM_SRCS}/lib/Target/PowerPC/PPC.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-dag-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/PowerPC \ + -o ${.TARGET} ${.ALLSRC} + +PPCGenDisassemblerTables.inc: ${LLVM_SRCS}/lib/Target/PowerPC/PPC.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-disassembler \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/PowerPC \ + -o ${.TARGET} ${.ALLSRC} + +PPCGenFastISel.inc: ${LLVM_SRCS}/lib/Target/PowerPC/PPC.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-fast-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/PowerPC \ + -o ${.TARGET} ${.ALLSRC} + +PPCGenInstrInfo.inc: ${LLVM_SRCS}/lib/Target/PowerPC/PPC.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-instr-info \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/PowerPC \ + -o ${.TARGET} ${.ALLSRC} + +PPCGenMCCodeEmitter.inc: ${LLVM_SRCS}/lib/Target/PowerPC/PPC.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-emitter \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/PowerPC \ + -o ${.TARGET} ${.ALLSRC} + +PPCGenRegisterInfo.inc: ${LLVM_SRCS}/lib/Target/PowerPC/PPC.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-register-info \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/PowerPC \ + -o ${.TARGET} ${.ALLSRC} + +PPCGenSubtargetInfo.inc: ${LLVM_SRCS}/lib/Target/PowerPC/PPC.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-subtarget \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/PowerPC \ + -o ${.TARGET} ${.ALLSRC} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/libLLVMPowerPCAsmParser/Makefile b/gnu/usr.bin/clang/libLLVMPowerPCAsmParser/Makefile new file mode 100644 index 00000000000..a88937dcafc --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMPowerPCAsmParser/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/19 11:39:05 pascal Exp $ + +LIB= LLVMPowerPCAsmParser +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/PowerPC \ + -I${LLVM_SRCS}/lib/Target/PowerPC + +.include <bsd.own.mk> +SRCS= PPCAsmParser.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/PowerPC/AsmParser + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMPowerPCAsmPrinter/Makefile b/gnu/usr.bin/clang/libLLVMPowerPCAsmPrinter/Makefile new file mode 100644 index 00000000000..9748c018d6b --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMPowerPCAsmPrinter/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/19 11:39:05 pascal Exp $ + +LIB= LLVMPowerPCAsmPrinter +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/PowerPC \ + -I${LLVM_SRCS}/lib/Target/PowerPC + +.include <bsd.own.mk> +SRCS= PPCInstPrinter.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/PowerPC/InstPrinter + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMPowerPCCodeGen/Makefile b/gnu/usr.bin/clang/libLLVMPowerPCCodeGen/Makefile new file mode 100644 index 00000000000..53e047e5cb9 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMPowerPCCodeGen/Makefile @@ -0,0 +1,46 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/19 11:39:05 pascal Exp $ + +LIB= LLVMPowerPCCodeGen +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/PowerPC \ + -I${LLVM_SRCS}/lib/Target/PowerPC + +.include <bsd.own.mk> +SRCS= PPCBoolRetToInt.cpp \ + PPCAsmPrinter.cpp \ + PPCBranchSelector.cpp \ + PPCCTRLoops.cpp \ + PPCHazardRecognizers.cpp \ + PPCInstrInfo.cpp \ + PPCISelDAGToDAG.cpp \ + PPCISelLowering.cpp \ + PPCEarlyReturn.cpp \ + PPCFastISel.cpp \ + PPCFrameLowering.cpp \ + PPCLoopDataPrefetch.cpp \ + PPCLoopPreIncPrep.cpp \ + PPCMCInstLower.cpp \ + PPCMachineFunctionInfo.cpp \ + PPCMIPeephole.cpp \ + PPCRegisterInfo.cpp \ + PPCSubtarget.cpp \ + PPCTargetMachine.cpp \ + PPCTargetObjectFile.cpp \ + PPCTargetTransformInfo.cpp \ + PPCTOCRegDeps.cpp \ + PPCTLSDynamicCall.cpp \ + PPCVSXCopy.cpp \ + PPCVSXFMAMutate.cpp \ + PPCVSXSwapRemoval.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/PowerPC + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMPowerPCDesc/Makefile b/gnu/usr.bin/clang/libLLVMPowerPCDesc/Makefile new file mode 100644 index 00000000000..9f4addf3606 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMPowerPCDesc/Makefile @@ -0,0 +1,28 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/19 11:39:05 pascal Exp $ + +LIB= LLVMPowerPCDesc +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/PowerPC \ + -I${LLVM_SRCS}/lib/Target/PowerPC + +.include <bsd.own.mk> +SRCS= PPCAsmBackend.cpp \ + PPCMCTargetDesc.cpp \ + PPCMCAsmInfo.cpp \ + PPCMCCodeEmitter.cpp \ + PPCMCExpr.cpp \ + PPCPredicates.cpp \ + PPCMachObjectWriter.cpp \ + PPCELFObjectWriter.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/PowerPC/MCTargetDesc + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMPowerPCDisassembler/Makefile b/gnu/usr.bin/clang/libLLVMPowerPCDisassembler/Makefile new file mode 100644 index 00000000000..88075814fc8 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMPowerPCDisassembler/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/19 11:39:05 pascal Exp $ + +LIB= LLVMPowerPCDisassembler +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/PowerPC \ + -I${LLVM_SRCS}/lib/Target/PowerPC + +.include <bsd.own.mk> +SRCS= PPCDisassembler.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/PowerPC/Disassembler + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMPowerPCInfo/Makefile b/gnu/usr.bin/clang/libLLVMPowerPCInfo/Makefile new file mode 100644 index 00000000000..954327e34be --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMPowerPCInfo/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/19 11:39:05 pascal Exp $ + +LIB= LLVMPowerPCInfo +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/PowerPC \ + -I${LLVM_SRCS}/lib/Target/PowerPC + +.include <bsd.own.mk> +SRCS= PowerPCTargetInfo.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/PowerPC/TargetInfo + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> |