git: daa99286ef81 - main - devel/llvm-devel: new snapshot, 32-bit improvements

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Thu, 14 Nov 2024 22:36:00 UTC
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/ports/commit/?id=daa99286ef8104d1df6c22e35d02b081cab2ed0f

commit daa99286ef8104d1df6c22e35d02b081cab2ed0f
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-11-14 22:35:53 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-11-14 22:35:53 +0000

    devel/llvm-devel: new snapshot, 32-bit improvements
    
    Apply a patch based on one posted by Mark Millard in the comments of
    https://reviews.freebsd.org/D46239 which defaults lld to using a single
    thread on 32-bit systems.
    
    Switch lua to 5.4, matching the intalled path of lldb.so.
    
    Sponsored by:   DARPA, AFRL
---
 devel/llvm-devel/Makefile                       |  2 +-
 devel/llvm-devel/Makefile.snapshot              |  4 ++--
 devel/llvm-devel/distinfo                       |  6 +++---
 devel/llvm-devel/files/patch-lld_ELF_Driver.cpp | 13 +++++++++++++
 devel/llvm-devel/pkg-plist                      | 20 ++++++++++++++++++--
 5 files changed, 37 insertions(+), 8 deletions(-)

diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile
index 56b6197e47d6..934da79b35c0 100644
--- a/devel/llvm-devel/Makefile
+++ b/devel/llvm-devel/Makefile
@@ -162,7 +162,7 @@ LLDB_BUILD_DEPENDS=	\
 LLDB_DESC=		Install lldb, the LLVM debugger
 LLDB_IMPLIES=		CLANG
 LLDB_PLIST_SUB=		PYTHON_ABIVER=${PYTHON_ABIVER}
-LLDB_USES=		lua:53 libedit
+LLDB_USES=		lua:54 libedit
 LLDB_USE=		GNOME=libxml2
 LLDB_VARS=		_USES_PYTHON=python
 MLIR_DESC=		Multi-Level Intermediate Representation
diff --git a/devel/llvm-devel/Makefile.snapshot b/devel/llvm-devel/Makefile.snapshot
index 8db11d4708ef..d27e069b5b1c 100644
--- a/devel/llvm-devel/Makefile.snapshot
+++ b/devel/llvm-devel/Makefile.snapshot
@@ -4,6 +4,6 @@
 #
 LLVM_MAJOR=	20
 LLVM_RELEASE=	${LLVM_MAJOR}.0.0
-SNAPDATE=	20241105
+SNAPDATE=	20241114
 
