Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/llvm-lib/libLLVMMCJIT add most of the AMDGPU target ma...
details: https://anonhg.NetBSD.org/src/rev/4d378de2468e
branches: trunk
changeset: 997499:4d378de2468e
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Mar 10 12:14:05 2019 +0000
description:
add most of the AMDGPU target makefiles and stuff that don't
touch the build. this comes from:
commit f90685c11d4460d3098fa35f48b58d1893e974e0
Author: Maya Rashish <maya%NetBSD.org@localhost>
Date: Sat Feb 23 09:46:14 2019 +0200
Separate MKCLANG from MKLLVM.
build LLVM libraries as PIC.
Add AMDGPU target, and adjust tools accordingly.
diffstat:
external/bsd/llvm/lib/libLLVMAMDGPUAsmParser/Makefile | 18 ++
external/bsd/llvm/lib/libLLVMAMDGPUAsmPrinter/Makefile | 18 ++
external/bsd/llvm/lib/libLLVMAMDGPUCodeGen/Makefile | 134 +++++++++++++++
external/bsd/llvm/lib/libLLVMAMDGPUDisassembler/Makefile | 18 ++
external/bsd/llvm/lib/libLLVMAMDGPUMCTargetDesc/Makefile | 27 +++
external/bsd/llvm/lib/libLLVMAMDGPUTargetInfo/Makefile | 18 ++
external/bsd/llvm/lib/libLLVMAMDGPUUtils/Makefile | 23 ++
external/bsd/llvm/lib/libLLVMExecutionEngine/Makefile | 6 +-
external/bsd/llvm/lib/libLLVMIR/Makefile | 6 +-
external/bsd/llvm/lib/libLLVMInstCombine/Makefile | 6 +-
external/bsd/llvm/lib/libLLVMMCJIT/Makefile | 6 +-
external/bsd/llvm/lib/libLLVMRuntimeDyld/Makefile | 6 +-
tools/llvm-lib/libLLVMAMDGPUAsmParser/Makefile | 3 +
tools/llvm-lib/libLLVMAMDGPUAsmPrinter/Makefile | 3 +
tools/llvm-lib/libLLVMAMDGPUCodeGen/Makefile | 3 +
tools/llvm-lib/libLLVMAMDGPUDisassembler/Makefile | 3 +
tools/llvm-lib/libLLVMAMDGPUMCTargetDesc/Makefile | 3 +
tools/llvm-lib/libLLVMAMDGPUTargetInfo/Makefile | 3 +
tools/llvm-lib/libLLVMAMDGPUUtils/Makefile | 3 +
tools/llvm-lib/libLLVMExecutionEngine/Makefile | 3 +
tools/llvm-lib/libLLVMMCJIT/Makefile | 3 +
21 files changed, 304 insertions(+), 9 deletions(-)
diffs (truncated from 455 to 300 lines):
diff -r 5d5305354e39 -r 4d378de2468e external/bsd/llvm/lib/libLLVMAMDGPUAsmParser/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMAMDGPUAsmParser/Makefile Sun Mar 10 12:14:05 2019 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/03/10 12:14:05 mrg Exp $
+
+LIB= LLVMAMDGPUAsmParser
+
+.include <bsd.init.mk>
+
+AMDGPU_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AMDGPU_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/AsmParser
+
+SRCS+= AMDGPUAsmParser.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r 5d5305354e39 -r 4d378de2468e external/bsd/llvm/lib/libLLVMAMDGPUAsmPrinter/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMAMDGPUAsmPrinter/Makefile Sun Mar 10 12:14:05 2019 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/03/10 12:14:05 mrg Exp $
+
+LIB= LLVMAMDGPUAsmPrinter
+
+.include <bsd.init.mk>
+
+AMDGPU_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AMDGPU_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/InstPrinter
+
+SRCS+= AMDGPUInstPrinter.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r 5d5305354e39 -r 4d378de2468e external/bsd/llvm/lib/libLLVMAMDGPUCodeGen/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMAMDGPUCodeGen/Makefile Sun Mar 10 12:14:05 2019 +0000
@@ -0,0 +1,134 @@
+# $NetBSD: Makefile,v 1.1 2019/03/10 12:14:05 mrg Exp $
+
+LIB= LLVMAMDGPUCodeGen
+
+.include <bsd.init.mk>
+
+CPPFLAGS+= -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+SRCS+= AMDGPUAliasAnalysis.cpp \
+ AMDGPUAlwaysInlinePass.cpp \
+ AMDGPUAnnotateKernelFeatures.cpp \
+ AMDGPUAnnotateUniformValues.cpp \
+ AMDGPUArgumentUsageInfo.cpp \
+ AMDGPUAsmPrinter.cpp \
+ AMDGPUCallLowering.cpp \
+ AMDGPUCodeGenPrepare.cpp \
+ AMDGPUFrameLowering.cpp \
+ AMDGPUHSAMetadataStreamer.cpp \
+ AMDGPUInstrInfo.cpp \
+ AMDGPUInstructionSelector.cpp \
+ AMDGPUIntrinsicInfo.cpp \
+ AMDGPUISelDAGToDAG.cpp \
+ AMDGPUISelLowering.cpp \
+ AMDGPULegalizerInfo.cpp \
+ AMDGPULibCalls.cpp \
+ AMDGPULibFunc.cpp \
+ AMDGPULowerIntrinsics.cpp \
+ AMDGPULowerKernelArguments.cpp \
+ AMDGPULowerKernelAttributes.cpp \
+ AMDGPUMachineCFGStructurizer.cpp \
+ AMDGPUMachineFunction.cpp \
+ AMDGPUMachineModuleInfo.cpp \
+ AMDGPUMacroFusion.cpp \
+ AMDGPUMCInstLower.cpp \
+ AMDGPUOpenCLEnqueuedBlockLowering.cpp \
+ AMDGPUPromoteAlloca.cpp \
+ AMDGPURegAsmNames.inc.cpp \
+ AMDGPURegisterBankInfo.cpp \
+ AMDGPURegisterInfo.cpp \
+ AMDGPURewriteOutArguments.cpp \
+ AMDGPUSubtarget.cpp \
+ AMDGPUTargetMachine.cpp \
+ AMDGPUTargetObjectFile.cpp \
+ AMDGPUTargetTransformInfo.cpp \
+ AMDGPUUnifyDivergentExitNodes.cpp \
+ AMDGPUUnifyMetadata.cpp \
+ AMDGPUInline.cpp \
+ AMDGPUPerfHintAnalysis.cpp \
+ AMDILCFGStructurizer.cpp \
+ GCNHazardRecognizer.cpp \
+ GCNIterativeScheduler.cpp \
+ GCNMinRegStrategy.cpp \
+ GCNRegPressure.cpp \
+ GCNSchedStrategy.cpp \
+ R600AsmPrinter.cpp \
+ R600ClauseMergePass.cpp \
+ R600ControlFlowFinalizer.cpp \
+ R600EmitClauseMarkers.cpp \
+ R600ExpandSpecialInstrs.cpp \
+ R600FrameLowering.cpp \
+ R600InstrInfo.cpp \
+ R600ISelLowering.cpp \
+ R600MachineFunctionInfo.cpp \
+ R600MachineScheduler.cpp \
+ R600OpenCLImageTypeLoweringPass.cpp \
+ R600OptimizeVectorRegisters.cpp \
+ R600Packetizer.cpp \
+ R600RegisterInfo.cpp \
+ SIAnnotateControlFlow.cpp \
+ SIDebuggerInsertNops.cpp \
+ SIFixSGPRCopies.cpp \
+ SIFixVGPRCopies.cpp \
+ SIFixWWMLiveness.cpp \
+ SIFoldOperands.cpp \
+ SIFormMemoryClauses.cpp \
+ SIFrameLowering.cpp \
+ SIInsertSkips.cpp \
+ SIInsertWaitcnts.cpp \
+ SIInstrInfo.cpp \
+ SIISelLowering.cpp \
+ SILoadStoreOptimizer.cpp \
+ SILowerControlFlow.cpp \
+ SILowerI1Copies.cpp \
+ SIMachineFunctionInfo.cpp \
+ SIMachineScheduler.cpp \
+ SIMemoryLegalizer.cpp \
+ SIOptimizeExecMasking.cpp \
+ SIOptimizeExecMaskingPreRA.cpp \
+ SIPeepholeSDWA.cpp \
+ SIRegisterInfo.cpp \
+ SIShrinkInstructions.cpp \
+ SIWholeQuadMode.cpp \
+ GCNILPSched.cpp
+
+TABLEGEN_SRC= AMDGPU.td AMDGPUGISel.td R600.td
+TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+TABLEGEN_OUTPUT.AMDGPU.td= \
+ AMDGPUGenAsmMatcher.inc|-gen-asm-matcher \
+ AMDGPUGenAsmWriter.inc|-gen-asm-writer \
+ AMDGPUGenCallingConv.inc|-gen-callingconv \
+ AMDGPUGenDAGISel.inc|-gen-dag-isel \
+ AMDGPUGenDisassemblerTables.inc|-gen-disassembler \
+ AMDGPUGenInstrInfo.inc|-gen-instr-info \
+ AMDGPUGenIntrinsicEnums.inc|-gen-tgt-intrinsic-enums \
+ AMDGPUGenIntrinsicImpl.inc|-gen-tgt-intrinsic-impl \
+ AMDGPUGenMCCodeEmitter.inc|-gen-emitter \
+ AMDGPUGenMCPseudoLowering.inc|-gen-pseudo-lowering \
+ AMDGPUGenRegisterBank.inc|-gen-register-bank \
+ AMDGPUGenRegisterInfo.inc|-gen-register-info \
+ AMDGPUGenSearchableTables.inc|-gen-searchable-tables \
+ AMDGPUGenSubtargetInfo.inc|-gen-subtarget
+
+TABLEGEN_OUTPUT.AMDGPUGISel.td= \
+ AMDGPUGenGlobalISel.inc|-gen-global-isel
+
+TABLEGEN_OUTPUT.R600.td= \
+ R600GenAsmWriter.inc|-gen-asm-writer \
+ R600GenCallingConv.inc|-gen-callingconv \
+ R600GenDAGISel.inc|-gen-dag-isel \
+ R600GenDFAPacketizer.inc|-gen-dfa-packetizer \
+ R600GenInstrInfo.inc|-gen-instr-info \
+ R600GenMCCodeEmitter.inc|-gen-emitter \
+ R600GenRegisterInfo.inc|-gen-register-info \
+ R600GenSubtargetInfo.inc|-gen-subtarget
+
+.include "${.PARSEDIR}/../../tablegen.mk"
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r 5d5305354e39 -r 4d378de2468e external/bsd/llvm/lib/libLLVMAMDGPUDisassembler/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMAMDGPUDisassembler/Makefile Sun Mar 10 12:14:05 2019 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/03/10 12:14:05 mrg Exp $
+
+LIB= LLVMAMDGPUDisassembler
+
+.include <bsd.init.mk>
+
+AMDGPU_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AMDGPU_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/Disassembler
+
+SRCS+= AMDGPUDisassembler.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r 5d5305354e39 -r 4d378de2468e external/bsd/llvm/lib/libLLVMAMDGPUMCTargetDesc/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMAMDGPUMCTargetDesc/Makefile Sun Mar 10 12:14:05 2019 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2019/03/10 12:14:05 mrg Exp $
+
+LIB= LLVMAMDGPUMCTargetDesc
+
+.include <bsd.init.mk>
+
+AMDGPU_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AMDGPU_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/MCTargetDesc
+
+SRCS+= AMDGPUAsmBackend.cpp \
+ AMDGPUELFObjectWriter.cpp \
+ AMDGPUELFStreamer.cpp \
+ AMDGPUMCAsmInfo.cpp \
+ AMDGPUMCCodeEmitter.cpp \
+ AMDGPUMCTargetDesc.cpp \
+ AMDGPUTargetStreamer.cpp \
+ R600MCCodeEmitter.cpp \
+ R600MCTargetDesc.cpp \
+ SIMCCodeEmitter.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r 5d5305354e39 -r 4d378de2468e external/bsd/llvm/lib/libLLVMAMDGPUTargetInfo/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMAMDGPUTargetInfo/Makefile Sun Mar 10 12:14:05 2019 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/03/10 12:14:06 mrg Exp $
+
+LIB= LLVMAMDGPUTargetInfo
+
+.include <bsd.init.mk>
+
+AMDGPU_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${AMDGPU_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/TargetInfo
+
+SRCS+= AMDGPUTargetInfo.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r 5d5305354e39 -r 4d378de2468e external/bsd/llvm/lib/libLLVMAMDGPUUtils/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/lib/libLLVMAMDGPUUtils/Makefile Sun Mar 10 12:14:05 2019 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2019/03/10 12:14:06 mrg Exp $
+
+LIB= LLVMAMDGPUUtils
+
+.include <bsd.init.mk>
+
+X86_OBJDIR!= cd ${.CURDIR}/../libLLVMAMDGPUCodeGen && ${PRINTOBJDIR}
+CPPFLAGS+= -I${X86_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+CPPFLAGS+= -I${LLVM_SRCDIR}/lib/Target/AMDGPU
+
+.PATH: ${LLVM_SRCDIR}/lib/Target/AMDGPU/Utils
+
+SRCS+= AMDGPUBaseInfo.cpp \
+ AMDKernelCodeTUtils.cpp \
+ AMDGPUAsmUtils.cpp \
+ AMDGPULaneDominator.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff -r 5d5305354e39 -r 4d378de2468e external/bsd/llvm/lib/libLLVMExecutionEngine/Makefile
--- a/external/bsd/llvm/lib/libLLVMExecutionEngine/Makefile Sun Mar 10 11:53:35 2019 +0000
+++ b/external/bsd/llvm/lib/libLLVMExecutionEngine/Makefile Sun Mar 10 12:14:05 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2016/02/27 21:47:33 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2019/03/10 12:14:06 mrg Exp $
LIB= LLVMExecutionEngine
@@ -12,4 +12,8 @@
SectionMemoryManager.cpp \
TargetSelect.cpp
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
Home |
Main Index |
Thread Index |
Old Index