LLVM/project f4e8cc1llvm/lib/Transforms/Vectorize VPlanTransforms.cpp LoopVectorize.cpp

[VPlan] Detect and create partial reductions in VPlan. (NFCI) (#167851)

As a first step, move the existing partial reduction detection logic to
VPlan, trying to preserve the existing code structure & behavior as
closely as possible.

With this, partial reductions are detected and created together in a
single step.

This allows forming partial reductions and bundling them up if
profitable together in a follow-up.

PR: https://github.com/llvm/llvm-project/pull/167851
DeltaFile
+358-2llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+7-267llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+3-62llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
+7-35llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
+20-0llvm/lib/Transforms/Vectorize/VPlanUtils.h
+17-0llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
+412-3664 files not shown
+442-36810 files

LLVM/project 975d562clang-tools-extra/clang-tidy/readability TrailingCommaCheck.cpp, clang-tools-extra/docs/clang-tidy/checks/readability trailing-comma.rst

[clang-tidy] Add new check readability-trailing-comma (#173669)

clang-format has a couple of similar options:

https://clang.llvm.org/docs/ClangFormatStyleOptions.html#enumtrailingcomma
- add trailing commas for enum

https://clang.llvm.org/docs/ClangFormatStyleOptions.html#inserttrailingcommas
- add trailing commas for C++
but generally they are marked with such warning:

> Warning
>
> Setting this option to any value other than Leave could lead to
incorrect code formatting due to clang-format’s lack of complete
semantic information. As such, extra care should be taken to review code
changes made by this option.

clang-tidy on the other hand has all semantic information, thus can

    [5 lines not shown]
DeltaFile
+179-0clang-tools-extra/clang-tidy/readability/TrailingCommaCheck.cpp
+161-0clang-tools-extra/test/clang-tidy/checkers/readability/trailing-comma.cpp
+117-0clang-tools-extra/test/clang-tidy/checkers/readability/trailing-comma.c
+89-0clang-tools-extra/test/clang-tidy/checkers/readability/trailing-comma-cxx20.cpp
+79-0clang-tools-extra/test/clang-tidy/checkers/readability/trailing-comma-remove.cpp
+68-0clang-tools-extra/docs/clang-tidy/checks/readability/trailing-comma.rst
+693-08 files not shown
+890-014 files

NetBSD/pkgsrc qE3bRhkwww/w3m Makefile.common options.mk

   w3m: fix a couple of issues pkglint flagged
VersionDeltaFile
1.88+2-2www/w3m/Makefile.common
1.18+2-2www/w3m/options.mk
+4-42 files

LLVM/project c951d76clang-tools-extra/clang-tidy/bugprone SuspiciousSemicolonCheck.cpp, clang-tools-extra/clang-tidy/cppcoreguidelines ProTypeMemberInitCheck.cpp

[clang-tidy][NFC] Convert Lexer utils to use std::optional<Token> (#174809)

This bring a more unified api and avoid caveats like "return
``tok::unknown`` if not found.", which makes easier to forget error
checking.

---------

Co-authored-by: mitchell <zeyi2 at nekoarch.cc>
DeltaFile
+12-10clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
+8-9clang-tools-extra/clang-tidy/utils/FixItHintUtils.cpp
+8-6clang-tools-extra/clang-tidy/readability/DeleteNullPointerCheck.cpp
+6-6clang-tools-extra/clang-tidy/utils/LexerUtils.cpp
+7-4clang-tools-extra/clang-tidy/utils/LexerUtils.h
+6-5clang-tools-extra/clang-tidy/bugprone/SuspiciousSemicolonCheck.cpp
+47-406 files not shown
+70-6012 files

NetBSD/pkgsrc yfc1y2wwww/w3m Makefile.common

   w3m: fix "-Wstring-compare" build issue more simply

   Use BUILDLINK_TRANSFORM instead. Tested on NetBSD 9.4_STABLE.
VersionDeltaFile
1.87+4-6www/w3m/Makefile.common
+4-61 files

LLVM/project 1658456llvm/lib/Target/AMDGPU AMDGPUMIRFormatter.cpp, llvm/test/CodeGen/AMDGPU valu-mask-write-hazard.mir valu-read-sgpr-hazard.mir

[AMDGPU] Introduce custom MIR formatting for s_wait_alu (#176316)

This patch implements a custom printer/parser for the immediate operand
of s_wait_alu that prints/parses the decoded counter values.

Format:
```
 .<counter1>_<value1>_<counter2>_<value2>
```

Example:
 `s_wait_alu .VaVdst_1_VmVsrc_1`
 ; Which is equivalent to this:
 `s_wait_alu 8167`

Features:
- If a counter is at its maximum value it won't get printed.
- The parser will error out if a counter is greater or equal to its max
value.

    [5 lines not shown]
DeltaFile
+133-0llvm/lib/Target/AMDGPU/AMDGPUMIRFormatter.cpp
+64-64llvm/test/CodeGen/AMDGPU/valu-mask-write-hazard.mir
+43-43llvm/test/CodeGen/AMDGPU/valu-read-sgpr-hazard.mir
+42-43llvm/test/CodeGen/AMDGPU/expert_scheduling_gfx12.mir
+71-0llvm/test/CodeGen/MIR/AMDGPU/s_wait_alu-errors.mir
+67-0llvm/test/CodeGen/MIR/AMDGPU/s_wait_alu.mir
+420-15017 files not shown
+583-26123 files

FreeBSD/src ab63669sys/net sff8436.h

sys/net/sff8436.h: Fix the register address of link length of copper or active cable

The register address of link length of copper or active cable is 146 as
per the SFF-8436 specification [1].

[1] 7.6.2 Upper Memory Map Page 00h SFF-8436 Specification (pdf): https://members.snia.org/document/dl/25896

Reviewed by:    imp, zlei
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1885
Closes:         https://github.com/freebsd/freebsd-src/pull/1885

(cherry picked from commit a537694b49f719d84e3a69a2b8a3098f603da7d7)
(cherry picked from commit fdd23fc3d0aacd1c80d0565d736591521b2421fc)
(cherry picked from commit 58cf2a2840532208ab1442fc421ca6c985274c2c)
DeltaFile
+1-1sys/net/sff8436.h
+1-11 files

FreeBSD/src 37de978sys/dev/qlnx/qlnxe qlnx_os.c

qlnxe: Avoid out-of-bounds reading the multicast ethernet address

The correct length of an ethernet address is ETHER_ADDR_LEN but not
ETHER_HDR_LEN.

MFC after:      1 week

(cherry picked from commit 85f499be90c15a3de02d1c62ce03b99fab52f925)
(cherry picked from commit 2b01cc15447251862f5e25332fcbf41516f22a3e)
(cherry picked from commit a1828b1226fe8de1325a0e46ec5732268ba4525a)
DeltaFile
+3-3sys/dev/qlnx/qlnxe/qlnx_os.c
+3-31 files

FreeBSD/src f119719sys/dev/liquidio lio_main.c lio_ioctl.c

lio: Avoid out-of-bounds read or write MAC address

While here, replace loop copying the MAC address with memcpy() for
better readability.

Reviewed by:    markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54177

(cherry picked from commit 094626d3a5009a56bf1b763dbdfc681ce371dc99)
(cherry picked from commit c162d7febbc83c1d877876b18ee864213dceca51)
(cherry picked from commit e8de565f6bb8d91e2882ae5422b8a4a0337e4ca4)
DeltaFile
+4-6sys/dev/liquidio/lio_main.c
+2-2sys/dev/liquidio/lio_ioctl.c
+6-82 files

FreeBSD/ports 49cc38cdatabases/mysql80-server/files patch-router_src_harness_include_mysql_harness_stdx_expected.h

databases/mysql80-server: fix build with libc++ 20 and higher

With libc++ 20 and higher, databases/mysql80-server fails to compile,
resulting in errors similar to:

    In file included from /wrkdirs/usr/ports/databases/mysql80-server/work/mysql-8.0.44/router/src/harness/src/stdx/filesystem.cc:40:
    /wrkdirs/usr/ports/databases/mysql80-server/work/mysql-8.0.44/router/src/harness/src/../include/mysql/harness/stdx/expected.h:74:8: error: 'is_default_constructible' cannot be specialized: Users are not allowed to specialize this standard library entity [-Winvalid-specialization]
       74 | struct is_default_constructible<std::unique_ptr<T, void (*)(T *)>>
          |        ^
    /usr/include/c++/v1/__type_traits/is_constructible.h:49:8: note: marked '_Clang::no_specializations' here
       49 | struct _LIBCPP_NO_SPECIALIZATIONS is_default_constructible : integral_constant<bool, __is_constructible(_Tp)> {};
          |        ^
    /usr/include/c++/v1/__config:1167:9: note: expanded from macro '_LIBCPP_NO_SPECIALIZATIONS'
     1167 |       [[_Clang::__no_specializations__("Users are not allowed to specialize this standard library entity")]]
          |         ^

This is due to a workaround for a std::unique_ptr problem which is only
applicable to gcc before 7.1, so the whole workaround can be deleted,
which fixes the problem.

    [8 lines not shown]
DeltaFile
+29-0databases/mysql80-server/files/patch-router_src_harness_include_mysql_harness_stdx_expected.h
+29-01 files

FreeBSD/ports 12e5207databases/mysql80-server/files patch-router_src_harness_include_mysql_harness_stdx_expected.h

databases/mysql80-server: fix build with libc++ 20 and higher

With libc++ 20 and higher, databases/mysql80-server fails to compile,
resulting in errors similar to:

    In file included from /wrkdirs/usr/ports/databases/mysql80-server/work/mysql-8.0.44/router/src/harness/src/stdx/filesystem.cc:40:
    /wrkdirs/usr/ports/databases/mysql80-server/work/mysql-8.0.44/router/src/harness/src/../include/mysql/harness/stdx/expected.h:74:8: error: 'is_default_constructible' cannot be specialized: Users are not allowed to specialize this standard library entity [-Winvalid-specialization]
       74 | struct is_default_constructible<std::unique_ptr<T, void (*)(T *)>>
          |        ^
    /usr/include/c++/v1/__type_traits/is_constructible.h:49:8: note: marked '_Clang::no_specializations' here
       49 | struct _LIBCPP_NO_SPECIALIZATIONS is_default_constructible : integral_constant<bool, __is_constructible(_Tp)> {};
          |        ^
    /usr/include/c++/v1/__config:1167:9: note: expanded from macro '_LIBCPP_NO_SPECIALIZATIONS'
     1167 |       [[_Clang::__no_specializations__("Users are not allowed to specialize this standard library entity")]]
          |         ^

This is due to a workaround for a std::unique_ptr problem which is only
applicable to gcc before 7.1, so the whole workaround can be deleted,
which fixes the problem.

    [6 lines not shown]
DeltaFile
+29-0databases/mysql80-server/files/patch-router_src_harness_include_mysql_harness_stdx_expected.h
+29-01 files

NetBSD/pkgsrc EXHZzkkdoc CHANGES-2026

   doc: Updated emulators/free42 to 3.3.11nb3
VersionDeltaFile
1.785+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc PEq3W4Kemulators/free42 Makefile distinfo

   emulators/free42: Update to 3.3.11

   2026-01-13: release 3.3.11

   * Added statistics sums to STAT->Σ and CATALOG->STAT menus.

   2025-10-28: release 3.3.10

   * Fixed crash in menu logic.

   2025-10-15: release 3.3.9

   * When a new program was created by inserting END, the new program could end up
     being locked initially. Fixed.
   * Linux version: Fixed beeper when running under Wayland.
   * Linux version: Replaced built-in XPM icons with PNG ones, for compatibility
     with certain recent Linux distros.
   * Windows and MacOS versions: Made the links in the About box more obviously
     clickable.

    [14 lines not shown]
VersionDeltaFile
1.45+5-4emulators/free42/Makefile
1.12+4-4emulators/free42/distinfo
1.3+2-2emulators/free42/PLIST
+11-103 files

OpenBSD/ports aQJ0EXlnet/scapy Makefile distinfo, net/scapy/patches patch-scapy_config_py patch-scapy_arch_bpf_pfroute_py

   update to scapy-2.7.0, ok bluhm

   thanks tb for libressl tweaks to avoid primality tests for well-known
   DH parameters, fixing a problem with excessive startup times.
VersionDeltaFile
1.8+16-23net/scapy/patches/patch-scapy_config_py
1.21+33-3net/scapy/pkg/PLIST
1.57+1-15net/scapy/Makefile
1.15+2-4net/scapy/distinfo
1.2+0-0net/scapy/patches/patch-scapy_arch_bpf_pfroute_py
1.4+0-0net/scapy/patches/patch-scapy_arch_common_py
+52-456 files

OpenBSD/ports 3GMKdVIaudio/cplay Makefile

   unbreak; niw that python builds with ncursesw support we have get_wch
VersionDeltaFile
1.35+0-2audio/cplay/Makefile
+0-21 files

FreeBSD/ports b03d74dsysutils/auto-admin distinfo Makefile

sysutils/auto-admin: Update to 0.8.4.14

auto-cups-setup: Tolerate missing drivers (prep for deprecation)
auto-install-base-components: Check for pkgbase
auto-ly-enable: New script to enable ly login manager
auto-pkg-latest:
    Fix missing _${VERSION_MINOR} in kmods repo config
    Offer to overwrite config file when already using latest
auto-update-system: Include /etc/pkg in repo checks
auto-dreckly-setup: Fix pkgsrc wip URL
DeltaFile
+3-3sysutils/auto-admin/distinfo
+2-2sysutils/auto-admin/Makefile
+1-0sysutils/auto-admin/pkg-plist
+6-53 files

FreeBSD/ports 40a0dd4devel/gitleaks Makefile

devel/gitleaks: Fix version option

PR:             292559
DeltaFile
+2-2devel/gitleaks/Makefile
+2-21 files

OpenBSD/ports SZQRUIUx11/vlc Makefile, x11/vlc/pkg PLIST-main

   bump vlc revision and regen plist; now we have ncursesw.pc, nvlc is built
VersionDeltaFile
1.293+2-2x11/vlc/Makefile
1.61+2-0x11/vlc/pkg/PLIST-main
+4-22 files

FreeBSD/src 58cf2a2sys/net sff8436.h

sys/net/sff8436.h: Fix the register address of link length of copper or active cable

The register address of link length of copper or active cable is 146 as
per the SFF-8436 specification [1].

[1] 7.6.2 Upper Memory Map Page 00h SFF-8436 Specification (pdf): https://members.snia.org/document/dl/25896

Reviewed by:    imp, zlei
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1885
Closes:         https://github.com/freebsd/freebsd-src/pull/1885

(cherry picked from commit a537694b49f719d84e3a69a2b8a3098f603da7d7)
(cherry picked from commit fdd23fc3d0aacd1c80d0565d736591521b2421fc)
DeltaFile
+1-1sys/net/sff8436.h
+1-11 files

FreeBSD/src a1828b1sys/dev/qlnx/qlnxe qlnx_os.c

qlnxe: Avoid out-of-bounds reading the multicast ethernet address

The correct length of an ethernet address is ETHER_ADDR_LEN but not
ETHER_HDR_LEN.

MFC after:      1 week

(cherry picked from commit 85f499be90c15a3de02d1c62ce03b99fab52f925)
(cherry picked from commit 2b01cc15447251862f5e25332fcbf41516f22a3e)
DeltaFile
+3-3sys/dev/qlnx/qlnxe/qlnx_os.c
+3-31 files

FreeBSD/src db22431sys/x86/x86 tsc.c

tsc: Use proper prototype for SYSINIT functions

MFC after:      1 week

(cherry picked from commit bf8f6545f6ca41e080cc3bc42009bdf253f596b4)
(cherry picked from commit 81676635bad7e4cec1fee8ab52f1401f37de3d69)
DeltaFile
+1-1sys/x86/x86/tsc.c
+1-11 files

FreeBSD/src c4e3338share/man/man9 locking.9

locking.9: Tweak the table column width to fit 80 characters

While here, add some white spaces to improve the readability of source
code.

Reviewed by:    ziaee, #manpages
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54121

(cherry picked from commit 176075e661fc657845d788ab3451e690c4e9bac6)
(cherry picked from commit 14484cdb997c152def089c64a012b5a4596e1bfa)
DeltaFile
+7-7share/man/man9/locking.9
+7-71 files

FreeBSD/src e8de565sys/dev/liquidio lio_main.c lio_ioctl.c

lio: Avoid out-of-bounds read or write MAC address

While here, replace loop copying the MAC address with memcpy() for
better readability.

Reviewed by:    markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54177

(cherry picked from commit 094626d3a5009a56bf1b763dbdfc681ce371dc99)
(cherry picked from commit c162d7febbc83c1d877876b18ee864213dceca51)
DeltaFile
+4-6sys/dev/liquidio/lio_main.c
+2-2sys/dev/liquidio/lio_ioctl.c
+6-82 files

FreeBSD/src d88ccbdsys/x86/xen xen_apic.c

x86/xen: Use proper prototype for SYSINIT functions

MFC after:      1 week

(cherry picked from commit c8e077e57b2535b840d391f3217d00465b0514c4)
(cherry picked from commit 871a335f3e7dcc8edcada353664ca6b40ae491a1)
DeltaFile
+1-1sys/x86/xen/xen_apic.c
+1-11 files

FreeBSD/src db80c07sys/powerpc/aim mmu_oea64.c, sys/powerpc/cpufreq pmcr.c

powerpc: Use proper prototype for SYSINIT functions

MFC after:      1 week

(cherry picked from commit 9caa16bd028746af7bee01c6bcc6394de91265db)
(cherry picked from commit 4ccfafac43d398653574e36082fef15083ba6a35)
DeltaFile
+2-2sys/powerpc/aim/mmu_oea64.c
+2-1sys/powerpc/cpufreq/pmcr.c
+4-32 files

FreeBSD/src 2a87a2csys/vm vm_pageout.c vm_meter.c

vm: Use proper prototype for SYSINIT functions

MFC after:      1 week

(cherry picked from commit a5d5851c86ebba87f580e4f9bada495ebeedc465)
(cherry picked from commit 27b24359656a3d30828595ade1b824be3fac4f83)
DeltaFile
+2-2sys/vm/vm_pageout.c
+1-1sys/vm/vm_meter.c
+3-32 files

FreeBSD/src 13a9cafsys/arm64/coresight coresight.c

arm64 coresight: Use proper prototype for SYSINIT functions

MFC after:      1 week

(cherry picked from commit 5d5ba0c0fa9e2eaeda9d41508bb0f83d5a55f367)
(cherry picked from commit bac2bad0615ac64960f1ae93c0e7c3d9277b1a6b)
DeltaFile
+1-1sys/arm64/coresight/coresight.c
+1-11 files

FreeBSD/src 9ddec7bsys/arm/arm unwind.c pmap-v6.c

arm: Use proper prototype for SYSINIT functions

The only possible return value of function module_info_init() is 0. Make
it return void to match the prototype of SYSINIT.

MFC after:      1 week

(cherry picked from commit 0b9c12fa976446705635a94984f45232f034eecf)
(cherry picked from commit fcdc37febbb6b6c4efb7f4f42162466992f90523)
DeltaFile
+1-3sys/arm/arm/unwind.c
+1-1sys/arm/arm/pmap-v6.c
+2-42 files

FreeBSD/src 8b07da3sys/i386/i386 pmap.c machdep.c

i386: Use proper prototype for SYSINIT functions

MFC after:      1 week

(cherry picked from commit 0039721e3bab22446413fb62532e622345770ffb)
(cherry picked from commit adc937e06f69b2fd21c44e27b5c33bf2c96e7c4d)
DeltaFile
+1-1sys/i386/i386/pmap.c
+1-1sys/i386/i386/machdep.c
+2-22 files

FreeBSD/src 8f6cd5bsys/sys sysent.h

sys/sysent.h: Remove an unneeded type cast

The function exec_sysvec_init() already has the right prototype.

While here, remove an extra semicolon from the macro INIT_SYSENTVEC.

MFC after:      1 week

(cherry picked from commit 296db8c72dca1c17d9a4ce94cc8881e48df8187b)
(cherry picked from commit 64771eeaf82f06c2af4e0f20f40baa9d5103f0dd)
DeltaFile
+1-2sys/sys/sysent.h
+1-21 files