-LLVM_PROJECT_COMMIT=		6d7e51de5ec46c1fcc7a7e80135f561a88a1296b
+LLVM_PROJECT_COMMIT=		c9719ad5cd7e0fa65b52333f28aa62c05052d989
diff --git a/devel/llvm-devel/distinfo b/devel/llvm-devel/distinfo
index 89ece63f31d4..3a11002567b2 100644
--- a/devel/llvm-devel/distinfo
+++ b/devel/llvm-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1730844194
-SHA256 (llvm-llvm-project-20.0.d20241105-6d7e51de5ec46c1fcc7a7e80135f561a88a1296b_GH0.tar.gz) = 3739ce6bd1c6d0c9717c0b4ae5c3a274d5f5dfb3eff7aff7dea8d67250a1029c
-SIZE (llvm-llvm-project-20.0.d20241105-6d7e51de5ec46c1fcc7a7e80135f561a88a1296b_GH0.tar.gz) = 222302824
+TIMESTAMP = 1731607044
+SHA256 (llvm-llvm-project-20.0.d20241114-c9719ad5cd7e0fa65b52333f28aa62c05052d989_GH0.tar.gz) = 4f09a2ea9bb5016a894c1d84f691047e3eae13aac6d0c37ae14b8e7635071462
+SIZE (llvm-llvm-project-20.0.d20241114-c9719ad5cd7e0fa65b52333f28aa62c05052d989_GH0.tar.gz) = 222717195
diff --git a/devel/llvm-devel/files/patch-lld_ELF_Driver.cpp b/devel/llvm-devel/files/patch-lld_ELF_Driver.cpp
new file mode 100644
index 000000000000..73d52b4d7ccd
--- /dev/null
+++ b/devel/llvm-devel/files/patch-lld_ELF_Driver.cpp
@@ -0,0 +1,13 @@
+--- lld/ELF/Driver.cpp.orig
++++ lld/ELF/Driver.cpp
+@@ -1723,6 +1723,10 @@
+                      << arg->getValue() << "'";
+     parallel::strategy = hardware_concurrency(threads);
+     ctx.arg.thinLTOJobs = v;
++  } else if (sizeof(size_t) < 8) {
++    // On 32-bit systems, cap the number of threads at 1.
++    Log(ctx) << "set maximum concurrency to 1, specify --threads= to change";
++    parallel::strategy = hardware_concurrency(1);
+   } else if (parallel::strategy.compute_thread_count() > 16) {
+     Log(ctx) << "set maximum concurrency to 16, specify --threads= to change";
+     parallel::strategy = hardware_concurrency(16);
diff --git a/devel/llvm-devel/pkg-plist b/devel/llvm-devel/pkg-plist
index 25a7c393ed03..c0b01fd6d4dc 100644
--- a/devel/llvm-devel/pkg-plist
+++ b/devel/llvm-devel/pkg-plist
@@ -2675,6 +2675,7 @@ llvm-devel/include/llvm/Analysis/InstructionPrecedenceTracking.h
 llvm-devel/include/llvm/Analysis/InstructionSimplify.h
 llvm-devel/include/llvm/Analysis/InteractiveModelRunner.h
 llvm-devel/include/llvm/Analysis/IteratedDominanceFrontier.h
+llvm-devel/include/llvm/Analysis/LastRunTrackingAnalysis.h
 llvm-devel/include/llvm/Analysis/LazyBlockFrequencyInfo.h
 llvm-devel/include/llvm/Analysis/LazyBranchProbabilityInfo.h
 llvm-devel/include/llvm/Analysis/LazyCallGraph.h
@@ -2903,6 +2904,7 @@ llvm-devel/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
 llvm-devel/include/llvm/CodeGen/GlobalISel/RegBankSelect.h
 llvm-devel/include/llvm/CodeGen/GlobalISel/Utils.h
 llvm-devel/include/llvm/CodeGen/GlobalMerge.h
+llvm-devel/include/llvm/CodeGen/GlobalMergeFunctions.h
 llvm-devel/include/llvm/CodeGen/HardwareLoops.h
 llvm-devel/include/llvm/CodeGen/ISDOpcodes.h
 llvm-devel/include/llvm/CodeGen/IndirectBrExpand.h
@@ -3410,11 +3412,13 @@ llvm-devel/include/llvm/ExecutionEngine/JITSymbol.h
 llvm-devel/include/llvm/ExecutionEngine/MCJIT.h
 llvm-devel/include/llvm/ExecutionEngine/OProfileWrapper.h
 llvm-devel/include/llvm/ExecutionEngine/ObjectCache.h
+llvm-devel/include/llvm/ExecutionEngine/Orc/AbsoluteSymbols.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/COFFPlatform.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/COFFVCRuntimeSupport.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/CompileUtils.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/Core.h
+llvm-devel/include/llvm/ExecutionEngine/Orc/CoreContainers.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/DebugObjectManagerPlugin.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/DebugUtils.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/Debugging/DebugInfoSupport.h
@@ -3450,6 +3454,7 @@ llvm-devel/include/llvm/ExecutionEngine/Orc/MachOBuilder.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/Mangling.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/MapperJITLinkMemoryManager.h
+llvm-devel/include/llvm/ExecutionEngine/Orc/MaterializationUnit.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/MemoryMapper.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/ObjectFileInterface.h
 llvm-devel/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
@@ -4415,7 +4420,6 @@ llvm-devel/include/llvm/Transforms/Scalar/Sink.h
 llvm-devel/include/llvm/Transforms/Scalar/SpeculativeExecution.h
 llvm-devel/include/llvm/Transforms/Scalar/StraightLineStrengthReduce.h
 llvm-devel/include/llvm/Transforms/Scalar/StructurizeCFG.h
-llvm-devel/include/llvm/Transforms/Scalar/TLSVariableHoist.h
 llvm-devel/include/llvm/Transforms/Scalar/TailRecursionElimination.h
 llvm-devel/include/llvm/Transforms/Scalar/WarnMissedTransforms.h
 llvm-devel/include/llvm/Transforms/Utils.h
@@ -6374,11 +6378,20 @@ llvm-devel/include/llvm/XRay/YAMLXRayRecord.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/adcintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/adxintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/altivec.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amdgpuintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/ammintrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxavx512intrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxbf16transposeintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxcomplexintrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxcomplextransposeintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxfp16intrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxfp16transposeintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxfp8intrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxintrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxmovrsintrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxmovrstransposeintrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxtf32intrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxtf32transposeintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/amxtransposeintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/arm64intr.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/arm_acle.h
@@ -6467,6 +6480,7 @@ llvm-devel/include/llvm/XRay/YAMLXRayRecord.h
 %%COMPILER_RT%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/fuzzer/FuzzedDataProvider.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/fxsrintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/gfniintrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/gpuintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/hexagon_circ_brev_intrinsics.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/hexagon_protos.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/hexagon_types.h
@@ -6504,9 +6518,11 @@ llvm-devel/include/llvm/XRay/YAMLXRayRecord.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/movdirintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/movrs_avx10_2_512intrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/movrs_avx10_2intrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/movrsintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/msa.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/mwaitxintrin.h
 %%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/nmmintrin.h
+%%CLANG%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/nvptxintrin.h
 %%OPENMP%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/omp-tools.h
 %%OPENMP%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/omp.h
 %%OPENMP%%llvm-devel/lib/clang/%%LLVM_MAJOR%%/include/ompt-multiplex.h
@@ -7395,7 +7411,7 @@ llvm-devel/lib/libRemarks.so.%%LLVM_MAJOR_MINOR%%git
 %%CLANG%%llvm-devel/lib/libscanbuild/resources/selectable.js
 %%CLANG%%llvm-devel/lib/libscanbuild/resources/sorttable.js
 %%CLANG%%llvm-devel/lib/libscanbuild/shell.py
-%%LLDB%%llvm-devel/lib/lua/5.3/lldb.so
+%%LLDB%%llvm-devel/lib/lua/5.4/lldb.so
 %%MLIR%%llvm-devel/lib/objects-Release/obj.MLIRCAPIAMDGPU/AMDGPU.cpp.o
 %%MLIR%%llvm-devel/lib/objects-Release/obj.MLIRCAPIArith/Arith.cpp.o
 %%MLIR%%llvm-devel/lib/objects-Release/obj.MLIRCAPIAsync/Async.cpp.o