LLVM/project 255af94clang/lib/CodeGen CGExpr.cpp, clang/test/CodeGenHLSL BoolMatrix.hlsl

[HLSL][Matrix] Update indexed matrix elements individually (#176216)

Fixes #174629

This PR is similar to that of #169144 but for matrices.

When storing to a matrix element or matrix row, `insertelement`
instructions have been replaced by GEPs followed by stores to individual
matrix elements. There is no longer storing of the entire matrix to
memory all at once, thus avoiding data races when writing to independent
matrix elements from multiple threads.
DeltaFile
+76-66clang/test/CodeGenHLSL/BasicFeatures/MatrixSingleSubscriptSetter.hlsl
+48-19clang/lib/CodeGen/CGExpr.cpp
+14-11clang/test/CodeGenHLSL/BasicFeatures/MatrixSingleSubscriptDynamicSwizzle.hlsl
+12-10clang/test/CodeGenHLSL/BasicFeatures/MatrixSingleSubscriptConstSwizzle.hlsl
+7-10clang/test/CodeGenHLSL/BoolMatrix.hlsl
+3-4clang/test/CodeGenHLSL/BasicFeatures/matrix-type-indexing.hlsl
+160-1206 files

LLVM/project 2042887llvm/docs MIRLangRef.rst, llvm/include/llvm/CodeGen MachineInstrBuilder.h

Reland "[NFC][MI] Tidy Up RegState enum use (1/2)" (#176277)

This Change is to prepare to make RegState into an enum class. It:
- Updates documentation to match the order in the code.
- Brings the `get<>RegState` functions together and makes them
`constexpr`.
- Adopts the `get<>RegState` where RegStates were being chosen with
ternary operators in backend code.
- Introduces `hasRegState` to make querying RegState easier once it is
an enum class.
- Adopts `hasRegState` where equivalent was done with bitwise
arithmetic.
- Introduces `RegState::NoFlags`, which will be used for the lack of
flags.
- Documents that `0x1` is a reserved flag value used to detect if
someone is passing `true` instead of flags (due to implicit bool to
unsigned conversions).
- Updates two calls to `MachineInstrBuilder::addReg` which were passing
`false` to the flags operand, to no longer pass a value.

    [6 lines not shown]
DeltaFile
+66-51llvm/include/llvm/CodeGen/MachineInstrBuilder.h
+17-17llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+15-15llvm/docs/MIRLangRef.rst
+14-10llvm/lib/CodeGen/MIRParser/MIParser.cpp
+8-9llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+8-8llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
+128-11017 files not shown
+156-14223 files

LLVM/project 2bcd2f2clang/include/clang/Analysis/Analyses/LifetimeSafety FactsGenerator.h Loans.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp

[LifetimeSafety] Track moved declarations to prevent false positives (#170007)

Prevent false positives in lifetime safety analysis when variables are
moved using `std::move`.

When a value is moved using `std::move`, ownership is transferred from
the original variable to another. The lifetime safety analysis was
previously generating false positives by warning about
use-after-lifetime when the original variable was destroyed after being
moved. This change prevents those false positives by tracking moved
declarations and exempting them from loan expiration checks.

- Added tracking for declarations that have been moved via `std::move`
in the `FactsGenerator` class
- Added a `MovedDecls` set to track moved declarations in a
flow-insensitive manner
- Implemented detection of `std::move` calls in `VisitCallExpr`
- Modified `handleLifetimeEnds` to skip loans for declarations that have
been moved

    [17 lines not shown]
DeltaFile
+39-0clang/test/Sema/warn-lifetime-safety.cpp
+19-0clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+9-0clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
+2-0clang/include/clang/Analysis/Analyses/LifetimeSafety/Loans.h
+69-04 files

LLVM/project ae99a75llvm/lib/Target/AArch64 AArch64PrologueEpilogue.cpp, llvm/test/CodeGen/AArch64 seh-minimal-prologue-epilogue.ll

[llvm][aarch64] MachO platforms do not use .seh_ (#176456)

DeltaFile
+10-8llvm/test/CodeGen/AArch64/seh-minimal-prologue-epilogue.ll
+1-1llvm/lib/Target/AArch64/AArch64PrologueEpilogue.cpp
+11-92 files

NetBSD/pkgsrc 2Mei0Pqx11/xscreensaver Makefile

   "perl:run is more than perl" -- thanks, wiz@
VersionDeltaFile
1.178+2-2x11/xscreensaver/Makefile
+2-21 files

LLVM/project 5e2f43bflang/test/Integration complex-div-to-llvm.f90

[flang][AIX] update test to handle different alignments (NFC) (#176431)

DeltaFile
+4-4flang/test/Integration/complex-div-to-llvm.f90
+4-41 files

FreeBSD/src c940f5c. RELNOTES

RELNOTES: LinuxKPI based wireless drivers are now avail on RISC-V

This was enabled after a report [1] that iwlwifi(4) works on
RISC-V.

[1] https://mail-archive.freebsd.org/cgi/getmsg.cgi?fetch=5947+0+archive/2026/freebsd-wireless/20260112.freebsd-wireless

Sponsored by:   The FreeBSD Foundation
DeltaFile
+4-0RELNOTES
+4-01 files

LLVM/project ba43338clang/include/clang/Analysis/Analyses/LifetimeSafety FactsGenerator.h Loans.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp

std_move false positive
DeltaFile
+39-0clang/test/Sema/warn-lifetime-safety.cpp
+19-0clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+9-0clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
+2-0clang/include/clang/Analysis/Analyses/LifetimeSafety/Loans.h
+69-04 files

FreeBSD/ports 6b7d33dsecurity/wazuh-manager distinfo

security/wazuh-manager: Fix package
DeltaFile
+2-2security/wazuh-manager/distinfo
+2-21 files

FreeBSD/src fd34f54share/man/man4 termios.4

termios.4: Cross-reference stack(9) for STATUS

If the kernel is built without stack(9) (options STACK),
then the mentioned sysctl(8) kern.tty_info_kstacks will not be found.

MFC after:              3 days
Reviewed by:            kib, ziaee
Differential Revision:  https://reviews.freebsd.org/D54701
DeltaFile
+4-2share/man/man4/termios.4
+4-21 files

FreeBSD/doc a6ef612documentation/content/en/books/porters-handbook/versions _index.adoc

Document the __FreeBSD_version bump to 1403508 for various LinuxKPI changes.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+5-0documentation/content/en/books/porters-handbook/versions/_index.adoc
+5-01 files

OPNSense/plugins 10e42b1net/ndp-proxy-go Makefile, net/ndp-proxy-go/src/opnsense/service/templates/OPNsense/NdpProxy ndp_proxy_go

net/ndp-proxy-go: Fix carp_depend_on condition in template (#5141)

DeltaFile
+1-1net/ndp-proxy-go/src/opnsense/service/templates/OPNsense/NdpProxy/ndp_proxy_go
+1-0net/ndp-proxy-go/Makefile
+2-12 files

FreeBSD/ports ace5c21security/netbird distinfo Makefile

security/netbird: Update 0.62.2 => 0.63.0

Changelogs:
https://github.com/netbirdio/netbird/releases/tag/v0.62.3
https://github.com/netbirdio/netbird/releases/tag/v0.63.0

Commit log:
https://github.com/netbirdio/netbird/compare/v0.62.2...v0.63.0

PR:     292509
DeltaFile
+5-5security/netbird/distinfo
+1-2security/netbird/Makefile
+6-72 files

Linux/linux b62ce25Documentation/netlink/specs dev-energymodel.yaml em.yaml, include/uapi/linux dev_energymodel.h energy_model.h

Merge tag 'pm-6.19-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull power management fixes from Rafael Wysocki:
 "These fix an error path memory leak in the energy model management
  code, fix a kerneldoc comment in it, and fix and revamp the energy
  model YNL specification added recently along with the new energy model
  management netlink interface (that received feedback after being
  added):

   - Fix a memory leak in em_create_pd() error path (Malaya Kumar Rout)

   - Fix stale description of the cost field in struct em_perf_state to
     reflect the current code (Yaxiong Tian)

   - Fix and revamp the energy model YNL specification added recently
     along with the energy model netlink interface (Changwoo Min)"

* tag 'pm-6.19-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  PM: EM: Add dump to get-perf-domains in the EM YNL spec

    [5 lines not shown]
DeltaFile
+140-73kernel/power/em_netlink.c
+175-0Documentation/netlink/specs/dev-energymodel.yaml
+0-113Documentation/netlink/specs/em.yaml
+82-0include/uapi/linux/dev_energymodel.h
+0-63include/uapi/linux/energy_model.h
+35-23kernel/power/em_netlink_autogen.c
+432-2724 files not shown
+454-28810 files

NetBSD/src hnW4Auflib/libc/time zic.c

   Do a version check before defining HAVE_GETRANDOM.

   Should help the tools build problems on netbsd-9 and earlier,
   as reported by Staffan Thomén on current-users@.
VersionDeltaFile
1.98+7-2lib/libc/time/zic.c
+7-21 files

FreeBSD/ports 0ca9c2aMk/Uses gssapi.mk

Mk/Uses/gssapi: Improve documentation grammar
DeltaFile
+4-4Mk/Uses/gssapi.mk
+4-41 files

OpenBSD/ports OSgeXBRcad/prusaslicer Makefile, cad/prusaslicer/patches patch-src_slic3r_Utils_Bonjour_hpp

   prusaslicer: missing include to fix build with boost 1.89; regen WANTLIB
VersionDeltaFile
1.2+14-6cad/prusaslicer/patches/patch-src_slic3r_Utils_Bonjour_hpp
1.25+8-8cad/prusaslicer/Makefile
+22-142 files

OPNSense/plugins 7672183net/ndp-proxy-go Makefile, net/ndp-proxy-go/src/opnsense/service/templates/OPNsense/NdpProxy ndp_proxy_go

net/ndp-proxy-go: Fix carp_depend_on condition in template
DeltaFile
+1-1net/ndp-proxy-go/src/opnsense/service/templates/OPNsense/NdpProxy/ndp_proxy_go
+1-0net/ndp-proxy-go/Makefile
+2-12 files

FreeBSD/src 75c591bsys/dev/smartpqi smartpqi_prototypes.h smartpqi_request.c

smartpqi: Avoid declaring extern inline functions

Each C file is compiled separately so these functions can't be inlined
except in the file where they are defined.  Since these functions aren't
used outside smartpqi_request.c, just do the simple thing and make them
private to that file.

Reported by:    gcc
Reviewed by:    jrhall
Fixes:          c558eca47970 ("smartpqi: update to version 4660.0.2002")
Differential Revision:  https://reviews.freebsd.org/D54732
DeltaFile
+0-4sys/dev/smartpqi/smartpqi_prototypes.h
+2-2sys/dev/smartpqi/smartpqi_request.c
+2-62 files

FreeBSD/src 16e2bb8. UPDATING, sys/sys param.h

UPDATING: Bump __FreeBSD_version to 1403508 for various LinuxKPI changes

Precautiously bump __FreeBSD_version for  various LinuxKPI changes
so they could be detected if needed (which they should not need to,
hopefully).
DeltaFile
+4-0UPDATING
+1-1sys/sys/param.h
+5-12 files

NetBSD/pkgsrc SW0LRu7net/mDNSResponder builtin.mk

   mDNSResponder: always set MAKEVARS

   To avoid diffs between runs with and without this value cached.
VersionDeltaFile
1.16+2-2net/mDNSResponder/builtin.mk
+2-21 files

FreeBSD/ports 792accfwww/freenginx-devel Makefile.extmod, www/freenginx-devel/files extra-patch-ngx_stream_lua_socket_tcp.c extra-patch-ngx_stream_lua_time.c

www/freenginx-devel: third-party module management

Update the stream-lua module to its recent release 0.0.17R4,
and enable it.
Remove ignore list.

Bump PORTREVISION.

Sponsored by:   tipi.work
DeltaFile
+28-0www/freenginx-devel/files/extra-patch-ngx_stream_lua_socket_tcp.c
+24-0www/freenginx-devel/files/extra-patch-ngx_stream_lua_time.c
+8-3www/freenginx-devel/Makefile.extmod
+11-0www/freenginx-devel/files/extra-patch-ngx_stream_lua_module.c
+11-0www/freenginx-devel/files/extra-patch-ngx_stream_lua_ssl_certby.c
+11-0www/freenginx-devel/files/extra-patch-ngx_stream_lua_ssl_client_helloby.c
+93-33 files not shown
+97-129 files

FreeBSD/src e7c3b91share/man/man4 linuxkpi_wlan.4, sys/compat/linuxkpi/common/src linux_80211.c linux_80211.h

LinuxKPI: 802.11: add compat.linuxkpi.80211.IF.dump_stas_queues

Extend the normal compat.linuxkpi.80211.IF.dump_stas sysctl by
queue information.  This was helpful for debugging various issues,
like selecting the outbound queue, stopping queues for BAR and helped
finding multiple bugs.

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 32ea8209825af594cbfa1fc654d45eb9a6aab528)
(cherry picked from commit 6b9c0ac008a9c52b21b05c96ead6def41aa89ead)
DeltaFile
+73-5sys/compat/linuxkpi/common/src/linux_80211.c
+8-1share/man/man4/linuxkpi_wlan.4
+4-0sys/compat/linuxkpi/common/src/linux_80211.h
+85-63 files

FreeBSD/src fff9ab9sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: reset hdr after crypto in lkpi_80211_txq_tx_one()

When lkpi_80211_txq_tx_one() calls into the crypto offloading parts to
possibly make space in the headroom, the beginning of our frame moves.
We have to reset hdr after that call as otherwise later classifications
based on the hdr->frame_control will fail or cause wrong classificaiton
of packets.
This makes sure frames will either be directly sent using (*mo_tx)()
or use the correct tid for the correct queue.  This helps to get
rtwx8 packets flowing after BA was negotiated.

Sponsored by:   The FreeBSD Foundation
Fixes:          11db70b6057e4

(cherry picked from commit f0395993e1ea83705e0da6623843e7d5d03f7269)
(cherry picked from commit 4d255abe992fef69c97ce10991d815eda638c76d)
DeltaFile
+2-0sys/compat/linuxkpi/common/src/linux_80211.c
+2-01 files

FreeBSD/src 1b9d37esys/modules/mt76 Makefile.inc

mt76: set appropriate CONFIG options for the module build

Always set CONFIG_ARCH_DMA_ADDR_T_64BIT as it is true for all
architectures we support.  Add an option for CONFIG_NET_MEDIATEK_SOC_WED,
which we currently do not yet support.

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 87aa494dfca73204516799033821ab1db184933f)
(cherry picked from commit e2ebe56c50e77f3302c85a8203f8fa4050ae0f54)
DeltaFile
+9-0sys/modules/mt76/Makefile.inc
+9-01 files

FreeBSD/src 8fc0789sys/compat/linuxkpi/common/src linux_80211.c linux_80211.h

LinuxKPI: 802.11: lock down the "txq_scheduled" tailq

For consistency rename the "scheduled_txqs" tailq to
"txq_scheduled" and add a lock per txq ("txq_scheduled_lock[]").
We use the "_bh" locking as this called from the device driver.

This fixes panics due to concurrent access to the tailq, especially
in between "first" and "remove" on the out-direction and between
"insert" and "elem_init" on the in-direction.

This was easily reproducible just running iperf3 at basic rates for
a few seconds to minutes with multiple chipsets, not only rtw89.

Sponsored by:   The FreeBSD Foundation
PR:             290636
Reported by:    arved, and others before

(cherry picked from commit 567a097c8ab60d9fcd68a87c3c5ad605fe8715cc)
(cherry picked from commit 2e1156f75836a0e5a4026e13d72b54f272e705cb)
DeltaFile
+40-11sys/compat/linuxkpi/common/src/linux_80211.c
+2-1sys/compat/linuxkpi/common/src/linux_80211.h
+42-122 files

FreeBSD/src 3fc5eb0sys/sys bitcount.h

sys/bitcount.h: add __const_bitcount<n>

Add a version of __const_bitcount<n> which can be used to get the
numbers at compile-time when __builtin_popcountg() is not available
(see sys/compat/linuxkpi/common/include/linux/bitops.h for LLVM before
19 and gcc before 14).

Obtained from:  https://reviews.freebsd.org/D50995#1174884 by obiwac
Sponsored by:   The FreeBSD Foundation
Reviewed by:    brooks, emaste
Differential Revision: https://reviews.freebsd.org/D54301

(cherry picked from commit 27aa23cee81088b0ffa974eec9f03c654c36438e)
(cherry picked from commit 605389e40b938088718bd8aa75f4919884789927)
DeltaFile
+22-0sys/sys/bitcount.h
+22-01 files

FreeBSD/src 78e0a22sys/compat/linuxkpi/common/include/net mac80211.h

LinuxKPI: 802.11: move ieee80211_offload_flags

Move the enum and leave a comment on the struct member for the vif
about the type.

No functional changes.

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit b10ff7ed37a9b891bec7e1093e44fa7abb2054b4)
(cherry picked from commit a714641fa5380cc320d23181d4b18f7f89ccd183)
DeltaFile
+7-7sys/compat/linuxkpi/common/include/net/mac80211.h
+7-71 files

FreeBSD/src 2a04a85sys/compat/linuxkpi/common/include/linux device.h

LinuxKPI: device: add a pr_debug("TODO") call to device_release_driver()

The logic in device_release_driver() got disabled in 93b14194acaf2
and since left alone.  Add a pr_debug() call so we have a chance to
notice if that code is actually still in need to be fixed and re-enabled.

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit fc9666d0fc0c2541e44bfbcaa5bb1b670395687c)
(cherry picked from commit 0f496780deee49cfd86f4e02db775b706405fef9)
DeltaFile
+1-0sys/compat/linuxkpi/common/include/linux/device.h
+1-01 files

FreeBSD/src bd339e8sys/compat/linuxkpi/common/include/net mac80211.h

LinuxKPI: 802.11: make airtime fairness an IMPROVE

We are ways away from implementing "airtime fairness" in LinuxKPI
(or rather net80211).  For now make it an 'improve' rather than a
'todo' to get the logging away.  Everything will work without it.

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 86bfe5b4d5a7b90d3746059dd1f87cdd5a0bf90c)
(cherry picked from commit c55874da4cf57800fc8a665ee221e4c2e1ac6601)
DeltaFile
+1-1sys/compat/linuxkpi/common/include/net/mac80211.h
+1-11 files