pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/libLLVM libLLVM: update to 7.0.1, adapted from la...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e4279e2e2ae5
branches:  trunk
changeset: 328788:e4279e2e2ae5
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Jan 26 21:17:20 2019 +0000

description:
libLLVM: update to 7.0.1, adapted from lang/llvm

diffstat:

 lang/libLLVM/DESCR                                                 |    5 -
 lang/libLLVM/Makefile                                              |   70 +-
 lang/libLLVM/PLIST                                                 |  402 +++++++--
 lang/libLLVM/distinfo                                              |   24 +-
 lang/libLLVM/options.mk                                            |    6 +-
 lang/libLLVM/patches/patch-CMakeLists.txt                          |   20 +-
 lang/libLLVM/patches/patch-cmake_config-ix.cmake                   |   15 +
 lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake             |   28 +-
 lang/libLLVM/patches/patch-cmake_modules_CheckAtomic.cmake         |   38 +
 lang/libLLVM/patches/patch-include_llvm-c_DataTypes.h              |   34 +
 lang/libLLVM/patches/patch-include_llvm_Analysis_ConstantFolding.h |   17 +
 lang/libLLVM/patches/patch-include_llvm_Support_Host.h             |   26 -
 lang/libLLVM/patches/patch-lib_Support_Unix_Program.inc            |   16 -
 lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp       |   16 +-
 lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt         |   28 +-
 15 files changed, 492 insertions(+), 253 deletions(-)

diffs (truncated from 1581 to 300 lines):

diff -r c081150fa16d -r e4279e2e2ae5 lang/libLLVM/DESCR
--- a/lang/libLLVM/DESCR        Sat Jan 26 21:15:02 2019 +0000
+++ b/lang/libLLVM/DESCR        Sat Jan 26 21:17:20 2019 +0000
@@ -5,8 +5,3 @@
 
 This package contains the LLVM core shared libraries intended to be usable by
 packages built on an otherwise GCC-built system.
-
-This package (lang/libLLVM) is libLLVM 4.0.  While it could be renamed
-to libLLVM4, that has not happened -- but it is intended to be a fixed
-version.  lang/libLLVM provides 3.4, for depending packages that need
-an even older version.
diff -r c081150fa16d -r e4279e2e2ae5 lang/libLLVM/Makefile
--- a/lang/libLLVM/Makefile     Sat Jan 26 21:15:02 2019 +0000
+++ b/lang/libLLVM/Makefile     Sat Jan 26 21:17:20 2019 +0000
@@ -1,12 +1,10 @@
-# $NetBSD: Makefile,v 1.28 2018/03/04 01:47:39 gdt Exp $
+# $NetBSD: Makefile,v 1.29 2019/01/26 21:17:20 tnn Exp $
 
