summaryrefslogtreecommitdiff
path: root/lang/llvm
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2021-11-23 20:55:42 +0000
committerwiz <wiz@pkgsrc.org>2021-11-23 20:55:42 +0000
commitf89f247d7f667a0b206d6ab3942b498075dc78ae (patch)
tree7a7a5fb2be6f6146f467cb3b77ac92c99fbd5ee6 /lang/llvm
parent56c5e751ab6b834be202685f5ff325ad387d5e3c (diff)
downloadpkgsrc-f89f247d7f667a0b206d6ab3942b498075dc78ae.tar.gz
llvm: update llvm and friends to 13.0.0
Tested on NetBSD-current and 9.1/amd64. Also update packages tightly coupled to llvm, if new versions are available. Mark creduce, include-what-you-use, and zig broken (waiting for a new release). Changes: Non-comprehensive list of changes in this release Windows Control-flow Enforcement Technology: the -ehcontguard option now emits valid unwind entrypoints which are validated when the context is being set during exception handling. Flang is now included in the binary packages released by LLVM. The debuginfo-test project has been renamed cross-project-tests and is now intended for testing components from multiple projects, not just debug information. The new “cross-project-tests” name replaces “debuginfo-test” in LLVM_ENABLE_PROJECTS, and a new check-cross-project-tests target has been added for running all tests in the project. The pre-existing check-debuginfo- test target remains for running just the debug information tests. (D95339 and D96513) Changes to the LLVM IR The inalloca attribute now has a mandatory type field, similar to byval and sret. The opaque pointer type ptr has been introduced. It is still in the process of being worked on and should not be used yet. Using the legacy pass manager for the optimization pipeline is deprecated and will be removed after LLVM 14. In the meantime, only minimal effort will be made to maintain the legacy pass manager for the optimization pipeline. Changes to building LLVM The build system now supports building multiple distributions, so that you can e.g. have one distribution containing just tools and another for libraries (to enable development). See Multi-distribution configurations for details. Changes to the AArch64 Backend Introduced assembly support for Armv9-A’s Realm Management Extension (RME) and Scalable Matrix Extension (SME). Produce proper cross-section relative relocations on COFF Fixed the calling convention on Windows for variadic functions involving floats in the fixed arguments Changes to the ARM Backend Produce proper cross-section relative relocations on COFF Changes to the Hexagon Target The Hexagon target now supports V68/HVX ISA. Changes to the C API The C API functions LLVMGetAlignment and LLVMSetAlignment now allow changing alignment on atomicrmw and cmpxchg instructions A new entry LLVMDIArgListMetadataKind was added to the LLVMMetadataKind enum, representing DIArgLists (D88175) Type attributes have been added to LLVM-C, introducing LLVMCreateTypeAttribute, LLVMGetTypeAttributeValue and LLVMIsTypeAttribute. (D977763’) The LTO_API_VERSION was bumped to 28, introducing a new function lto_set_debug_options for parsing LTO debug options (D92611) LLVMJITTargetSymbolFlags was renamed to LLVMJITSymbolTargetFlags (rG8d718a0bff73af066675a6258c01307937c33cf9) The C API received support for creating custom ORCv2 MaterializationUnits and APIs to retrieve an LLJIT instance’s linking layers. An ABI breaking change for LLVMOrcAbsoluteSymbols was introduced to make it consistent with LLVMOrcCreateCustomMaterializationUnit. (rGc8fc5e3ba942057d6c4cdcd1faeae69a28e7b671) The C API received support for adding ORCv2 object buffers directly to an object layer. (rG7b73cd684a8d5fb44d34064200f10e2723085c33) A breaking change to LLVMGetInlineAsm was introduced, adding a ninth argument LLVMBool CanThrow (D95745) The C API received support for calling into the new pass manager. (D102136) The C API function LLVMIntrinsicCopyOverloadedName has been deprecated. Please migrate to LLVMIntrinsicCopyOverloadedName2 which takes an extra module argument and which also handles unnamed types. (D99173) The C API received support for dumping objects from ORCv2 (rGcec8e69f01c3374cb38c6683058381b96fab8f89) A breaking change to LLVMOrcObjectTransformLayerTransformFunction was introduced, changing the order of the function pointer’s arguments. (rG8962c68ad007a525f9daa987c99eda57e0d0069a) The C API received support for accessing utilities from the LLJIT IRTransformLayer and ThreadSafeModule classes. (D103855) The C API received support for creating lazy-export MaterializationUnits (D104672) The C API function LLVMPassBuilderOptionsSetCoroutines was removed because couroutine passes have been enabled by default. (D105877) comdat noduplicates was renamed to comdat nodeduplicate and as a result, LLVMNoDuplicatesComdatSelectionKind was renamed to LLVMNoDeduplicateComdatSelectionKind. (D106319) Changes to the FastISel infrastructure FastISel no longer tracks killed registers, and instead leaves this to the register allocator. This means that hasTrivialKill() is removed, as well as the OpNIsKill parameters to the fastEmit_*() family of functions. Changes to the LLVM tools The options --build-id-link-{dir,input,output} have been deleted. (D96310) Support for in-order processors has been added to llvm-mca. (D94928) llvm-objdump supports -M {att,intel} now. --x86-asm-syntax is a deprecated internal option which will be removed in LLVM 14.0.0. (D101695) The llvm-readobj short aliases -s (previously --sections) and -t (previously --syms) have been changed to --syms and --section-details respectively, to match llvm-readelf. (D105055) The llvm-nm short aliases -M (--print-armap), -U (--defined-only), and -W (--no-weak) are now deprecated. Use the long form versions instead. The alias --just-symbol-name is now deprecated in favor of --format=just-symbols and -j. (D105330) In lli the default JIT engine switched from MCJIT (-jit-kind=mcjit) to ORC (-jit-kind=orc). (D98931) llvm-rc got support for invoking Clang to preprocess its input. (D100755) llvm-rc got a GNU windres compatible frontend, llvm-windres. (D100756) llvm-ml has improved compatibility with MS ml.exe, managing to assemble more asm files. Changes to LLDB LLDB executable is now included in pre-built LLVM binaries. LLDB now includes full featured support for AArch64 SVE register access. LLDB now supports AArch64 Pointer Authentication, allowing stack unwind with signed return address. LLDB now supports debugging programs on AArch64 Linux that use memory tagging (MTE). Added memory tag read and memory tag write commands. The memory region command will note when a region has memory tagging enabled. Synchronous and asynchronous tag faults are recognised. Synchronous tag faults have memory tag annotations in addition to the usual fault address.
Diffstat (limited to 'lang/llvm')
-rw-r--r--lang/llvm/PLIST116
-rw-r--r--lang/llvm/buildlink3.mk8
-rw-r--r--lang/llvm/distinfo12
-rw-r--r--lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake14
-rw-r--r--lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt12
-rw-r--r--lang/llvm/version.mk4
6 files changed, 113 insertions, 53 deletions
diff --git a/lang/llvm/PLIST b/lang/llvm/PLIST
index e40c20ffea9..ce72bc74d7a 100644
--- a/lang/llvm/PLIST
+++ b/lang/llvm/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.17 2021/07/12 18:41:02 adam Exp $
+@comment $NetBSD: PLIST,v 1.18 2021/11/23 20:55:44 wiz Exp $
bin/FileCheck
bin/bugpoint
bin/count
@@ -26,7 +26,6 @@ bin/llvm-dis
bin/llvm-dlltool
bin/llvm-dwarfdump
bin/llvm-dwp
-bin/llvm-elfabi
bin/llvm-exegesis
bin/llvm-extract
bin/llvm-gsymutil
@@ -49,6 +48,7 @@ bin/llvm-nm
bin/llvm-objcopy
bin/llvm-objdump
bin/llvm-opt-report
+bin/llvm-otool
bin/llvm-pdbutil
bin/llvm-profdata
bin/llvm-profgen
@@ -58,14 +58,17 @@ bin/llvm-readelf
bin/llvm-readobj
bin/llvm-reduce
bin/llvm-rtdyld
+bin/llvm-sim
bin/llvm-size
bin/llvm-split
bin/llvm-stress
bin/llvm-strings
bin/llvm-strip
bin/llvm-symbolizer
+bin/llvm-tapi-diff
bin/llvm-tblgen
bin/llvm-undname
+bin/llvm-windres
bin/llvm-xray
bin/not
bin/obj2yaml
@@ -104,6 +107,7 @@ include/llvm-c/Transforms/AggressiveInstCombine.h
include/llvm-c/Transforms/Coroutines.h
include/llvm-c/Transforms/IPO.h
include/llvm-c/Transforms/InstCombine.h
+include/llvm-c/Transforms/PassBuilder.h
include/llvm-c/Transforms/PassManagerBuilder.h
include/llvm-c/Transforms/Scalar.h
include/llvm-c/Transforms/Utils.h
@@ -158,6 +162,7 @@ include/llvm/ADT/PriorityQueue.h
include/llvm/ADT/PriorityWorklist.h
include/llvm/ADT/SCCIterator.h
include/llvm/ADT/STLExtras.h
+include/llvm/ADT/STLForwardCompat.h
include/llvm/ADT/ScopeExit.h
include/llvm/ADT/ScopedHashTable.h
include/llvm/ADT/Sequence.h
@@ -282,7 +287,9 @@ include/llvm/Analysis/MustExecute.h
include/llvm/Analysis/ObjCARCAliasAnalysis.h
include/llvm/Analysis/ObjCARCAnalysisUtils.h
include/llvm/Analysis/ObjCARCInstKind.h
+include/llvm/Analysis/ObjCARCUtil.h
include/llvm/Analysis/OptimizationRemarkEmitter.h
+include/llvm/Analysis/OverflowInstAnalysis.h
include/llvm/Analysis/PHITransAddr.h
include/llvm/Analysis/Passes.h
include/llvm/Analysis/PhiValues.h
@@ -322,6 +329,9 @@ include/llvm/Analysis/ValueLatticeUtils.h
include/llvm/Analysis/ValueTracking.h
include/llvm/Analysis/VecFuncs.def
include/llvm/Analysis/VectorUtils.h
+include/llvm/AsmParser/LLLexer.h
+include/llvm/AsmParser/LLParser.h
+include/llvm/AsmParser/LLToken.h
include/llvm/AsmParser/Parser.h
include/llvm/AsmParser/SlotMapping.h
include/llvm/BinaryFormat/AMDGPUMetadataVerifier.h
@@ -339,6 +349,7 @@ include/llvm/BinaryFormat/ELFRelocs/BPF.def
include/llvm/BinaryFormat/ELFRelocs/CSKY.def
include/llvm/BinaryFormat/ELFRelocs/Hexagon.def
include/llvm/BinaryFormat/ELFRelocs/Lanai.def
+include/llvm/BinaryFormat/ELFRelocs/M68k.def
include/llvm/BinaryFormat/ELFRelocs/MSP430.def
include/llvm/BinaryFormat/ELFRelocs/Mips.def
include/llvm/BinaryFormat/ELFRelocs/PowerPC.def
@@ -381,7 +392,6 @@ include/llvm/CodeGen/AsmPrinterHandler.h
include/llvm/CodeGen/AtomicExpandUtils.h
include/llvm/CodeGen/BasicBlockSectionUtils.h
include/llvm/CodeGen/BasicTTIImpl.h
-include/llvm/CodeGen/BuiltinGCs.h
include/llvm/CodeGen/CSEConfigBase.h
include/llvm/CodeGen/CalcSpillWeights.h
include/llvm/CodeGen/CallingConvLower.h
@@ -398,27 +408,28 @@ include/llvm/CodeGen/DwarfStringPoolEntry.h
include/llvm/CodeGen/EdgeBundles.h
include/llvm/CodeGen/ExecutionDomainFix.h
include/llvm/CodeGen/ExpandReductions.h
+include/llvm/CodeGen/ExpandVectorPredication.h
include/llvm/CodeGen/FastISel.h
include/llvm/CodeGen/FaultMaps.h
include/llvm/CodeGen/FunctionLoweringInfo.h
include/llvm/CodeGen/GCMetadata.h
include/llvm/CodeGen/GCMetadataPrinter.h
-include/llvm/CodeGen/GCStrategy.h
include/llvm/CodeGen/GlobalISel/CSEInfo.h
include/llvm/CodeGen/GlobalISel/CSEMIRBuilder.h
include/llvm/CodeGen/GlobalISel/CallLowering.h
include/llvm/CodeGen/GlobalISel/Combiner.h
include/llvm/CodeGen/GlobalISel/CombinerHelper.h
include/llvm/CodeGen/GlobalISel/CombinerInfo.h
-include/llvm/CodeGen/GlobalISel/ConstantFoldingMIRBuilder.h
include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h
include/llvm/CodeGen/GlobalISel/GISelKnownBits.h
include/llvm/CodeGen/GlobalISel/GISelWorkList.h
+include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h
include/llvm/CodeGen/GlobalISel/IRTranslator.h
include/llvm/CodeGen/GlobalISel/InlineAsmLowering.h
include/llvm/CodeGen/GlobalISel/InstructionSelect.h
include/llvm/CodeGen/GlobalISel/InstructionSelector.h
include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
+include/llvm/CodeGen/GlobalISel/LegacyLegalizerInfo.h
include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
include/llvm/CodeGen/GlobalISel/Legalizer.h
include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
@@ -453,6 +464,7 @@ include/llvm/CodeGen/LiveVariables.h
include/llvm/CodeGen/LoopTraversal.h
include/llvm/CodeGen/LowLevelType.h
include/llvm/CodeGen/MBFIWrapper.h
+include/llvm/CodeGen/MIRFSDiscriminator.h
include/llvm/CodeGen/MIRFormatter.h
include/llvm/CodeGen/MIRParser/MIParser.h
include/llvm/CodeGen/MIRParser/MIRParser.h
@@ -479,6 +491,7 @@ include/llvm/CodeGen/MachineLoopUtils.h
include/llvm/CodeGen/MachineMemOperand.h
include/llvm/CodeGen/MachineModuleInfo.h
include/llvm/CodeGen/MachineModuleInfoImpls.h
+include/llvm/CodeGen/MachineModuleSlotTracker.h
include/llvm/CodeGen/MachineOperand.h
include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
include/llvm/CodeGen/MachineOutliner.h
@@ -512,6 +525,7 @@ include/llvm/CodeGen/RDFGraph.h
include/llvm/CodeGen/RDFLiveness.h
include/llvm/CodeGen/RDFRegisters.h
include/llvm/CodeGen/ReachingDefAnalysis.h
+include/llvm/CodeGen/RegAllocCommon.h
include/llvm/CodeGen/RegAllocPBQP.h
include/llvm/CodeGen/RegAllocRegistry.h
include/llvm/CodeGen/Register.h
@@ -519,6 +533,7 @@ include/llvm/CodeGen/RegisterClassInfo.h
include/llvm/CodeGen/RegisterPressure.h
include/llvm/CodeGen/RegisterScavenging.h
include/llvm/CodeGen/RegisterUsageInfo.h
+include/llvm/CodeGen/ReplaceWithVeclib.h
include/llvm/CodeGen/ResourcePriorityQueue.h
include/llvm/CodeGen/RuntimeLibcalls.h
include/llvm/CodeGen/SDNodeProperties.td
@@ -569,6 +584,9 @@ include/llvm/DWARFLinker/DWARFLinker.h
include/llvm/DWARFLinker/DWARFLinkerCompileUnit.h
include/llvm/DWARFLinker/DWARFLinkerDeclContext.h
include/llvm/DWARFLinker/DWARFStreamer.h
+include/llvm/DWP/DWP.h
+include/llvm/DWP/DWPError.h
+include/llvm/DWP/DWPStringPool.h
include/llvm/DebugInfo/CodeView/AppendingTypeTableBuilder.h
include/llvm/DebugInfo/CodeView/CVRecord.h
include/llvm/DebugInfo/CodeView/CVSymbolVisitor.h
@@ -821,6 +839,7 @@ include/llvm/ExecutionEngine/Interpreter.h
include/llvm/ExecutionEngine/JITEventListener.h
include/llvm/ExecutionEngine/JITLink/EHFrameSupport.h
include/llvm/ExecutionEngine/JITLink/ELF.h
+include/llvm/ExecutionEngine/JITLink/ELF_riscv.h
include/llvm/ExecutionEngine/JITLink/ELF_x86_64.h
include/llvm/ExecutionEngine/JITLink/JITLink.h
include/llvm/ExecutionEngine/JITLink/JITLinkDylib.h
@@ -828,6 +847,8 @@ include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h
include/llvm/ExecutionEngine/JITLink/MachO.h
include/llvm/ExecutionEngine/JITLink/MachO_arm64.h
include/llvm/ExecutionEngine/JITLink/MachO_x86_64.h
+include/llvm/ExecutionEngine/JITLink/riscv.h
+include/llvm/ExecutionEngine/JITLink/x86_64.h
include/llvm/ExecutionEngine/JITSymbol.h
include/llvm/ExecutionEngine/MCJIT.h
include/llvm/ExecutionEngine/OProfileWrapper.h
@@ -835,13 +856,20 @@ include/llvm/ExecutionEngine/ObjectCache.h
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
include/llvm/ExecutionEngine/Orc/CompileUtils.h
include/llvm/ExecutionEngine/Orc/Core.h
+include/llvm/ExecutionEngine/Orc/DebugObjectManagerPlugin.h
include/llvm/ExecutionEngine/Orc/DebugUtils.h
+include/llvm/ExecutionEngine/Orc/EPCDebugObjectRegistrar.h
+include/llvm/ExecutionEngine/Orc/EPCDynamicLibrarySearchGenerator.h
+include/llvm/ExecutionEngine/Orc/EPCEHFrameRegistrar.h
+include/llvm/ExecutionEngine/Orc/EPCIndirectionUtils.h
include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
+include/llvm/ExecutionEngine/Orc/ExecutorProcessControl.h
include/llvm/ExecutionEngine/Orc/IRCompileLayer.h
include/llvm/ExecutionEngine/Orc/IRTransformLayer.h
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
include/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h
include/llvm/ExecutionEngine/Orc/LLJIT.h
+include/llvm/ExecutionEngine/Orc/LLVMSPSSerializers.h
include/llvm/ExecutionEngine/Orc/Layer.h
include/llvm/ExecutionEngine/Orc/LazyReexports.h
include/llvm/ExecutionEngine/Orc/MachOPlatform.h
@@ -849,27 +877,27 @@ include/llvm/ExecutionEngine/Orc/Mangling.h
include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
include/llvm/ExecutionEngine/Orc/OrcABISupport.h
-include/llvm/ExecutionEngine/Orc/OrcRPCTargetProcessControl.h
+include/llvm/ExecutionEngine/Orc/OrcRPCExecutorProcessControl.h
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
+include/llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h
include/llvm/ExecutionEngine/Orc/Shared/FDRawByteChannel.h
include/llvm/ExecutionEngine/Orc/Shared/OrcError.h
include/llvm/ExecutionEngine/Orc/Shared/RPCUtils.h
include/llvm/ExecutionEngine/Orc/Shared/RawByteChannel.h
include/llvm/ExecutionEngine/Orc/Shared/Serialization.h
+include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h
include/llvm/ExecutionEngine/Orc/Shared/TargetProcessControlTypes.h
+include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
include/llvm/ExecutionEngine/Orc/SpeculateAnalyses.h
include/llvm/ExecutionEngine/Orc/Speculation.h
include/llvm/ExecutionEngine/Orc/SymbolStringPool.h
-include/llvm/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.h
-include/llvm/ExecutionEngine/Orc/TPCEHFrameRegistrar.h
-include/llvm/ExecutionEngine/Orc/TPCIndirectionUtils.h
+include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h
include/llvm/ExecutionEngine/Orc/TargetProcess/OrcRPCTPCServer.h
include/llvm/ExecutionEngine/Orc/TargetProcess/RegisterEHFrames.h
include/llvm/ExecutionEngine/Orc/TargetProcess/TargetExecutionUtils.h
-include/llvm/ExecutionEngine/Orc/TargetProcessControl.h
include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h
include/llvm/ExecutionEngine/OrcMCJITReplacement.h
include/llvm/ExecutionEngine/OrcV1Deprecation.h
@@ -905,6 +933,7 @@ include/llvm/IR/Attributes.inc
include/llvm/IR/Attributes.td
include/llvm/IR/AutoUpgrade.h
include/llvm/IR/BasicBlock.h
+include/llvm/IR/BuiltinGCs.h
include/llvm/IR/CFG.h
include/llvm/IR/CallingConv.h
include/llvm/IR/Comdat.h
@@ -929,6 +958,7 @@ include/llvm/IR/FPEnv.h
include/llvm/IR/FixedMetadataKinds.def
include/llvm/IR/FixedPointBuilder.h
include/llvm/IR/Function.h
+include/llvm/IR/GCStrategy.h
include/llvm/IR/GVMaterializer.h
include/llvm/IR/GetElementPtrTypeIterator.h
include/llvm/IR/GlobalAlias.h
@@ -1033,8 +1063,8 @@ include/llvm/IR/Verifier.h
include/llvm/IRReader/IRReader.h
include/llvm/InitializePasses.h
include/llvm/InterfaceStub/ELFObjHandler.h
-include/llvm/InterfaceStub/ELFStub.h
-include/llvm/InterfaceStub/TBEHandler.h
+include/llvm/InterfaceStub/IFSHandler.h
+include/llvm/InterfaceStub/IFSStub.h
include/llvm/LTO/Caching.h
include/llvm/LTO/Config.h
include/llvm/LTO/LTO.h
@@ -1105,6 +1135,7 @@ include/llvm/MC/MCSchedule.h
include/llvm/MC/MCSection.h
include/llvm/MC/MCSectionCOFF.h
include/llvm/MC/MCSectionELF.h
+include/llvm/MC/MCSectionGOFF.h
include/llvm/MC/MCSectionMachO.h
include/llvm/MC/MCSectionWasm.h
include/llvm/MC/MCSectionXCOFF.h
@@ -1113,6 +1144,7 @@ include/llvm/MC/MCSubtargetInfo.h
include/llvm/MC/MCSymbol.h
include/llvm/MC/MCSymbolCOFF.h
include/llvm/MC/MCSymbolELF.h
+include/llvm/MC/MCSymbolGOFF.h
include/llvm/MC/MCSymbolMachO.h
include/llvm/MC/MCSymbolWasm.h
include/llvm/MC/MCSymbolXCOFF.h
@@ -1133,6 +1165,7 @@ include/llvm/MC/StringTableBuilder.h
include/llvm/MC/SubtargetFeature.h
include/llvm/MCA/CodeEmitter.h
include/llvm/MCA/Context.h
+include/llvm/MCA/CustomBehaviour.h
include/llvm/MCA/HWEventListener.h
include/llvm/MCA/HardwareUnits/HardwareUnit.h
include/llvm/MCA/HardwareUnits/LSUnit.h
@@ -1147,6 +1180,7 @@ include/llvm/MCA/SourceMgr.h
include/llvm/MCA/Stages/DispatchStage.h
include/llvm/MCA/Stages/EntryStage.h
include/llvm/MCA/Stages/ExecuteStage.h
+include/llvm/MCA/Stages/InOrderIssueStage.h
include/llvm/MCA/Stages/InstructionTables.h
include/llvm/MCA/Stages/MicroOpQueueStage.h
include/llvm/MCA/Stages/RetireStage.h
@@ -1164,6 +1198,7 @@ include/llvm/Object/ELF.h
include/llvm/Object/ELFObjectFile.h
include/llvm/Object/ELFTypes.h
include/llvm/Object/Error.h
+include/llvm/Object/FaultMapParser.h
include/llvm/Object/IRObjectFile.h
include/llvm/Object/IRSymtab.h
include/llvm/Object/MachO.h
@@ -1253,7 +1288,9 @@ include/llvm/Support/AllocatorBase.h
include/llvm/Support/ArrayRecycler.h
include/llvm/Support/Atomic.h
include/llvm/Support/AtomicOrdering.h
+include/llvm/Support/AutoConvert.h
include/llvm/Support/Automaton.h
+include/llvm/Support/BCD.h
include/llvm/Support/Base64.h
include/llvm/Support/BinaryByteStream.h
include/llvm/Support/BinaryItemStream.h
@@ -1289,6 +1326,7 @@ include/llvm/Support/DataExtractor.h
include/llvm/Support/DataTypes.h
include/llvm/Support/Debug.h
include/llvm/Support/DebugCounter.h
+include/llvm/Support/Discriminator.h
include/llvm/Support/DynamicLibrary.h
include/llvm/Support/ELFAttributeParser.h
include/llvm/Support/ELFAttributes.h
@@ -1364,6 +1402,7 @@ include/llvm/Support/Regex.h
include/llvm/Support/Registry.h
include/llvm/Support/ReverseIteration.h
include/llvm/Support/SHA1.h
+include/llvm/Support/SHA256.h
include/llvm/Support/SMLoc.h
include/llvm/Support/SMTAPI.h
include/llvm/Support/SaveAndRestore.h
@@ -1450,16 +1489,16 @@ include/llvm/Target/TargetSelectionDAG.td
include/llvm/Testing/Support/Annotations.h
include/llvm/Testing/Support/Error.h
include/llvm/Testing/Support/SupportHelpers.h
-include/llvm/TextAPI/MachO/Architecture.def
-include/llvm/TextAPI/MachO/Architecture.h
-include/llvm/TextAPI/MachO/ArchitectureSet.h
-include/llvm/TextAPI/MachO/InterfaceFile.h
-include/llvm/TextAPI/MachO/PackedVersion.h
-include/llvm/TextAPI/MachO/Platform.h
-include/llvm/TextAPI/MachO/Symbol.h
-include/llvm/TextAPI/MachO/Target.h
-include/llvm/TextAPI/MachO/TextAPIReader.h
-include/llvm/TextAPI/MachO/TextAPIWriter.h
+include/llvm/TextAPI/Architecture.def
+include/llvm/TextAPI/Architecture.h
+include/llvm/TextAPI/ArchitectureSet.h
+include/llvm/TextAPI/InterfaceFile.h
+include/llvm/TextAPI/PackedVersion.h
+include/llvm/TextAPI/Platform.h
+include/llvm/TextAPI/Symbol.h
+include/llvm/TextAPI/Target.h
+include/llvm/TextAPI/TextAPIReader.h
+include/llvm/TextAPI/TextAPIWriter.h
include/llvm/ToolDrivers/llvm-dlltool/DlltoolDriver.h
include/llvm/ToolDrivers/llvm-lib/LibDriver.h
include/llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h
@@ -1469,7 +1508,6 @@ include/llvm/Transforms/Coroutines/CoroCleanup.h
include/llvm/Transforms/Coroutines/CoroEarly.h
include/llvm/Transforms/Coroutines/CoroElide.h
include/llvm/Transforms/Coroutines/CoroSplit.h
-include/llvm/Transforms/HelloNew/HelloWorld.h
include/llvm/Transforms/IPO.h
include/llvm/Transforms/IPO/AlwaysInliner.h
include/llvm/Transforms/IPO/Annotation2Metadata.h
@@ -1498,6 +1536,7 @@ include/llvm/Transforms/IPO/MergeFunctions.h
include/llvm/Transforms/IPO/OpenMPOpt.h
include/llvm/Transforms/IPO/PartialInlining.h
include/llvm/Transforms/IPO/PassManagerBuilder.h
+include/llvm/Transforms/IPO/ProfiledCallGraph.h
include/llvm/Transforms/IPO/SCCP.h
include/llvm/Transforms/IPO/SampleContextTracker.h
include/llvm/Transforms/IPO/SampleProfile.h
@@ -1513,6 +1552,7 @@ include/llvm/Transforms/InstCombine/InstCombiner.h
include/llvm/Transforms/Instrumentation.h
include/llvm/Transforms/Instrumentation/AddressSanitizer.h
include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h
+include/llvm/Transforms/Instrumentation/AddressSanitizerOptions.h
include/llvm/Transforms/Instrumentation/BoundsChecking.h
include/llvm/Transforms/Instrumentation/CGProfile.h
include/llvm/Transforms/Instrumentation/ControlHeightReduction.h
@@ -1538,6 +1578,7 @@ include/llvm/Transforms/Scalar/ConstantHoisting.h
include/llvm/Transforms/Scalar/ConstraintElimination.h
include/llvm/Transforms/Scalar/CorrelatedValuePropagation.h
include/llvm/Transforms/Scalar/DCE.h
+include/llvm/Transforms/Scalar/DFAJumpThreading.h
include/llvm/Transforms/Scalar/DeadStoreElimination.h
include/llvm/Transforms/Scalar/DivRemPairs.h
include/llvm/Transforms/Scalar/EarlyCSE.h
@@ -1553,6 +1594,7 @@ include/llvm/Transforms/Scalar/InstSimplifyPass.h
include/llvm/Transforms/Scalar/JumpThreading.h
include/llvm/Transforms/Scalar/LICM.h
include/llvm/Transforms/Scalar/LoopAccessAnalysisPrinter.h
+include/llvm/Transforms/Scalar/LoopBoundSplit.h
include/llvm/Transforms/Scalar/LoopDataPrefetch.h
include/llvm/Transforms/Scalar/LoopDeletion.h
include/llvm/Transforms/Scalar/LoopDistribute.h
@@ -1596,7 +1638,6 @@ include/llvm/Transforms/Scalar/SeparateConstOffsetFromGEP.h
include/llvm/Transforms/Scalar/SimpleLoopUnswitch.h
include/llvm/Transforms/Scalar/SimplifyCFG.h
include/llvm/Transforms/Scalar/Sink.h
-include/llvm/Transforms/Scalar/SpeculateAroundPHIs.h
include/llvm/Transforms/Scalar/SpeculativeExecution.h
include/llvm/Transforms/Scalar/StraightLineStrengthReduce.h
include/llvm/Transforms/Scalar/StructurizeCFG.h
@@ -1628,6 +1669,7 @@ include/llvm/Transforms/Utils/FunctionComparator.h
include/llvm/Transforms/Utils/FunctionImportUtils.h
include/llvm/Transforms/Utils/GlobalStatus.h
include/llvm/Transforms/Utils/GuardUtils.h
+include/llvm/Transforms/Utils/HelloWorld.h
include/llvm/Transforms/Utils/InjectTLIMappings.h
include/llvm/Transforms/Utils/InstructionNamer.h
include/llvm/Transforms/Utils/IntegerDivision.h
@@ -1644,14 +1686,19 @@ include/llvm/Transforms/Utils/LowerMemIntrinsics.h
include/llvm/Transforms/Utils/LowerSwitch.h
include/llvm/Transforms/Utils/MatrixUtils.h
include/llvm/Transforms/Utils/Mem2Reg.h
+include/llvm/Transforms/Utils/MemoryOpRemark.h
include/llvm/Transforms/Utils/MetaRenamer.h
include/llvm/Transforms/Utils/ModuleUtils.h
include/llvm/Transforms/Utils/NameAnonGlobals.h
include/llvm/Transforms/Utils/PredicateInfo.h
include/llvm/Transforms/Utils/PromoteMemToReg.h
+include/llvm/Transforms/Utils/RelLookupTableConverter.h
+include/llvm/Transforms/Utils/SCCPSolver.h
include/llvm/Transforms/Utils/SSAUpdater.h
include/llvm/Transforms/Utils/SSAUpdaterBulk.h
include/llvm/Transforms/Utils/SSAUpdaterImpl.h
+include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
+include/llvm/Transforms/Utils/SampleProfileLoaderBaseUtil.h
include/llvm/Transforms/Utils/SanitizerStats.h
include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
include/llvm/Transforms/Utils/SimplifyCFGOptions.h
@@ -1664,7 +1711,6 @@ include/llvm/Transforms/Utils/StripNonLineTableDebugInfo.h
include/llvm/Transforms/Utils/SymbolRewriter.h
include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
include/llvm/Transforms/Utils/UnifyLoopExits.h
-include/llvm/Transforms/Utils/UniqueInternalLinkageNames.h
include/llvm/Transforms/Utils/UnrollLoop.h
include/llvm/Transforms/Utils/VNCoercion.h
include/llvm/Transforms/Utils/ValueMapper.h
@@ -1701,7 +1747,6 @@ lib/cmake/llvm/AddOCaml.cmake
lib/cmake/llvm/AddSphinxTarget.cmake
lib/cmake/llvm/CheckAtomic.cmake
lib/cmake/llvm/CheckCompilerVersion.cmake
-lib/cmake/llvm/CheckLinkerFlag.cmake
lib/cmake/llvm/ChooseMSVCCRT.cmake
lib/cmake/llvm/CrossCompile.cmake
lib/cmake/llvm/DetermineGCCCompatible.cmake
@@ -1711,11 +1756,13 @@ lib/cmake/llvm/FindOCaml.cmake
lib/cmake/llvm/FindSphinx.cmake
lib/cmake/llvm/FindZ3.cmake
lib/cmake/llvm/GenerateVersionFromVCS.cmake
+lib/cmake/llvm/GetErrcMessages.cmake
lib/cmake/llvm/GetLibraryName.cmake
lib/cmake/llvm/HandleLLVMOptions.cmake
lib/cmake/llvm/HandleLLVMStdlib.cmake
lib/cmake/llvm/LLVM-Build.cmake
lib/cmake/llvm/LLVM-Config.cmake
+lib/cmake/llvm/LLVMCheckLinkerFlag.cmake
lib/cmake/llvm/LLVMConfig.cmake
lib/cmake/llvm/LLVMConfigExtensions.cmake
lib/cmake/llvm/LLVMConfigVersion.cmake
@@ -1730,7 +1777,7 @@ lib/cmake/llvm/TensorFlowCompile.cmake
lib/cmake/llvm/UseLibtool.cmake
lib/cmake/llvm/VersionFromVCS.cmake
lib/libLLVM-${PKGVERSION}.${SOEXT}
-lib/libLLVM-12.so
+lib/libLLVM-13.so
lib/libLLVM.${SOEXT}
${PLIST.AArch64}lib/libLLVMAArch64AsmParser.a
${PLIST.AArch64}lib/libLLVMAArch64CodeGen.a
@@ -1769,11 +1816,13 @@ lib/libLLVMBitReader.a
lib/libLLVMBitWriter.a
lib/libLLVMBitstreamReader.a
lib/libLLVMCFGuard.a
+lib/libLLVMCFIVerify.a
lib/libLLVMCodeGen.a
lib/libLLVMCore.a
lib/libLLVMCoroutines.a
lib/libLLVMCoverage.a
lib/libLLVMDWARFLinker.a
+lib/libLLVMDWP.a
lib/libLLVMDebugInfoCodeView.a
lib/libLLVMDebugInfoDWARF.a
lib/libLLVMDebugInfoGSYM.a
@@ -1782,13 +1831,17 @@ lib/libLLVMDebugInfoPDB.a
lib/libLLVMDemangle.a
lib/libLLVMDlltoolDriver.a
lib/libLLVMExecutionEngine.a
+lib/libLLVMExegesis.a
+lib/libLLVMExegesisAArch64.a
+lib/libLLVMExegesisMips.a
+lib/libLLVMExegesisPowerPC.a
+lib/libLLVMExegesisX86.a
lib/libLLVMExtensions.a
lib/libLLVMFileCheck.a
lib/libLLVMFrontendOpenACC.a
lib/libLLVMFrontendOpenMP.a
lib/libLLVMFuzzMutate.a
lib/libLLVMGlobalISel.a
-lib/libLLVMHelloNew.a
${PLIST.Hexagon}lib/libLLVMHexagonAsmParser.a
${PLIST.Hexagon}lib/libLLVMHexagonCodeGen.a
${PLIST.Hexagon}lib/libLLVMHexagonDesc.a
@@ -1811,6 +1864,7 @@ lib/libLLVMLineEditor.a
lib/libLLVMLinker.a
lib/libLLVMMC.a
lib/libLLVMMCA.a
+lib/libLLVMMCACustomBehaviourAMDGPU.a
lib/libLLVMMCDisassembler.a
lib/libLLVMMCJIT.a
lib/libLLVMMCParser.a
@@ -1864,6 +1918,7 @@ ${PLIST.SystemZ}lib/libLLVMSystemZDesc.a
${PLIST.SystemZ}lib/libLLVMSystemZDisassembler.a
${PLIST.SystemZ}lib/libLLVMSystemZInfo.a
lib/libLLVMTableGen.a
+lib/libLLVMTableGenGlobalISel.a
lib/libLLVMTarget.a
lib/libLLVMTextAPI.a
lib/libLLVMTransformUtils.a
@@ -1873,6 +1928,7 @@ ${PLIST.WebAssembly}lib/libLLVMWebAssemblyCodeGen.a
${PLIST.WebAssembly}lib/libLLVMWebAssemblyDesc.a
${PLIST.WebAssembly}lib/libLLVMWebAssemblyDisassembler.a
${PLIST.WebAssembly}lib/libLLVMWebAssemblyInfo.a
+${PLIST.WebAssembly}lib/libLLVMWebAssemblyUtils.a
lib/libLLVMWindowsManifest.a
${PLIST.X86}lib/libLLVMX86AsmParser.a
${PLIST.X86}lib/libLLVMX86CodeGen.a
@@ -1886,9 +1942,9 @@ ${PLIST.XCore}lib/libLLVMXCoreInfo.a
lib/libLLVMXRay.a
lib/libLLVMipo.a
lib/libLTO.${SOEXT}
-${PLIST.notdylib}lib/libLTO.${SOEXT}.12
+${PLIST.notdylib}lib/libLTO.${SOEXT}.13
lib/libRemarks.${SOEXT}
-${PLIST.notdylib}lib/libRemarks.${SOEXT}.12
+${PLIST.notdylib}lib/libRemarks.${SOEXT}.13
share/opt-viewer/opt-diff.py
share/opt-viewer/opt-stats.py
share/opt-viewer/opt-viewer.py
diff --git a/lang/llvm/buildlink3.mk b/lang/llvm/buildlink3.mk
index 45b294c3093..ff7e8284eb1 100644
--- a/lang/llvm/buildlink3.mk
+++ b/lang/llvm/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.15 2021/07/12 18:41:02 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.16 2021/11/23 20:55:44 wiz Exp $
BUILDLINK_TREE+= llvm
@@ -6,6 +6,7 @@ BUILDLINK_TREE+= llvm
LLVM_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.llvm+= llvm>=10.0.1
+BUILDLINK_ABI_DEPENDS.llvm+= llvm>=13.0.0
BUILDLINK_PKGSRCDIR.llvm?= ../../lang/llvm
LLVM_CONFIG_PATH?= ${BUILDLINK_PREFIX.llvm}/bin/llvm-config
@@ -37,7 +38,6 @@ BUILDLINK_FILES.llvm+= bin/llvm-dis
BUILDLINK_FILES.llvm+= bin/llvm-dlltool
BUILDLINK_FILES.llvm+= bin/llvm-dwarfdump
BUILDLINK_FILES.llvm+= bin/llvm-dwp
-BUILDLINK_FILES.llvm+= bin/llvm-elfabi
BUILDLINK_FILES.llvm+= bin/llvm-exegesis
BUILDLINK_FILES.llvm+= bin/llvm-extract
BUILDLINK_FILES.llvm+= bin/llvm-gsymutil
@@ -60,6 +60,7 @@ BUILDLINK_FILES.llvm+= bin/llvm-nm
BUILDLINK_FILES.llvm+= bin/llvm-objcopy
BUILDLINK_FILES.llvm+= bin/llvm-objdump
BUILDLINK_FILES.llvm+= bin/llvm-opt-report
+BUILDLINK_FILES.llvm+= bin/llvm-otool
BUILDLINK_FILES.llvm+= bin/llvm-pdbutil
BUILDLINK_FILES.llvm+= bin/llvm-profdata
BUILDLINK_FILES.llvm+= bin/llvm-profgen
@@ -69,14 +70,17 @@ BUILDLINK_FILES.llvm+= bin/llvm-readelf
BUILDLINK_FILES.llvm+= bin/llvm-readobj
BUILDLINK_FILES.llvm+= bin/llvm-reduce
BUILDLINK_FILES.llvm+= bin/llvm-rtdyld
+BUILDLINK_FILES.llvm+= bin/llvm-sim
BUILDLINK_FILES.llvm+= bin/llvm-size
BUILDLINK_FILES.llvm+= bin/llvm-split
BUILDLINK_FILES.llvm+= bin/llvm-stress
BUILDLINK_FILES.llvm+= bin/llvm-strings
BUILDLINK_FILES.llvm+= bin/llvm-strip
BUILDLINK_FILES.llvm+= bin/llvm-symbolizer
+BUILDLINK_FILES.llvm+= bin/llvm-tapi-diff
BUILDLINK_FILES.llvm+= bin/llvm-tblgen
BUILDLINK_FILES.llvm+= bin/llvm-undname
+BUILDLINK_FILES.llvm+= bin/llvm-windres
BUILDLINK_FILES.llvm+= bin/llvm-xray
BUILDLINK_FILES.llvm+= bin/not
BUILDLINK_FILES.llvm+= bin/obj2yaml
diff --git a/lang/llvm/distinfo b/lang/llvm/distinfo
index 0775011cce3..dd211992983 100644
--- a/lang/llvm/distinfo
+++ b/lang/llvm/distinfo
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.31 2021/10/26 10:51:41 nia Exp $
+$NetBSD: distinfo,v 1.32 2021/11/23 20:55:44 wiz Exp $
-BLAKE2s (llvm-12.0.1.src.tar.xz) = 7fd5bf0ff1277bba7dfec2e1451e833d0dc2e47aa1f3cacfd4940fd992fc3100
-SHA512 (llvm-12.0.1.src.tar.xz) = ff674afb4c8eea699a4756f1bb463f15098a7fa354c733de83c024f8f0cf238cd5f19ae3ec446831c7109235e293e2bf31d8562567ede163c8ec53af7306ba0f
-Size (llvm-12.0.1.src.tar.xz) = 42898504 bytes
+BLAKE2s (llvm-13.0.0.src.tar.xz) = ffdfed33e870715f2e8c0efdc2c29566a2bffe5a6efce90ea7ca4990c9067f0f
+SHA512 (llvm-13.0.0.src.tar.xz) = c307500a5fdc2bf6d768a808cf879d33914e24437f4f794361eccedb28ac6a98ebc41ca6140d09364c9bdec565fabd049e364d3f5b39f1751ecff51b687c4eff
+Size (llvm-13.0.0.src.tar.xz) = 45471992 bytes
SHA1 (patch-CMakeLists.txt) = 78e2dab2bf73f7e466ca2788fe6444e39b4ebd80
SHA1 (patch-cmake_config-ix.cmake) = 0c89e208e9e101a6d80aaa5007126eefb0d3647c
-SHA1 (patch-cmake_modules_AddLLVM.cmake) = fe771db1846dc6abaecf0d4268f2ca567f143cef
+SHA1 (patch-cmake_modules_AddLLVM.cmake) = 148897aeba8c29b9cf55eade62554710ae0f63f3
SHA1 (patch-include_llvm-c_DataTypes.h) = 790c9458d6590a0d6985fdcbd8785da340b9779b
SHA1 (patch-include_llvm_Analysis_ConstantFolding.h) = 56b9374da236c346565897977040255b9766cab8
-SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 28f417bbfa17f2e644042350da5b98c07b834968
+SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 97b9c7c3487989c2909dd0294a67a5328d9ef309
diff --git a/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake b/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake
index d404b4d31b7..788c13c2f6b 100644
--- a/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake
+++ b/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake
@@ -1,25 +1,25 @@
-$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.7 2021/07/12 18:41:02 adam Exp $
+$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.8 2021/11/23 20:55:44 wiz Exp $
On Darwin, create symbolic links to shared libraries.
On Darwin, use correct install-name for shared libraries.
---- cmake/modules/AddLLVM.cmake.orig 2020-10-07 10:10:48.000000000 +0000
+--- cmake/modules/AddLLVM.cmake.orig 2021-09-24 16:18:10.000000000 +0000
+++ cmake/modules/AddLLVM.cmake
-@@ -596,7 +596,7 @@ function(llvm_add_library name)
+@@ -607,7 +607,7 @@ function(llvm_add_library name)
endif()
- if(ARG_SHARED AND UNIX)
+ if(ARG_SHARED)
- if(NOT APPLE AND ARG_SONAME)
+ if(ARG_SONAME)
get_target_property(output_name ${name} OUTPUT_NAME)
if(${output_name} STREQUAL "output_name-NOTFOUND")
set(output_name ${name})
-@@ -2063,7 +2063,7 @@ function(llvm_setup_rpath name)
+@@ -2118,7 +2118,7 @@ function(llvm_setup_rpath name)
endif()
if (APPLE)
- set(_install_name_dir INSTALL_NAME_DIR "@rpath")
+ set(_install_name_dir INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
set(_install_rpath "@loader_path/../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir})
- elseif(UNIX)
- set(_install_rpath "\$ORIGIN/../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir})
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "AIX" AND BUILD_SHARED_LIBS)
+ # $ORIGIN is not interpreted at link time by aix ld.
diff --git a/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt b/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
index a8e697d8b9c..d881ebd51a7 100644
--- a/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
+++ b/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
@@ -1,10 +1,10 @@
-$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.6 2019/10/19 13:52:40 adam Exp $
+$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.7 2021/11/23 20:55:44 wiz Exp $
Use the Linux style linking everywhere except Darwin and SunOS.
---- tools/llvm-shlib/CMakeLists.txt.orig 2019-08-29 08:58:14.000000000 +0000
+--- tools/llvm-shlib/CMakeLists.txt.orig 2021-09-24 16:18:10.000000000 +0000
+++ tools/llvm-shlib/CMakeLists.txt
-@@ -45,13 +45,11 @@ if(LLVM_BUILD_LLVM_DYLIB)
+@@ -33,13 +33,11 @@ if(LLVM_BUILD_LLVM_DYLIB)
add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${INSTALL_WITH_TOOLCHAIN} ${SOURCES})
list(REMOVE_DUPLICATES LIB_NAMES)
@@ -23,9 +23,9 @@ Use the Linux style linking everywhere except Darwin and SunOS.
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/simple_version_script.map.in
${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map)
-@@ -62,8 +60,6 @@ if(LLVM_BUILD_LLVM_DYLIB)
- # Solaris ld does not accept global: *; so there is no way to version *all* global symbols
- set(LIB_NAMES -Wl,--version-script,${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map ${LIB_NAMES})
+@@ -57,8 +55,6 @@ if(LLVM_BUILD_LLVM_DYLIB)
+ # inside and outside libLLVM.so.
+ target_link_options(LLVM PRIVATE LINKER:-Bsymbolic-functions)
endif()
- elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
- set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
diff --git a/lang/llvm/version.mk b/lang/llvm/version.mk
index ce6d872be79..cc83a3eac95 100644
--- a/lang/llvm/version.mk
+++ b/lang/llvm/version.mk
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.5 2021/07/12 18:41:02 adam Exp $
+# $NetBSD: version.mk,v 1.6 2021/11/23 20:55:44 wiz Exp $
# used by devel/lld
# used by devel/lldb
# used by devel/polly
@@ -10,7 +10,7 @@
# used by lang/libunwind
# used by parallel/openmp
-LLVM_VERSION= 12.0.1
+LLVM_VERSION= 13.0.0
MASTER_SITES= ${MASTER_SITE_GITHUB:=llvm/}
GITHUB_PROJECT= llvm-project
GITHUB_RELEASE= llvmorg-${PKGVERSION_NOREV}