FreeBSD/src 0c49d9fsys/conf newvers.sh

14.3: Update to BETA3

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+1-1sys/conf/newvers.sh
+1-11 files

LLVM/project 13e6ffdlibc/shared/math faddf128.h, libc/src/__support/math faddf128.h CMakeLists.txt

[libc][math] Refactor fadd family to header-only (#182185)

Refactors the fadd math family to be header-only.

Closes https://github.com/llvm/llvm-project/issues/182184

Target Functions:
  - fadd
  - faddf128
  - faddl
DeltaFile
+46-3utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+31-0libc/src/__support/math/faddf128.h
+28-0libc/src/__support/math/CMakeLists.txt
+28-0libc/shared/math/faddf128.h
+25-0libc/src/__support/math/fadd.h
+25-0libc/src/__support/math/faddl.h
+183-39 files not shown
+246-2015 files

LLVM/project f6fb24dclang/include/clang/DependencyScanning DependencyScanningService.h, clang/lib/DependencyScanning DependencyScannerImpl.cpp ModuleDepCollector.cpp

[clang][deps] Don't treat the 'P1689' output format specially (#182069)

This patch essentially reverts 62fec3d2 which was an NFC, and replaces
the remaining check for the output format with more generic scanning
service option that controls whether we report absolute or relative file
paths. Along with #182063 this makes the scanner implementation entirely
independent of the desired output format.
DeltaFile
+2-8clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+1-3clang/lib/DependencyScanning/ModuleDepCollector.cpp
+3-0clang/tools/clang-scan-deps/ClangScanDeps.cpp
+2-0clang/include/clang/DependencyScanning/DependencyScanningService.h
+8-114 files

LLVM/project 64e1318clang/docs ReleaseNotes.rst, clang/lib/ASTMatchers ASTMatchFinder.cpp

[clang] Add missing support for traversal kind in addMatcher overloads (#170953)

This was noted in #170540, and seems to simply be an oversight. This
patch just add the same logic already used in other addMatcher()
implementations that honor the traversal kind.

Fixes #179386.
DeltaFile
+25-21clang/lib/ASTMatchers/ASTMatchFinder.cpp
+35-0clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp
+1-0clang/docs/ReleaseNotes.rst
+61-213 files

LLVM/project 13f659cllvm/test/CodeGen/ARM build-attributes.ll armv4.ll, llvm/test/CodeGen/Thumb2/mve-intrinsics absneg-predicated.ll

[ARM] Fix duplicate RUN lines in tests (#182280)

DeltaFile
+2-2llvm/test/MC/Disassembler/ARM/d16.txt
+0-4llvm/test/CodeGen/ARM/build-attributes.ll
+1-1llvm/test/MC/ARM/idiv-2op.s
+0-2llvm/test/MC/ARM/thumb2-branches.s
+0-1llvm/test/CodeGen/ARM/armv4.ll
+0-1llvm/test/CodeGen/Thumb2/mve-intrinsics/absneg-predicated.ll
+3-111 files not shown
+3-127 files

LLVM/project 1d096c0llvm/test/Instrumentation/HWAddressSanitizer prologue.ll alloca.ll, llvm/test/Instrumentation/HWAddressSanitizer/RISCV alloca.ll use-after-scope-setjmp.ll

[NFC] [HWAsan] Run UTC on hwasan tests (#181437)

```
for x in $(grep -l 'UTC' llvm/test/Instrumentation/HWAddressSanitizer/**/*.ll); do
llvm/utils/update_test_checks.py  --opt-binary build/bin/opt $x; done
```
DeltaFile
+75-75llvm/test/Instrumentation/HWAddressSanitizer/prologue.ll
+16-16llvm/test/Instrumentation/HWAddressSanitizer/X86/basic.ll
+4-4llvm/test/Instrumentation/HWAddressSanitizer/X86/alloca.ll
+2-2llvm/test/Instrumentation/HWAddressSanitizer/RISCV/alloca.ll
+2-2llvm/test/Instrumentation/HWAddressSanitizer/RISCV/use-after-scope-setjmp.ll
+2-2llvm/test/Instrumentation/HWAddressSanitizer/alloca.ll
+101-1015 files not shown
+106-10611 files

FreeNAS/freenas 4ce4144tests/api2 test_api.py

NAS-139887 / 26.0.0-BETA.1 / Enhance test_versions to also handle new version format (#18249)

DeltaFile
+14-2tests/api2/test_api.py
+14-21 files

LLVM/project b19d21alibc/shared/math fmaxf128.h fmaxf16.h, libc/src/__support/math CMakeLists.txt fmaxf128.h

[libc][math] Refactor fmax family to header-only (#182165)

Refactors the fmax math family to be header-only.

Closes https://github.com/llvm/llvm-project/issues/182164

Target Functions:
  - fmax
  - fmaxbf16
  - fmaxf
  - fmaxf128
  - fmaxf16
  - fmaxl
DeltaFile
+94-5utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+65-0libc/src/__support/math/CMakeLists.txt
+31-0libc/src/__support/math/fmaxf128.h
+29-0libc/src/__support/math/fmaxf16.h
+28-0libc/shared/math/fmaxf128.h
+28-0libc/shared/math/fmaxf16.h
+275-518 files not shown
+499-5024 files

LLVM/project 6cdee8flibc/shared rpc.h, libc/test/integration/startup/gpu rpc_divergence_test.cpp CMakeLists.txt

[libc] Fix RPC server with independent thread scheduling (#182211)

Summary:
The NVIDIA ITS protocol allows lanes to diverge inside of a warp. We
previously had contingencies around this, but there were cases where
issues would still show up under highly stressed usage.

The rules state that as long as the PC is the same, threads can
reconverge. This means that we can see a 'convergent' warp even when
they took completely divergent paths to get there. This resulted in the
'index' value in the RPC port lookup loop thinking we were in a
convergent group while all the indices were different. Fix this with a
broadcast to force the expected behavior

Additionally, we did not force that the threads were actually done with
their 'work_fn'. If the work included something that caused divergence
the other threads could continue and toggle the mailbox, resulting in
the server seeing unfinished work. Fix this with an explicit sync and
have one thread do it.

Add a test to make sure this actually works.
DeltaFile
+63-0libc/test/integration/startup/gpu/rpc_divergence_test.cpp
+12-7libc/shared/rpc.h
+10-0libc/test/integration/startup/gpu/CMakeLists.txt
+85-73 files

LLVM/project e9350dclibc/src/__support/GPU allocator.cpp

[libc] Improve GPU allocator lane usage and fences (#182388)

Summary:
Improves performance on the GPU allocator. First, we can use `uniform`
as our mask value when we obtain a slab. Because this is guarnateed
uniform we can safely treat it as our mask. This also improves the
behavior on NVIDIA's ITS.

Secondly, we do not actually need acquire / release fences on the
bitfield. These are one-to-one interfaces and the malloc / free
interface provides the necessary happens-before context. The only fences
that matter are the lifetime management for the guard pointer.
DeltaFile
+19-29libc/src/__support/GPU/allocator.cpp
+19-291 files

LLVM/project d3054a4llvm/lib/Transforms/Utils LoopUnroll.cpp, llvm/test/Transforms/LoopUnroll/branch-weights-freq unroll-complete.ll unroll-partial-unconditional-latch.ll

[LoopUnroll] Fix freqs for unconditional latches: N>2, uniform

This patch introduces the command-line option
`-unroll-uniform-weights`.  When computing probabilities for the
remaining N conditional latches in the unrolled loop after converting
some iterations' latches to unconditional, LoopUnroll now supports the
following three strategies:

- A. If N <= 2, use a simple formula to compute a single uniform
  probability across those latches.
- B. Otherwise, if `-unroll-uniform-weights` is not specified, apply
  the original loop's probability to all N latches and then, as
  needed, adjust as few of them as possible.
- C. Otherwise, bisect the range [0,1] to find a single uniform
  probability across all N latches.  This patch implements this
  strategy.

An issue with C is that it could impact compiler performance, so this
patch makes it opt-in.  Its appeal over B is that it treats all

    [5 lines not shown]
DeltaFile
+187-74llvm/test/Transforms/LoopUnroll/branch-weights-freq/unroll-complete.ll
+97-15llvm/lib/Transforms/Utils/LoopUnroll.cpp
+48-20llvm/test/Transforms/LoopUnroll/branch-weights-freq/unroll-partial-unconditional-latch.ll
+332-1093 files

LLVM/project 06c9037llvm/lib/Transforms/Utils LoopUnroll.cpp, llvm/test/Transforms/LoopUnroll/branch-weights-freq unroll-complete.ll unroll-epilog.ll

[LoopUnroll] Fix freqs for unconditional latches: N>2, fast

This patch extends PR #179520 to the N > 2 case, where N is the number
of remaining conditional latches.  Its strategy is to apply the
original loop's probability to all N latches and then, as needed,
adjust as few of them as possible.
DeltaFile
+480-0llvm/test/Transforms/LoopUnroll/branch-weights-freq/unroll-complete.ll
+125-4llvm/lib/Transforms/Utils/LoopUnroll.cpp
+68-0llvm/test/Transforms/LoopUnroll/branch-weights-freq/unroll-epilog.ll
+66-0llvm/test/Transforms/LoopUnroll/branch-weights-freq/unroll-partial-unconditional-latch.ll
+739-44 files

LLVM/project 494edb7llvm/lib/Target/Hexagon HexagonISelDAGToDAG.cpp, llvm/test/CodeGen/Hexagon isel-shl-neg-const.ll

[Hexagon] Fix UB from left shift of negative in SelectSHL (#181235)

Perform left shifts in unsigned arithmetic in SelectSHL to avoid
undefined behavior when the multiply constant is negative. The result is
cast back to int32_t for the subsequent isInt<9> range check.

Also fix a similar issue where shifting 1 by up to 31 could shift into
the sign bit.

This fixes the UBSan issue in ISelDAGtoDAG:


/local/mnt/workspace/bcain-20260212_105837/llvm-project/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp:597
      :44: runtime error: left shift of negative value -1431655765
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior

/local/mnt/workspace/bcain-20260212_105837/llvm-project/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp:597:44
in
DeltaFile
+31-0llvm/test/CodeGen/Hexagon/isel-shl-neg-const.ll
+4-2llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
+35-22 files

LLVM/project 6ac9c2elibc/src/__support/math CMakeLists.txt ceilf16.h, utils/bazel/llvm-project-overlay/libc BUILD.bazel

[libc][math] Refactor ceil family to header-only (#182121)

Refactors the ceil math family to be header-only.

Closes https://github.com/llvm/llvm-project/issues/182120

Target Functions:
  - ceil
  - ceilbf16
  - ceilf
  - ceilf128
  - ceilf16
  - ceill
DeltaFile
+95-5utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+66-0libc/src/__support/math/CMakeLists.txt
+38-0libc/src/__support/math/ceilf16.h
+29-0libc/src/__support/math/ceil.h
+29-0libc/src/__support/math/ceilf.h
+29-0libc/src/__support/math/ceilf128.h
+286-518 files not shown
+522-7324 files

LLVM/project 4a07c97llvm/lib/Transforms/Utils LoopUnroll.cpp, llvm/test/Transforms/LoopUnroll/branch-weights-freq unroll-complete.ll unroll-partial-unconditional-latch.ll

Extract many changes into descendant PRs

New commit log:

[LoopUnroll] Fix freqs for unconditional latches: N<=2

As another step in issue #135812, this patch fixes block frequencies
when LoopUnroll converts a conditional latch in an unrolled loop
iteration to unconditional.  It thus includes complete loop unrolling
(the conditional backedge becomes an unconditional loop exit), which
might be applied to the original loop or to its remainder loop.

As explained in detail in the header comments on the
fixProbContradiction function that this patch introduces, these
conversions mean LoopUnroll has proven that the original uniform latch
probability is incorrect for the original loop iterations associated
with the converted latches.  However, LoopUnroll often is able to
perform these corrections for only some iterations, leaving other
iterations with the original latch probability, and thus corrupting

    [19 lines not shown]
DeltaFile
+6-612llvm/test/Transforms/LoopUnroll/branch-weights-freq/unroll-complete.ll
+40-227llvm/lib/Transforms/Utils/LoopUnroll.cpp
+6-111llvm/test/Transforms/LoopUnroll/branch-weights-freq/unroll-partial-unconditional-latch.ll
+4-81llvm/test/Transforms/LoopUnroll/branch-weights-freq/unroll-epilog.ll
+56-1,0314 files

LLVM/project de085a0llvm/lib/Transforms/Utils LoopUnroll.cpp

Merge branch 'fix-blockfreq-unroll-unconditional-latches--prep' into fix-blockfreq-unroll-unconditional-latches
DeltaFile
+2-2llvm/lib/Transforms/Utils/LoopUnroll.cpp
+2-21 files

LLVM/project 370d7ceclang/docs StructureProtection.rst, clang/lib/AST ASTContext.cpp

[Clang] Add pointer field protection feature.

Pointer field protection is a use-after-free vulnerability
mitigation that works by changing how data structures' pointer
fields are stored in memory. For more information, see the RFC:
https://discourse.llvm.org/t/rfc-structure-protection-a-family-of-uaf-mitigation-techniques/85555

Reviewers: fmayer, ojhunt

Pull Request: https://github.com/llvm/llvm-project/pull/172119
DeltaFile
+157-0clang/test/CodeGenCXX/pfp-coerce.cpp
+125-12clang/lib/CodeGen/CGCall.cpp
+95-0clang/docs/StructureProtection.rst
+94-0clang/lib/AST/ASTContext.cpp
+59-0clang/test/CodeGenCXX/pfp-memcpy.cpp
+54-5clang/lib/CodeGen/CodeGenFunction.cpp
+584-1731 files not shown
+1,033-3437 files

FreeBSD/ports c66d0fdmultimedia/mediamtx distinfo Makefile

multimedia/mediamtx: Update to 1.16.1

https://github.com/bluenviron/mediamtx/releases/tag/v1.16.1
DeltaFile
+7-7multimedia/mediamtx/distinfo
+1-2multimedia/mediamtx/Makefile
+8-92 files

LLVM/project f45754blldb/include/lldb/Target ThreadList.h ThreadPlanStepOverBreakpoint.h, lldb/source/Target ThreadList.cpp ThreadPlanStepOverBreakpoint.cpp

[lldb] Batch breakpoint step-over for threads stopped at the same site (#180101)

Following up from
https://discourse.llvm.org/t/improving-performance-of-multiple-threads-stepping-over-the-same-breakpoint/89637

When multiple threads are stopped at the same breakpoint, LLDB currently
steps each thread over the breakpoint one at a time. Each step requires
disabling the breakpoint, single-stepping one thread, and re-enabling
it, resulting in N disable/enable cycles and N individual vCont packets
for N threads.

Now we batch the step-over so that all threads at the same breakpoint
site are stepped together in a single vCont packet, with the breakpoint
disabled once at the start and re-enabled once after the last thread
finishes.

When we hit `WillResume` any leftover `StepOverBreakpoint` plans from a
previous cycle are popped with their re-enable side effect suppressed
via `SetReenabledBreakpointSite`, giving a clean slate.

    [23 lines not shown]
DeltaFile
+216-0lldb/test/API/functionalities/gdb_remote_client/TestBatchedBreakpointStepOver.py
+164-1lldb/source/Target/ThreadList.cpp
+151-0lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBatchedBreakpointStepOver.py
+21-12lldb/source/Target/ThreadPlanStepOverBreakpoint.cpp
+23-0lldb/include/lldb/Target/ThreadList.h
+19-0lldb/include/lldb/Target/ThreadPlanStepOverBreakpoint.h
+594-136 files

OpenZFS/src aeb9fb3tests/zfs-tests/cmd/checksum sha2_test.c

sha2_test: do correctness checks for all implementations

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Attila Fülöp <attila at fueloep.org>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18232
DeltaFile
+28-11tests/zfs-tests/cmd/checksum/sha2_test.c
+28-111 files

OpenZFS/src b291d9atests/zfs-tests/include libtest.shlib

get_cpu_freq: handle CPUs with variable frequency

If a CPU has variable frequency, then lscpu will list separate "CPU min
freq" and "CPU max freq" values. In this case, take the maximum.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Attila Fülöp <attila at fueloep.org>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18232
DeltaFile
+1-1tests/zfs-tests/include/libtest.shlib
+1-11 files

LLVM/project 98a54bellvm/include/llvm/Target Target.td, llvm/utils/TableGen/Common CodeGenTarget.cpp

[NFC][TableGen] Use `bit` instead of `int` for some Target flags (#182375)

Change `AllowRegisterRenaming` and `RegistersAreIntervals` to a bit
instead of int as they are just a bool flag.
DeltaFile
+4-4llvm/include/llvm/Target/Target.td
+2-2llvm/utils/TableGen/Common/CodeGenTarget.cpp
+6-62 files

LLVM/project 393adaabolt/lib/Rewrite RewriteInstance.cpp, bolt/test bolt-reserved.test

[BOLT] Mark BOLTReserved segment executable (#181606)

Summary:
When .bolt_reserved section is defined in the linker script, there's
no way to mark the containing segment executable other than via PHDRS
command which overrides program headers entirely which is impractical.

Since .bolt_reserved contains executable code, mark segment executable
in BOLT.

Test Plan: bolt-reserved.test
DeltaFile
+33-0bolt/test/bolt-reserved.test
+8-1bolt/lib/Rewrite/RewriteInstance.cpp
+41-12 files

LLVM/project 31e5f86llvm/lib/Transforms/Utils SimplifyCFG.cpp, llvm/test/Transforms/SimplifyCFG switch-umin.ll

[SimplifyCFG] process prof data when remove case in umin (#182261)

In #164097, we introduce a optimization for umin. But it does not handle
profile data correctly.
This PR remove profile data when remove cases.
Fixed: #181837
DeltaFile
+43-0llvm/test/Transforms/SimplifyCFG/switch-umin.ll
+1-1llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+44-12 files

LLVM/project 696aa3cllvm/lib/Target/Hexagon HexagonConstPropagation.cpp, llvm/test/CodeGen/Hexagon constp-extract-pair.ll

[Hexagon] Fix UB from signed left shift overflow in evaluateEXTRACTi (#181243)

The evaluateEXTRACTi function in HexagonConstPropagation uses a left
shift to position a bitfield at the top of a 64-bit word before
extracting it with a right shift. When the source value has high bits
set, the left shift of the int64_t value overflows, which is undefined
behavior.

Fix by performing the left shift in uint64_t, then casting to int64_t
only for the subsequent arithmetic right shift (signed extract case).
DeltaFile
+42-0llvm/test/CodeGen/Hexagon/constp-extract-pair.ll
+5-4llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp
+47-42 files

NetBSD/pkgsrc TLETEpVnet/kdsoap Makefile

   kdsoap: fix build on NetBSD-current

   Remove -Wl,--fatal-warnings, there are linker warnings about
   ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility login_getpwclass(); include <login_cap.h> for correct reference
   etc.
VersionDeltaFile
1.25+3-2net/kdsoap/Makefile
+3-21 files

LLVM/project 1928839clang-tools-extra/clangd DumpAST.cpp, clang-tools-extra/clangd/unittests DumpASTTests.cpp

[clangd] Guard against null TemplateName in DumpVisitor (#181554)

Add a guard against null values for TemplateName in
DumpVisitor::TraverseTemplateName.

clangd’s DumpVisitor may attempt to traverse a null TemplateName when
handling dependent nested template names. On LLVM main this can lead to
a crash in TemplateName::getKind().

Add a defensive check in DumpVisitor::TraverseTemplateName() to skip
null TemplateName instances before invoking traverseNode(). Following
the same design as other functions in the class.

No functional change is intended beyond preventing the crash.

Fixes: #180902

---------

Signed-off-by: Emily Dror <emilydror01 at gmail.com>
DeltaFile
+29-0clang-tools-extra/clangd/unittests/DumpASTTests.cpp
+2-2clang-tools-extra/clangd/DumpAST.cpp
+31-22 files

FreeBSD/src 7c81bf5sys/netgraph ng_ksocket.c

ng_ksocket: use new macros to lock socket buffers

PR:             292885
Reported by:    Walker R. Thompson <walker.thompson at urz.uni-heidelberg.de>

(cherry picked from commit 1a3d1be4965afddded0b2582b9c4969c1e6a4129)
(cherry picked from commit 4dc38e71ccd522bc5460f3ded3977baa35dad4b9)
DeltaFile
+8-8sys/netgraph/ng_ksocket.c
+8-81 files

LLVM/project f5f8435clang-tools-extra/clangd InlayHints.cpp, clang/include/clang/AST PrettyPrinter.h

[clang][TypePrinter] Introduce AnonymousTagMode enum (#182317)

As part of https://github.com/llvm/llvm-project/pull/159592, we want to
emit unique lambda names into debug-info without relying on
`AnonymousTagLocations` (i.e., we don't want the source files included
in the names).

The plan is to implement this as a third `AnonymousTagMode`. This patch
turns the existing `AnonymousTagLocations` into an enum as preparation.

(full prototype is at https://github.com/llvm/llvm-project/pull/168533)
DeltaFile
+15-7clang/include/clang/AST/PrettyPrinter.h
+10-5clang/unittests/AST/TypePrinterTest.cpp
+6-2clang/tools/libclang/CIndex.cpp
+4-2clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
+4-2clang/lib/AST/Decl.cpp
+3-2clang-tools-extra/clangd/InlayHints.cpp
+42-2010 files not shown
+62-3016 files

FreeBSD/ports 79e861edevel/jansson distinfo Makefile

devel/jansson: Update to 2.15.0

Changelog: https://github.com/akheron/jansson/releases/tag/v2.15.0

PR:             292855
Reviewed by:    vanilla
DeltaFile
+3-3devel/jansson/distinfo
+1-1devel/jansson/Makefile
+1-1devel/jansson/pkg-plist
+5-53 files