-DISTNAME=      llvm-4.0.1.src
+DISTNAME=      llvm-7.0.1.src
 PKGNAME=       ${DISTNAME:S/llvm/libLLVM/:S/.src//}
 CATEGORIES=    lang devel
 MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
 EXTRACT_SUFX=  .tar.xz
-# This package is 4.0 on purpose, so that depending packages are not
-# broken.  (It could be renamed libLLVM4.)
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://llvm.org/
@@ -22,23 +20,32 @@
 CMAKE_ARG_PATH=                ${WRKSRC}
 
 CMAKE_ARGS+=   -DCMAKE_BUILD_TYPE=Release
-CMAKE_ARGS+=   -DCMAKE_C_COMPILER=gcc
-CMAKE_ARGS+=   -DCMAKE_CXX_COMPILER=g++
+CMAKE_ARGS+=   -DCMAKE_C_COMPILER=${CC:Q}
+CMAKE_ARGS+=   -DCMAKE_CXX_COMPILER=${CXX:Q}
 CMAKE_ARGS+=   -DCMAKE_CXX_LINK_FLAGS=${LDFLAGS:Q}
 CMAKE_ARGS+=   -DLLVM_BUILD_LLVM_DYLIB=ON
+CMAKE_ARGS+=   -DLLVM_INSTALL_UTILS=OFF
 CMAKE_ARGS+=   -DLLVM_LINK_LLVM_DYLIB=ON
 CMAKE_ARGS+=   -DLLVM_INCLUDE_TESTS=OFF
 CMAKE_ARGS+=   -DCMAKE_EXE_LINKER_FLAGS=${COMPILER_RPATH_FLAG}${PREFIX}/lib/libLLVM
 
 CMAKE_ARGS.Darwin+=    -DCMAKE_LIBTOOL=/usr/bin/libtool
 
-.for tool in   bugpoint bugpoint_passes dsymutil llc lli llvm_ar       \
-       llvm_as llvm_bcanalyzer llvm_c_test llvm_cov llvm_cxxdump       \
-       llvm_diff llvm_dis llvm_dwarfdump llvm_dwp llvm_extract llvm_go \
-       llvm_jitlistener llvm_link llvm_lto llvm_mc llvm_mcmarkup       \
-       llvm_nm llvm_objdump llvm_pdbdump llvm_profdata llvm_readobj    \
-       llvm_rtdyld llvm_size llvm_split llvm_stress llvm_symbolizer    \
-       lto obj2yaml opt sancov verify_uselistorder yaml2obj sanstats
+.for tool in   bugpoint bugpoint_passes dsymutil gold llc lli llvm_ar  \
+       llvm_as llvm_as_fuzzer llvm_bcanalyzer llvm_c_test llvm_cat     \
+       llvm_cfi_verify llvm_cov llvm_cvtres llvm_cxxdump               \
+       llvm_cxxfilt llvm_demangle_fuzzer llvm_diff llvm_dis            \
+       llvm_dwarfdump llvm_dwp llvm_exegesis llvm_extract llvm_go      \
+       llvm_isel_fuzzer llvm_jitlistener llvm_link llvm_lto llvm_lto2  \
+       llvm_mc llvm_mc_assemble_fuzzer llvm_mc_disassemble_fuzzer      \
+       llvm_mca llvm_modextract llvm_mt llvm_nm llvm_objcopy           \
+       llvm_objdump llvm_opt_fuzzer llvm_opt_report llvm_pdbutil       \
+       llvm_profdata llvm_rc llvm_readobj llvm_rtdyld                  \
+       llvm_size llvm_special_case_list_fuzzer llvm_split llvm_stress  \
+       llvm_strings llvm_symbolizer llvm_undname llvm_xray lto         \
+       obj2yaml opt opt_viewer sancov sanstats verify_uselistorder     \
+       xcode_toolchain yaml2obj
+
 CMAKE_ARGS+=   -DLLVM_TOOL_${tool:tu}_BUILD=OFF
 .endfor
 
@@ -51,52 +58,31 @@
 CHECK_PORTABILITY_SKIP=        utils/buildit/build_llvm
 
 # XXX perl is not added as a tool as it does not seem to be required
-REPLACE_PERL+=         utils/GenLibDeps.pl
-REPLACE_PERL+=         utils/UpdateCMakeLists.pl
+REPLACE_PERL+=         utils/*.pl
 REPLACE_PERL+=         utils/codegen-diff
-REPLACE_PERL+=         utils/findsym.pl
 REPLACE_PERL+=         utils/llvm-native-gxx
-REPLACE_PERL+=         utils/test_debuginfo.pl
 
-REPLACE_PYTHON+=       examples/Kaleidoscope/MCJIT/cached/genk-timing.py
-REPLACE_PYTHON+=       examples/Kaleidoscope/MCJIT/cached/split-lib.py
-REPLACE_PYTHON+=       examples/Kaleidoscope/MCJIT/complete/genk-timing.py
-REPLACE_PYTHON+=       examples/Kaleidoscope/MCJIT/complete/split-lib.py
-REPLACE_PYTHON+=       examples/Kaleidoscope/MCJIT/lazy/genk-timing.py
-REPLACE_PYTHON+=       test/BugPoint/compile-custom.ll.py
-REPLACE_PYTHON+=       test/tools/llvm-readobj/Inputs/relocs.py
+REPLACE_PYTHON+=       tools/opt-viewer/*.py
+REPLACE_PYTHON+=       tools/sancov/*.py
+REPLACE_PYTHON+=       utils/*.py
 REPLACE_PYTHON+=       utils/Misc/zkill
-REPLACE_PYTHON+=       utils/Target/ARM/analyze-match-table.py
 REPLACE_PYTHON+=       utils/bisect
 REPLACE_PYTHON+=       utils/clang-parse-diagnostics-file
-REPLACE_PYTHON+=       utils/create_ladder_graph.py
 REPLACE_PYTHON+=       utils/git/find-rev
-REPLACE_PYTHON+=       utils/lint/common_lint.py
-REPLACE_PYTHON+=       utils/lint/cpp_lint.py
-REPLACE_PYTHON+=       utils/lint/generic_lint.py
-REPLACE_PYTHON+=       utils/lit/lit.py
-REPLACE_PYTHON+=       utils/lit/lit/ProgressBar.py
-REPLACE_PYTHON+=       utils/lit/lit/main.py
 REPLACE_PYTHON+=       utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest
 REPLACE_PYTHON+=       utils/llvm-build/llvm-build
 REPLACE_PYTHON+=       utils/llvm-compilers-check
 REPLACE_PYTHON+=       utils/llvm-lit/llvm-lit.in
-REPLACE_PYTHON+=       utils/release/findRegressions-nightly.py
-REPLACE_PYTHON+=       utils/release/findRegressions-simple.py
-REPLACE_PYTHON+=       utils/schedcover.py
-REPLACE_PYTHON+=       utils/shuffle_fuzz.py
-REPLACE_PYTHON+=       utils/sort_includes.py
-REPLACE_PYTHON+=       utils/testgen/mc-bundling-x86-gen.py
-REPLACE_PYTHON+=       utils/update_llc_test_checks.py
-REPLACE_PYTHON+=       utils/wciia.py
 
 TEST_TARGET=           check
 TEST_ENV+=             LD_LIBRARY_PATH=${WRKDIR}/build/lib
 
 .include "../../mk/bsd.prefs.mk"
 
-# 3.8.0 -> 3.8
-LLVM_MAJOR_MINOR=      ${PKGVERSION_NOREV:C/^([0-9]+\.[0-9]+)\..*$/\1/}
+# 7.0.1 -> 7.0
+#LLVM_MAJOR_MINOR=     ${PKGVERSION_NOREV:C/^([0-9]+\.[0-9]+)\..*$/\1/}
+# 7.0.1 -> 7
+LLVM_MAJOR_MINOR=      ${PKGVERSION_NOREV:C/^([0-9]+).*$/\1/}
 PLIST_SUBST+=          LLVM_MAJOR_MINOR=${LLVM_MAJOR_MINOR}
 
 PLIST_VARS+=   notdylib
diff -r c081150fa16d -r e4279e2e2ae5 lang/libLLVM/PLIST
--- a/lang/libLLVM/PLIST        Sat Jan 26 21:15:02 2019 +0000
+++ b/lang/libLLVM/PLIST        Sat Jan 26 21:17:20 2019 +0000
@@ -1,9 +1,13 @@
-@comment $NetBSD: PLIST,v 1.11 2017/12/08 02:14:44 gdt Exp $
+@comment $NetBSD: PLIST,v 1.12 2019/01/26 21:17:20 tnn Exp $
 include/libLLVM/llvm-c/Analysis.h
 include/libLLVM/llvm-c/BitReader.h
 include/libLLVM/llvm-c/BitWriter.h
+include/libLLVM/llvm-c/Comdat.h
 include/libLLVM/llvm-c/Core.h
+include/libLLVM/llvm-c/DataTypes.h
+include/libLLVM/llvm-c/DebugInfo.h
 include/libLLVM/llvm-c/Disassembler.h
+include/libLLVM/llvm-c/DisassemblerTypes.h
 include/libLLVM/llvm-c/ErrorHandling.h
 include/libLLVM/llvm-c/ExecutionEngine.h
 include/libLLVM/llvm-c/IRReader.h
@@ -16,8 +20,10 @@
 include/libLLVM/llvm-c/Target.h
 include/libLLVM/llvm-c/TargetMachine.h
 include/libLLVM/llvm-c/Transforms/IPO.h
+include/libLLVM/llvm-c/Transforms/InstCombine.h
 include/libLLVM/llvm-c/Transforms/PassManagerBuilder.h
 include/libLLVM/llvm-c/Transforms/Scalar.h
+include/libLLVM/llvm-c/Transforms/Utils.h
 include/libLLVM/llvm-c/Transforms/Vectorize.h
 include/libLLVM/llvm-c/Types.h
 include/libLLVM/llvm-c/lto.h
@@ -25,9 +31,11 @@
 include/libLLVM/llvm/ADT/APInt.h
 include/libLLVM/llvm/ADT/APSInt.h
 include/libLLVM/llvm/ADT/AllocatorList.h
+include/libLLVM/llvm/ADT/Any.h
 include/libLLVM/llvm/ADT/ArrayRef.h
 include/libLLVM/llvm/ADT/BitVector.h
 include/libLLVM/llvm/ADT/BitmaskEnum.h
+include/libLLVM/llvm/ADT/BreadthFirstIterator.h
 include/libLLVM/llvm/ADT/CachedHashString.h
 include/libLLVM/llvm/ADT/DAGDeltaAlgorithm.h
 include/libLLVM/llvm/ADT/DeltaAlgorithm.h
@@ -38,6 +46,7 @@
 include/libLLVM/llvm/ADT/EpochTracker.h
 include/libLLVM/llvm/ADT/EquivalenceClasses.h
 include/libLLVM/llvm/ADT/FoldingSet.h
+include/libLLVM/llvm/ADT/FunctionExtras.h
 include/libLLVM/llvm/ADT/GraphTraits.h
 include/libLLVM/llvm/ADT/Hashing.h
 include/libLLVM/llvm/ADT/ImmutableList.h
@@ -104,6 +113,7 @@
 include/libLLVM/llvm/Analysis/BranchProbabilityInfo.h
 include/libLLVM/llvm/Analysis/CFG.h
 include/libLLVM/llvm/Analysis/CFGPrinter.h
+include/libLLVM/llvm/Analysis/CFLAliasAnalysisUtils.h
 include/libLLVM/llvm/Analysis/CFLAndersAliasAnalysis.h
 include/libLLVM/llvm/Analysis/CFLSteensAliasAnalysis.h
 include/libLLVM/llvm/Analysis/CGSCCPassManager.h
@@ -111,6 +121,7 @@
 include/libLLVM/llvm/Analysis/CallGraphSCCPass.h
 include/libLLVM/llvm/Analysis/CallPrinter.h
 include/libLLVM/llvm/Analysis/CaptureTracking.h
+include/libLLVM/llvm/Analysis/CmpInstAnalysis.h
 include/libLLVM/llvm/Analysis/CodeMetrics.h
 include/libLLVM/llvm/Analysis/ConstantFolding.h
 include/libLLVM/llvm/Analysis/DOTGraphTraitsPass.h
@@ -147,14 +158,18 @@
 include/libLLVM/llvm/Analysis/MemoryBuiltins.h
 include/libLLVM/llvm/Analysis/MemoryDependenceAnalysis.h
 include/libLLVM/llvm/Analysis/MemoryLocation.h
+include/libLLVM/llvm/Analysis/MemorySSA.h
+include/libLLVM/llvm/Analysis/MemorySSAUpdater.h
 include/libLLVM/llvm/Analysis/ModuleSummaryAnalysis.h
+include/libLLVM/llvm/Analysis/MustExecute.h
 include/libLLVM/llvm/Analysis/ObjCARCAliasAnalysis.h
 include/libLLVM/llvm/Analysis/ObjCARCAnalysisUtils.h
 include/libLLVM/llvm/Analysis/ObjCARCInstKind.h
-include/libLLVM/llvm/Analysis/OptimizationDiagnosticInfo.h
+include/libLLVM/llvm/Analysis/OptimizationRemarkEmitter.h
 include/libLLVM/llvm/Analysis/OrderedBasicBlock.h
 include/libLLVM/llvm/Analysis/PHITransAddr.h
 include/libLLVM/llvm/Analysis/Passes.h
+include/libLLVM/llvm/Analysis/PhiValues.h
 include/libLLVM/llvm/Analysis/PostDominators.h
 include/libLLVM/llvm/Analysis/ProfileSummaryInfo.h
 include/libLLVM/llvm/Analysis/PtrUseVisitor.h
@@ -170,6 +185,7 @@
 include/libLLVM/llvm/Analysis/ScalarEvolutionNormalization.h
 include/libLLVM/llvm/Analysis/ScopedNoAliasAA.h
 include/libLLVM/llvm/Analysis/SparsePropagation.h
+include/libLLVM/llvm/Analysis/SyntheticCountsUtils.h
 include/libLLVM/llvm/Analysis/TargetFolder.h
 include/libLLVM/llvm/Analysis/TargetLibraryInfo.def
 include/libLLVM/llvm/Analysis/TargetLibraryInfo.h
@@ -178,10 +194,39 @@
 include/libLLVM/llvm/Analysis/Trace.h
 include/libLLVM/llvm/Analysis/TypeBasedAliasAnalysis.h
 include/libLLVM/llvm/Analysis/TypeMetadataUtils.h
+include/libLLVM/llvm/Analysis/Utils/Local.h
+include/libLLVM/llvm/Analysis/ValueLattice.h
+include/libLLVM/llvm/Analysis/ValueLatticeUtils.h
 include/libLLVM/llvm/Analysis/ValueTracking.h
 include/libLLVM/llvm/Analysis/VectorUtils.h
 include/libLLVM/llvm/AsmParser/Parser.h
 include/libLLVM/llvm/AsmParser/SlotMapping.h
+include/libLLVM/llvm/BinaryFormat/COFF.h
+include/libLLVM/llvm/BinaryFormat/Dwarf.def
+include/libLLVM/llvm/BinaryFormat/Dwarf.h
+include/libLLVM/llvm/BinaryFormat/DynamicTags.def
+include/libLLVM/llvm/BinaryFormat/ELF.h
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/AArch64.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/AMDGPU.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/ARC.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/ARM.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/AVR.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/BPF.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/Hexagon.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/Lanai.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/Mips.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/PowerPC.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/RISCV.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/Sparc.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/SystemZ.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/i386.def
+include/libLLVM/llvm/BinaryFormat/ELFRelocs/x86_64.def
+include/libLLVM/llvm/BinaryFormat/MachO.def
+include/libLLVM/llvm/BinaryFormat/MachO.h
+include/libLLVM/llvm/BinaryFormat/Magic.h
+include/libLLVM/llvm/BinaryFormat/Wasm.h
+include/libLLVM/llvm/BinaryFormat/WasmRelocs.def
 include/libLLVM/llvm/Bitcode/BitCodes.h
 include/libLLVM/llvm/Bitcode/BitcodeReader.h
 include/libLLVM/llvm/Bitcode/BitcodeWriter.h
@@ -189,19 +234,23 @@
 include/libLLVM/llvm/Bitcode/BitstreamReader.h
 include/libLLVM/llvm/Bitcode/BitstreamWriter.h
 include/libLLVM/llvm/Bitcode/LLVMBitCodes.h
+include/libLLVM/llvm/CodeGen/AccelTable.h
 include/libLLVM/llvm/CodeGen/Analysis.h
 include/libLLVM/llvm/CodeGen/AsmPrinter.h
 include/libLLVM/llvm/CodeGen/AtomicExpandUtils.h
 include/libLLVM/llvm/CodeGen/BasicTTIImpl.h
 include/libLLVM/llvm/CodeGen/CalcSpillWeights.h
 include/libLLVM/llvm/CodeGen/CallingConvLower.h
-include/libLLVM/llvm/CodeGen/CommandFlags.h
+include/libLLVM/llvm/CodeGen/CommandFlags.inc
+include/libLLVM/llvm/CodeGen/CostTable.h
 include/libLLVM/llvm/CodeGen/DAGCombine.h
 include/libLLVM/llvm/CodeGen/DFAPacketizer.h
 include/libLLVM/llvm/CodeGen/DIE.h
 include/libLLVM/llvm/CodeGen/DIEValue.def
 include/libLLVM/llvm/CodeGen/DwarfStringPoolEntry.h
 include/libLLVM/llvm/CodeGen/EdgeBundles.h
+include/libLLVM/llvm/CodeGen/ExecutionDomainFix.h
+include/libLLVM/llvm/CodeGen/ExpandReductions.h
 include/libLLVM/llvm/CodeGen/FastISel.h
 include/libLLVM/llvm/CodeGen/FaultMaps.h
 include/libLLVM/llvm/CodeGen/FunctionLoweringInfo.h
@@ -210,13 +259,21 @@
 include/libLLVM/llvm/CodeGen/GCStrategy.h
 include/libLLVM/llvm/CodeGen/GCs.h
 include/libLLVM/llvm/CodeGen/GlobalISel/CallLowering.h
-include/libLLVM/llvm/CodeGen/GlobalISel/GISelAccessor.h
+include/libLLVM/llvm/CodeGen/GlobalISel/Combiner.h
+include/libLLVM/llvm/CodeGen/GlobalISel/CombinerHelper.h
+include/libLLVM/llvm/CodeGen/GlobalISel/CombinerInfo.h
+include/libLLVM/llvm/CodeGen/GlobalISel/ConstantFoldingMIRBuilder.h



Home | Main Index | Thread Index | Old Index