LLVM/project f7549a9llvm/include/llvm/ADT FoldingSet.h, llvm/include/llvm/CodeGen SelectionDAGNodes.h SelectionDAG.h

[ADT][SelectionDAG] Unique SDNodes in a UniquingSet (#220195)

CSEMap keys SDNodes by a serialized FoldingSetNodeID. Every lookup
profiles the opcode, the VT list and the operands into a buffer, and
every probe rebuilds the candidate's whole profile to compare against
it.

UniquingSet compared a key against Info::getKey(*N), building a key from
the candidate on every probe. Add isEqual to the Info contract,
defaulting to that comparison, and expose a FoldingSetNodeID's
accumulated words as a FoldingSetNodeIDRef so an Info that carries one
can hash it.

Key nodes by SDNodeKey, which holds those fields directly and leaves
only what AddNodeIDCustom contributes serialized in a tail, which is
empty for most opcodes. A lookup site keeps its ID.AddXxx lines: the key
forwards them to the tail. isEqual matches the key against a candidate's
fields and builds only the tail; an assertions build cross-checks the
result against the profile both would have had.

Aided by Opus 5
DeltaFile
+119-169llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+48-4llvm/include/llvm/CodeGen/SelectionDAG.h
+24-7llvm/include/llvm/ADT/FoldingSet.h
+6-2llvm/unittests/ADT/FoldingSet.cpp
+0-3llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+197-1855 files

LLVM/project 751ed7bllvm/lib/IR Constants.cpp, llvm/test/Transforms/ThinLTOBitcodeWriter cfi_dso_local_equivalent.ll

Revert "[IR] `replaceUsesWith` when aliasing a GV and the use is `dso_local_equivalent`" (#220450)

Reverts llvm/llvm-project#220336

Breaks tests after #220339 and supposedly there are still other
outstanding issues.
DeltaFile
+0-33llvm/test/Transforms/ThinLTOBitcodeWriter/cfi_dso_local_equivalent.ll
+16-9llvm/lib/IR/Constants.cpp
+0-22llvm/unittests/IR/ConstantsTest.cpp
+16-643 files

FreeBSD/src 9930150sys/dev/ufshci ufshci_ctrlr.c

ufshci: skip the reinit when the new link works

UFSHCI_QUIRK_REINIT_AFTER_MAX_GEAR_SWITCH always rebuilt the
link after the gear switch. It threw away a working HS link and
ended up in PWM. The reinit is only needed for a dead link.
There the local side reports HS and the peer never answers. A
local readback cannot tell the two apart. Peer traffic can.

Probe the peer with DME_PEER_GET after the switch. Skip the
reinit when the probe succeeds. Log it when the probe fails.

Reviewed by:            imp (mentor)
Sponsored by:           Samsung Electronics
Differential Revision:  https://reviews.freebsd.org/D59299
DeltaFile
+19-4sys/dev/ufshci/ufshci_ctrlr.c
+19-41 files

FreeBSD/src c09daa3sys/dev/ufshci ufshci_private.h ufshci.h

ufshci: set HS series per platform and adapt type per gear

The driver always asked for Rate-B. It never set the adaptation
type. The Snapdragon X Elite firmware tunes the PHY for Rate-A.
A Rate-B link dies at every gear there. HS-G4 and above need
initial adaptation. This is a UniPro rule. It applies to
every host.

Add an hs_series field to the device tables. Use Rate-A on the
Snapdragon X Elite. Keep Rate-B on the PCI hosts. A table entry
without an HS series fails to attach. Set PA_TxHsAdaptType to
initial adaptation at HS-G4 and above. Leave it alone below
that. Hosts before UniPro 1.8 do not have it. The Galaxy Book
4 Edge now links at HS-G5 Rate-A.

fio results (128k sequential, 4k random, posixaio):

QD  | SEQ_R(MiB/s) | SEQ_W(MiB/s) | RND_R(kIOPS) | RND_W(kIOPS)
----+--------------+--------------+--------------+-------------

    [10 lines not shown]
DeltaFile
+7-4sys/dev/ufshci/ufshci_dev.c
+7-3sys/dev/ufshci/ufshci_pci.c
+7-2sys/dev/ufshci/ufshci_acpi.c
+7-0sys/dev/ufshci/ufshci_ctrlr.c
+4-0sys/dev/ufshci/ufshci.h
+1-0sys/dev/ufshci/ufshci_private.h
+33-96 files

FreeBSD/src 9737835sys/dev/ufshci ufshci_acpi.c ufshci_dev.c

ufshci: fix the Snapdragon X Elite reference clock

The driver's ACPI table set bRefClkFreq to 19.2 MHz. The
Snapdragon X Elite feeds the device 38.4 MHz from its CXO. The
firmware has no property for it. The device ran its PLL from
the wrong base. Every HS mode failed. PWM still worked. The
attribute is persistent. The wrong value survived reboots.

Set 38.4 MHz in the table. Read the attribute first. Write it
only when the value differs or the read fails. Log a changed
value and a failed read. Verified on the Galaxy Book 4 Edge.

Reviewed by:            imp (mentor)
Sponsored by:           Samsung Electronics
Differential Revision:  https://reviews.freebsd.org/D59297
DeltaFile
+17-0sys/dev/ufshci/ufshci_dev.c
+5-1sys/dev/ufshci/ufshci_acpi.c
+22-12 files

LLVM/project 97e0b5allvm/lib/Target/AMDGPU AMDGPUTargetMachine.cpp, llvm/test/CodeGen/MIR/AMDGPU machine-function-info-user-sgpr-count.mir

[AMDGPU] Fix user SGPR accounting when parsing MIR

Count privateSegmentSize and LDSKernelId as user SGPRs to preserve the kernel
descriptor count across MIR round trips.

Fixes LCOMPILER-2700.
DeltaFile
+46-0llvm/test/CodeGen/MIR/AMDGPU/machine-function-info-user-sgpr-count.mir
+9-9llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+55-92 files

LLVM/project c3a9c64orc-rt/include/orc-rt-internal/tools CommandLine.h, orc-rt/test/unit/tools CommandLineTest.cpp

[orc-rt] Don't parse program name in CommandLineParser::parse (#220454)

The iterator-based CommandLineParser::parse method expected a program
name as the first argument in the list, but did not do anything with its
value (it was simply skipped). Update it to expect argument strings only
(no program name as first element) and document the new expectation.

The (argc, argv) overload of parse is renamed to parseAsMainArgs. It
still expects a program name as the first argument and will return an
Error if it is not present.

This allows CommandLineParser::parse to be used in contexts where there
is no natural program name (e.g. in unit tests, and options read from
config files).
DeltaFile
+36-13orc-rt/test/unit/tools/CommandLineTest.cpp
+10-4orc-rt/include/orc-rt-internal/tools/CommandLine.h
+46-172 files

FreeBSD/src 4690891share/man/man4 ng_bridge.4, sys/netgraph ng_bridge.c

ng_bridge: do not move hosts from learnMac=0 hooks

ng_bridge(4) says the node does not learn MAC addresses on uplink
hooks. However, learnMac was only checked when inserting a new
host. A host already known on a link hook was still moved if a
packet with that source address arrived on an uplink hook.

The nature of this is that inbound unicast to that host then
never arrives (the destination is known on the incoming hook).
Unknown unicast after timeout is still sent only to uplink, so
the host is not re-learned. The interface stays up and outbound
may still work. This can last minutes or weeks until reboot or
NGM_BRIDGE_MOVE_HOST.

Connecting ng_ether(4) lower to an uplink hook is enough: the
host's own transmit can appear on the uplink and the table entry
moves.

Use the same learnMac test for data-path move as for insert.

    [5 lines not shown]
DeltaFile
+13-5share/man/man4/ng_bridge.4
+6-2sys/netgraph/ng_bridge.c
+19-72 files

LLVM/project ed1626borc-rt/test/unit CMakeLists.txt, orc-rt/test/unit/tools CommandLineTest.cpp

[orc-rt] Rename test/unit/utils -> test/unit/tools. (#220408)

This aligns the unit test directory with the corresponding header
directory (orc-rt-internal/tools).
DeltaFile
+0-143orc-rt/test/unit/utils/CommandLineTest.cpp
+143-0orc-rt/test/unit/tools/CommandLineTest.cpp
+1-1orc-rt/test/unit/CMakeLists.txt
+144-1443 files

FreeBSD/src 4aeab13tools/tools/git git-arc.sh

git-arc: SC2223 DoS-via-glob hardening

Quote LOCALBASE and ARC_CMD default assignments so a poisoned
value cannot glob into :'s argv.

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D59130
DeltaFile
+3-3tools/tools/git/git-arc.sh
+3-31 files

FreeBSD/src 6217c9ctools/tools/git git-arc.sh

git-arc: Fix locals

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D59162
DeltaFile
+4-4tools/tools/git/git-arc.sh
+4-41 files

LLVM/project a26d131clang/docs ReleaseNotes.md, clang/lib/Sema SemaDecl.cpp

[C++20] [Modules] merge the type for anony enum from import and #include (#214121)

Close https://github.com/llvm/llvm-project/issues/213299

Ideally, we shall merge the new enum with the old enum when we creating
the new enum. But the enum is anonymous and the typedef's name come
after the enum body, it is too late to merge them. This is the choice 10
years ago: a523022b5384d7a0901beea7a5f36ee9c09ba339. Actually what we're
merging is the typedef decls.

Then https://github.com/llvm/llvm-project/pull/114240 removes the logic
to remove the new ED. This the direct trigger for the above issue of
ambiguous look ups.

We choose to fix the problem by setting the type of new enum to the type
of the old enum to fix the ambiguous lookup issue.
DeltaFile
+162-0clang/unittests/Sema/SemaModuleTest.cpp
+21-0clang/lib/Sema/SemaDecl.cpp
+8-0clang/test/Modules/include-after-imports-enums.cppm
+4-0clang/docs/ReleaseNotes.md
+1-0clang/unittests/Sema/CMakeLists.txt
+196-05 files

LLVM/project 221e910llvm/lib/IR Constants.cpp, llvm/test/Transforms/ThinLTOBitcodeWriter cfi_dso_local_equivalent.ll

Revert "[IR] `replaceUsesWith` when aliasing a GV and the use is `dso_local_e…"

This reverts commit 925658474fe44aebd0997ad51ab0800174dbae49.
DeltaFile
+0-33llvm/test/Transforms/ThinLTOBitcodeWriter/cfi_dso_local_equivalent.ll
+16-9llvm/lib/IR/Constants.cpp
+0-22llvm/unittests/IR/ConstantsTest.cpp
+16-643 files

LLVM/project 810dc35flang-rt/test/Driver endian.f90

[flang][runtime] Use CONVERT='SWAP' in endian.f90 test (#220185)

Follow-up to #218302.

The test currently uses CONVERT='BIG_ENDIAN'.

On big-endian systems such as PPC/AIX, this does not actually
exercise endian conversion.

Switch the test to CONVERT='SWAP' so that byte swapping is
performed regardless of the host byte order.
DeltaFile
+6-6flang-rt/test/Driver/endian.f90
+6-61 files

LLVM/project 246cdffllvm/lib/Target/NVPTX NVPTXInstrInfo.td NVPTXISelDAGToDAG.cpp, llvm/test/CodeGen/NVPTX fmax3.ll

[NVPTX] Fuse abs into min/max/redux

Emit PTX instructions for the fused form when possible.
DeltaFile
+141-0llvm/test/CodeGen/NVPTX/fmax3.ll
+32-1llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
+32-0llvm/test/Transforms/InstCombine/NVPTX/nvvm-intrins.ll
+16-0llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
+16-0llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
+237-15 files

LLVM/project 95aedc6llvm/utils/gn/secondary/clang/test BUILD.gn, llvm/utils/gn/secondary/clang/tools/clang-ssaf-src-edit-merge BUILD.gn

[gn] port e4eb61771f22b (clang-ssaf-src-edit-merge) (#220443)
DeltaFile
+10-0llvm/utils/gn/secondary/clang/tools/clang-ssaf-src-edit-merge/BUILD.gn
+1-0llvm/utils/gn/secondary/clang/test/BUILD.gn
+11-02 files

FreeBSD/src c8f8d00sys/kern sys_process.c

ptrace(2): allow ptrace(PT_TRACE_ME) in cap mode

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59317
DeltaFile
+2-0sys/kern/sys_process.c
+2-01 files

LLVM/project fe8a580llvm/lib/Transforms/IPO LowerTypeTests.cpp ThinLTOBitcodeWriter.cpp, llvm/test/Transforms/LowerTypeTests promoted-internal.ll

Revert "Revert "[CFI] Create an external linkage alias instead of promoting i…"

This reverts commit 42f2cd0c980cc1a924619ecaeaa51ca7b55164ab.
DeltaFile
+17-29llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
+35-0llvm/lib/Transforms/IPO/LowerTypeTests.cpp
+29-0llvm/test/Transforms/LowerTypeTests/promoted-internal.ll
+10-7llvm/test/Transforms/ThinLTOBitcodeWriter/comdat.ll
+4-2llvm/test/Transforms/ThinLTOBitcodeWriter/split-vfunc-internal.ll
+3-2llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll
+98-402 files not shown
+102-448 files

LLVM/project 427e7bblld/MachO Driver.cpp SyntheticSections.cpp, lld/MachO/Arch ARM64.cpp

[lld][MachO] Support Objective-C class stubs

Teach Mach-O objc stubs to synthesize class-message stubs that load the class object, selector, and objc_msgSend target.

lld already supports the Apple clang _objc_msgSend$<selector> stub form, even though upstream clang does not currently expose a driver or cc1 flag for emitting it. Apple clang also emits _objc_msgSendClass$<selector>$_OBJC_CLASS_$_<class>; handling that form completes the existing selector-stub support.

Cover local classes, dylib classes, archives, dynamic lookup via -U, missing class symbols, malformed names, unsupported architectures, and dead stripping.
DeltaFile
+332-0lld/test/MachO/arm64-objc-class-stubs.s
+110-15lld/MachO/SyntheticSections.cpp
+94-0lld/MachO/Arch/ARM64.cpp
+82-0lld/test/MachO/arm64-objc-class-stubs-dead.s
+66-0lld/test/MachO/objc-class-stubs-unsupported.s
+34-6lld/MachO/Driver.cpp
+718-214 files not shown
+754-2210 files

NetBSD/pkgsrc 2HDbyvSdoc CHANGES-2026

   doc: Updated lang/chezscheme to 10.4.1
VersionDeltaFile
1.5746+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc K8naUNvlang/chezscheme Makefile distinfo, lang/chezscheme/patches patch-c_self-exe.c

   chezscheme: Update to 10.4.1. From Kogule Ryo in PR pkg/60416
VersionDeltaFile
1.4+19-20lang/chezscheme/distinfo
1.6+7-8lang/chezscheme/Makefile
1.2+1-1lang/chezscheme/patches/patch-c_self-exe.c
+27-293 files

FreeNAS/freenas 99c0998src/middlewared/middlewared/plugins service.py

NAS-143009 / 26.0.0-RC.1 / Pass `app` through the `service.control` verb dispatch (#19587)
DeltaFile
+8-8src/middlewared/middlewared/plugins/service.py
+8-81 files

OpenBSD/src WLehLp3regress/usr.bin/ssh/unittests/sshkey mktestdata.sh, regress/usr.bin/ssh/unittests/sshkey/testdata mldsa44_ed25519_2 mldsa44_ed25519_1

   replace testing of vendor PQ signature algorithm
   "ssh-mldsa44-ed25519 at openssh.com" with the IANA-registered
   "ssh-mldsa44-ed25519"
VersionDeltaFile
1.2+75-76regress/usr.bin/ssh/unittests/sshsig/testdata/mldsa44-ed25519.sig
1.2+56-57regress/usr.bin/ssh/unittests/sshkey/testdata/mldsa44_ed25519_1_pw
1.2+56-56regress/usr.bin/ssh/unittests/sshsig/testdata/mldsa44-ed25519
1.2+56-56regress/usr.bin/ssh/unittests/sshkey/testdata/mldsa44_ed25519_2
1.2+56-56regress/usr.bin/ssh/unittests/sshkey/testdata/mldsa44_ed25519_1
1.14+3-3regress/usr.bin/ssh/unittests/sshkey/mktestdata.sh
+302-30412 files not shown
+317-32018 files

OpenBSD/src GfZZnkEusr.bin/ssh myproposal.h sshd.8

   IANA has allocated a non-vendor codepoint for ssh-mldsa44-ed25519,
   so use it instead of the vendored "@openssh.com" name.

   Note: this replaces the vendored name, which was only marked as
   experimental and not enabled by default.cw

   If you have ssh-mldsa44-ed25519 at openssh.com keys manually configured
   in sshd, then you will need to remove them from sshd_config and
   restart.
VersionDeltaFile
1.403+9-9usr.bin/ssh/sshd_config.5
1.429+9-9usr.bin/ssh/ssh_config.5
1.5+4-4usr.bin/ssh/ssh-mldsa-eddsa.c
1.332+3-3usr.bin/ssh/sshd.8
1.171+3-3usr.bin/ssh/ssh-keyscan.c
1.81+2-2usr.bin/ssh/myproposal.h
+30-306 files

LLVM/project b35a935llvm/include/llvm/ADT RadixTree.h

Add RadixTree lookup and lexicographic iteration
DeltaFile
+96-1llvm/include/llvm/ADT/RadixTree.h
+96-11 files

LLVM/project 3018776llvm/lib/Target/AMDGPU AMDGPULowerIntrinsics.cpp, llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp

[AMDGPU] Validate barrier ID in S_BARRIER_SIGNAL_ISFIRST

Value user_cluster_barrier_id is not supported.
DeltaFile
+3-36llvm/test/CodeGen/AMDGPU/lower-intrinsics-cluster-barrier.ll
+23-0llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+9-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.barrier.signal.isfirst.invalid_barrier.ll
+5-0llvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
+5-0llvm/test/MC/AMDGPU/gfx13_err.s
+3-0llvm/test/MC/AMDGPU/gfx12_err.s
+48-361 files not shown
+49-367 files

NextBSD/src cfc4f49. README.md

Follow the nextbsd-kernel-extensions rename

nextbsd-kernel-modules is now nextbsd-kernel-extensions, matching the
NextBSD-kernel-extensions package it produces. References also move off
the pre-rename nextbsd-redux org name, which worked only via redirect.

Co-Authored-By: Claude Opus 5 (1M context) <noreply at anthropic.com>
Claude-Session: https://claude.ai/code/session_01PazZbkdGvuW6yjpLbREcfJ
DeltaFile
+1-1README.md
+1-11 files

LLVM/project b31f87dllvm/test/MC/AMDGPU gfx12_err.s

[AMDGPU] Regenerate gfx12_err.s. NFC

Wrong tool was recorded in the test header.
DeltaFile
+221-222llvm/test/MC/AMDGPU/gfx12_err.s
+221-2221 files

LLVM/project 8d6a88ellvm/lib/Target/NVPTX NVPTXInstrInfo.td NVPTXISelDAGToDAG.cpp, llvm/test/CodeGen/NVPTX fmax3.ll

[NVPTX] Fuse abs into min/max/redux

Emit PTX instructions for the fused form when possible.
DeltaFile
+142-0llvm/test/CodeGen/NVPTX/fmax3.ll
+32-1llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
+32-0llvm/test/Transforms/InstCombine/NVPTX/nvvm-intrins.ll
+16-0llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
+16-0llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
+238-15 files

OpenBSD/ports Ql3rSt5databases/ruby-sequel Makefile distinfo, databases/ruby-sequel/pkg PLIST

   Update to Sequel 5.108.0
VersionDeltaFile
1.43+2-2databases/ruby-sequel/distinfo
1.59+1-1databases/ruby-sequel/Makefile
1.45+1-0databases/ruby-sequel/pkg/PLIST
+4-33 files