LLVM/project fe1de64 — offload/liboffload/API Program.td, offload/liboffload/src OffloadImpl.cpp

[OFFLOAD] Add olIterateCompatibleDevices API (#226441)

Add a new API that iterates through all devices. For devices compatible
with the image (and their platform too) it calls the Callback.

Assisted by Claude.
DeltaFile
+73-0offload/unittests/OffloadAPI/program/olIterateCompatibleDevices.cpp
+25-2offload/liboffload/src/OffloadImpl.cpp
+16-0offload/liboffload/API/Program.td
+1-0offload/unittests/OffloadAPI/CMakeLists.txt
+115-24 files

LLVM/project c4ce375 — clang/docs ReleaseNotes.md, clang/lib/Sema SemaTemplateInstantiateDecl.cpp

[Clang][Sema] Create LocalScope for Variable Template (#228280)

A variable template should create its own LocalScope, as it should be
opaque to other instantiations. This can occur when there are multiple
instantiations in the same lexical scope. The correct behavior is that
these instantiations should not be chained together.

Assisted-by: Claude # Test ReleaseNote
Fixes: #134148
DeltaFile
+34-0clang/test/SemaTemplate/instantiate-var-template.cpp
+5-0clang/docs/ReleaseNotes.md
+4-0clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+43-03 files

LLVM/project 58b7032 — clang/include/clang/Parse Parser.h RAIIObjectsForParser.h, clang/lib/Parse ParseExpr.cpp ParseDecl.cpp

[Clang] Properly parse enumeration declarations with fixed underlying type in generic associations (#210353)

added a new `ParsingGenericAssociationType` flag that is managed by
`GenericAssociationTypeRAIIObject`. If that flag is true, when
encountering a `:` after enum name, try to parse next token as a type,
if successful, then that's the underlying type, if failed, then that is
the end of the enum declaration, and the colon will be parsed as the
generic association.

to check if the next tokens are a type, I added a new function
`isNextCXXTypeId`, which works the same as `isCXXTypeId`, but starts the
check one token ahead.

Fixed #207357

---------

Co-authored-by: Aaron Ballman <aaron at aaronballman.com>
DeltaFile
+28-0clang/test/Parser/c23-enum-generic-assoc.c
+20-0clang/include/clang/Parse/RAIIObjectsForParser.h
+13-1clang/lib/Parse/ParseTentative.cpp
+8-1clang/lib/Parse/ParseDecl.cpp
+6-1clang/lib/Parse/ParseExpr.cpp
+6-0clang/include/clang/Parse/Parser.h
+81-33 files not shown
+87-79 files

LLVM/project 1e4be21 — llvm/unittests/tools/llvm-exegesis/Common AssemblerUtils.h, llvm/unittests/tools/llvm-exegesis/Mips TestBase.h TargetTest.cpp

Remove the ABI DataLayout unit tests
DeltaFile
+0-25llvm/unittests/tools/llvm-exegesis/Common/AssemblerUtils.h
+0-11llvm/unittests/tools/llvm-exegesis/RISCV/TargetTest.cpp
+0-5llvm/unittests/tools/llvm-exegesis/Mips/TargetTest.cpp
+0-1llvm/unittests/tools/llvm-exegesis/RISCV/TestBase.h
+0-1llvm/unittests/tools/llvm-exegesis/Mips/TestBase.h
+0-435 files

LLVM/project 2a62684 — llvm/tools/llvm-exegesis/lib Assembler.cpp, llvm/unittests/tools/llvm-exegesis/Common AssemblerUtils.h

llvm-exegesis: Set the module triple and ABI-aware DataLayout

The module used to assemble snippets only had a DataLayout set, which
was computed without the target ABI. Set the target triple on the
module, synthesize the "target-abi" module flag from the
TargetMachine's ABI option, and compute the DataLayout from it.
Without the ABI, a TargetMachine with a non-default ABI would hit the
incompatible DataLayout error when creating the MachineFunction.

Co-Authored-By: Claude <noreply at anthropic.com>
DeltaFile
+25-0llvm/unittests/tools/llvm-exegesis/Common/AssemblerUtils.h
+15-7llvm/tools/llvm-exegesis/lib/Assembler.cpp
+11-0llvm/unittests/tools/llvm-exegesis/RISCV/TargetTest.cpp
+5-0llvm/unittests/tools/llvm-exegesis/Mips/TargetTest.cpp
+1-0llvm/unittests/tools/llvm-exegesis/RISCV/TestBase.h
+1-0llvm/unittests/tools/llvm-exegesis/Mips/TestBase.h
+58-76 files

FreeBSD/src abed4cb — sys/kern sched_4bsd.c sched_ule.c

sched: factor out hogticks calculation into sched_update_hogticks()

Suggested by:   olce
Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59471

(cherry picked from commit 5a879394ba2eac14f65b466a46dae39326df00db)
DeltaFile
+11-6sys/kern/sched_ule.c
+10-6sys/kern/sched_4bsd.c
+21-122 files

FreeBSD/src a7cedda — sys/kern sched_ule.c

sched_ule: fix invalid tdq_slice() and sched_slice_min

sched_slice_min should always to be greater than zero. When modifying
sched_slice through sysctl, if the new value is less than
SCHED_SLICE_MIN_DIVISOR, sched_slice_min is computed to zero. Add
imax(1, ...) to prevent this.

tdq_slice() should not return a value less than sched_slice_min since
that will cause integer underflow of ts2->ts_slice in
sched_ule_fork_thread. SCHED_SLICE_MIN_DIVISOR is currently set to 6 so
when load is 5 and sched_slice is 4, the two if conditions in
tdq_slice() will pass and the function will return zero. Thus use imax()
so tdq_slice returns sched_slice_min at minimum.

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59408

    [2 lines not shown]
DeltaFile
+2-4sys/kern/sched_ule.c
+2-41 files

FreeBSD/src 0facbd5 — sys/kern sched_ule.c

sched_ule: fix typo in comment

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59409

(cherry picked from commit 5803063625371dfbaf68e55b0d9e15021f103e28)
DeltaFile
+1-1sys/kern/sched_ule.c
+1-11 files

FreeBSD/src 8ef613e — sys/kern sched_ule.c

sched_ule: fix comment on ts_slice

In ULE ts_slice stores the number of ticks of slice passed not
remaining.

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59407

(cherry picked from commit 872074c50e99ab8858c2defe255d716f8f75f15b)
DeltaFile
+1-1sys/kern/sched_ule.c
+1-11 files

FreeBSD/src f11c5eb — sys/kern sched_4bsd.c

sched_4bsd: remove obsolete comment

'awake' checks if a thread, not a process, is awake.

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59404

(cherry picked from commit 6c0c77e190b27d768595ef5b38d798430fb03a8b)
DeltaFile
+1-5sys/kern/sched_4bsd.c
+1-51 files

FreeBSD/src 8ad706e — sys/kern sched_4bsd.c

sched_4bsd: fix vague comment

The comment "was incremented in schedcpu()" doesn't give enough
background for decrementing ts_slptime by 1 (thus ignoring decay_cpu()
for 1 ts_slptime). More accurately, ts_slptime is decremented by 1
because decay_cpu() has already executed once in schedcpu() when
ts_slptime was 1.

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59406

(cherry picked from commit cd33abbce5a5c3b454f00ca3d0ecd71c2234106c)
DeltaFile
+2-1sys/kern/sched_4bsd.c
+2-11 files

FreeBSD/src a4f40ac — sys/kern sched_4bsd.c

sched_4bsd: move comment to correct location

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59403

(cherry picked from commit 039498c2735ee0697da24b9c60c9e67680f91f31)
DeltaFile
+6-5sys/kern/sched_4bsd.c
+6-51 files

FreeBSD/src efd9712 — sys/kern sched_4bsd.c

sched_4bsd: fix comment in maybe_preempt()

The comment says the new thread's priority is not a realtime priority
while the code states pri > PRI_MAX_ITHD which is interrupt priorities
not realtime.

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59402

(cherry picked from commit 351f6733180cebdc83585f9a00677f4998f6c6f1)
DeltaFile
+1-1sys/kern/sched_4bsd.c
+1-11 files

FreeBSD/src c087ee0 — sys/kern sched_4bsd.c sched_ule.c

sched: fix kern.sched.{4bsd,ule}.slice

Fix three problems with kern.sched.{4bsd,ule}.slice:

 * Guarantee minimum slice is 1.
 * Recalculate hogticks on sysctl write.
 * For ULE, recalculate sched_slice_min on sysctl write.

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59401

(cherry picked from commit 179f5b2bfedccc762352f06057f4e389bfabb2ea)
DeltaFile
+21-1sys/kern/sched_ule.c
+20-1sys/kern/sched_4bsd.c
+41-22 files

LLVM/project 50e02cb — llvm/utils/TableGen OptionParserEmitter.cpp, llvm/utils/TableGen/Basic OptEmitter.h OptEmitter.cpp

[TableGen] Generate library option structs with llvm-min-tblgen (#228338)

-gen-opt-parser-defs lives in llvm-tblgen, so a library whose options
are declared in TableGen (CGData, InstCombine, MC) waits for llvm-tblgen
to build before any of its sources compile, while it otherwise needs
only llvm-min-tblgen.

Move OptionParserEmitter and OptEmitter into TableGen/Basic, which
llvm-min-tblgen consists of, and generate those structs with
llvm-min-tblgen.

Aided by Opus 5.5
DeltaFile
+0-872llvm/utils/TableGen/OptionParserEmitter.cpp
+871-0llvm/utils/TableGen/Basic/OptionParserEmitter.cpp
+0-51llvm/utils/TableGen/Common/OptEmitter.cpp
+51-0llvm/utils/TableGen/Basic/OptEmitter.cpp
+0-18llvm/utils/TableGen/Common/OptEmitter.h
+18-0llvm/utils/TableGen/Basic/OptEmitter.h
+940-94112 files not shown
+954-94918 files

FreeBSD/ports 70c6475 — devel/qtcreator pkg-plist Makefile

devel/qtcreator: Update to 20.0.2

Fixes crashes with the navigation views during shutdown, when files are
modified externally and when reloading CMake presets.

Changes:        https://github.com/qt-creator/qt-creator/blob/v20.0.2/dist/changelog/changes-20.0.2.md
Reviewed by:    arrowd
Differential Revision:  https://reviews.freebsd.org/D60222
Sponsored by:   Netzkommune GmbH
DeltaFile
+3-3devel/qtcreator/distinfo
+1-1devel/qtcreator/Makefile
+1-0devel/qtcreator/pkg-plist
+5-43 files

FreeBSD/ports ba19891 — devel/qca Makefile distinfo

devel/qca: Update to 2.3.12

* Compile with OpenSSL 4
* Update root certificates
* qca-ossl: load the default OpenSSL provider explicitly
* qca-ossl: do not dereference a DH key that failed to generate

Changes:        https://invent.kde.org/libraries/qca/-/compare/v2.3.10...v2.3.12
Reviewed by:    makc
Differential Revision:  https://reviews.freebsd.org/D60221
Sponsored by:   Netzkommune GmbH
DeltaFile
+3-3devel/qca/distinfo
+1-2devel/qca/Makefile
+4-52 files

FreeBSD/ports 4eeefec — devel/libphonenumber Makefile distinfo

devel/libphonenumber: Update to 9.0.40

Metadata changes: updated phone, geocoding, carrier and time zone data.

Changes:        https://github.com/google/libphonenumber/blob/v9.0.40/release_notes.txt
Reviewed by:    arrowd
Differential Revision:  https://reviews.freebsd.org/D60220
Sponsored by:   Netzkommune GmbH
DeltaFile
+3-3devel/libphonenumber/distinfo
+1-2devel/libphonenumber/Makefile
+4-52 files

FreeBSD/ports 64d5826 — www/code-server Makefile.build Makefile, www/code-server/files patch-lib_vscode_build_lib_copilot.ts

www/code-server: Update to 4.140.0

The editor marks wrapped lines with word wrap indicators and avoids
inserting duplicate closing brackets. Values of 60 seconds or less for
--idle-timeout-seconds are now rejected in the space-separated form
too. code-server now runs on Node.js 24 instead of Node.js 22.

Changelog: https://github.com/coder/code-server/releases

Sponsored by:   Netzkommune GmbH
DeltaFile
+656-102www/code-server/pkg-plist
+13-11www/code-server/distinfo
+12-8www/code-server/Makefile
+14-0www/code-server/files/patch-lib_vscode_build_lib_copilot.ts
+7-6www/code-server/Makefile.build
+702-1275 files

FreeNAS/freenas d4d78e1 — src/middlewared/middlewared/plugins rsync.py, src/middlewared/middlewared/plugins/rsync_ utils.py

NAS-143382 / 25.10.8 / Fix rsync extra arguments quoting (by themylogin) (#19917)

https://github.com/truenas/middleware/pull/19496 introduced a
regression: the user had `--rsync-path="sudo rsync"` in their `extra`
args, and the argument value was used literally, causing `bash: line 1:
sudo rsync: command not found` error (it tried to launch `sudo rsync`
binary which didn't exist).

This is a 25.10.7 bug that didn't exist in 25.10.6, so, if we're ever
publishing 25.10.8, it should be backported there.

Original PR: https://github.com/truenas/middleware/pull/19655

---------

Co-authored-by: themylogin <themylogin at gmail.com>
DeltaFile
+60-0src/middlewared/middlewared/pytest/unit/plugins/test_rsync_extra_args.py
+21-0tests/api2/test_rsync_ssh_authentication.py
+14-0src/middlewared/middlewared/plugins/rsync_/utils.py
+2-2src/middlewared/middlewared/plugins/rsync.py
+97-24 files

FreeNAS/freenas a949b09 — src/middlewared/middlewared/plugins/failover_ event.py

NAS-144032 / 25.10.8 / `vrrp_master`: run `interface.persist_link_addresses` in the background (by themylogin) (#19916)

Original PR: https://github.com/truenas/middleware/pull/19862

Co-authored-by: themylogin <themylogin at gmail.com>
DeltaFile
+3-2src/middlewared/middlewared/plugins/failover_/event.py
+3-21 files

FreeBSD/src 069c6f6 — sys/kern sched_ule.c

sched_ule: fix typo goup to group

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59400

(cherry picked from commit f609ca733fee72894634f751d1fbc3db53d603dc)
DeltaFile
+10-10sys/kern/sched_ule.c
+10-101 files

FreeBSD/src be9536d — sys/kern sched_4bsd.c

sched_4bsd: remove obsolete comment

In old Unix, the whole process address space including scheduler-related
data was paged out to disk. We now allocate thread-related data with UMA
on wired memory which never page out. Thus this comment is now obsolete.

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59398

(cherry picked from commit 46416a57eb7b6d74fda13cc6e40a43bdfa6b7da9)
DeltaFile
+0-5sys/kern/sched_4bsd.c
+0-51 files

FreeBSD/src 188234a — sys/kern sched_ule.c

sched_ule: remove unused KTR_ULE

Commit 62fa74d95a16 ("Add support for the new cpu...") removed all uses
of KTR_ULE, leaving the macro unused.

Reviewed by:    olce
Approved by:    olce (mentor)
Fixes:          62fa74d95a16 ("Add support for the new cpu...")
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59399

(cherry picked from commit 7997d2a18150a449b563c87490e8d440bb1023f3)
DeltaFile
+0-2sys/kern/sched_ule.c
+0-21 files

FreeBSD/src f6bbf7b — sys/kern sched_4bsd.c

sched_4bsd: remove dumping from maybe_preempt()

'dumping' is true only when kernel is dumping after crash (see
minidumpsys()) so KERNEL_PANICKED() will catch this.

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59395

(cherry picked from commit 1dfefffcbdc652ee88a3baa284182f96e20faf17)
DeltaFile
+1-2sys/kern/sched_4bsd.c
+1-21 files

FreeBSD/src e3c9438 — sys/kern sched_4bsd.c

sched_4bsd: update function name in comment

In b43179fbe815 ("Create a new scheduler api..."), schedclock() was
renamed to sched_clock() but the function name in the comment remained
still. Update the comment to reflect up-to-date name for schedclock().

Reviewed by:    olce
Approved by:    olce (mentor)
Fixes: b43179fbe815 ("Create a new scheduler api...")
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59397

(cherry picked from commit 5d67118d2c7388bdc065e640719553ff4d9eea89)
DeltaFile
+1-1sys/kern/sched_4bsd.c
+1-11 files

FreeBSD/src c0e3588 — sys/kern sched_4bsd.c

sched_4bsd: add static assertion for nice weight

When NICE_WEIGHT * (PRIO_MAX - PRIO_MIN) exceeds the timeshare range,
two CPU-bound threads with different nice values can have the same
priority as their nice values are clamped to the timeshare range limit.
Add static assertion on NICE_WEIGHT to ensure that there is always
enough room for nice values in the both end of the timeshare priority
range.

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59396

(cherry picked from commit e90be6fdf08526624f407923d003b66efa23d304)
DeltaFile
+4-0sys/kern/sched_4bsd.c
+4-01 files

FreeBSD/src c7c6e74 — sys/kern sched_4bsd.c

sched_4bsd: remove kern.sched.4bsd.followon

kern.sched.4bsd.followon was enabled only for KSE. It was never compiled
since ad1e7d285ab1 and KSE was removed years ago. Now it's time to
remove this tunable.

Reviewed by:    olce
Approved by:    olce (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59394

(cherry picked from commit d29c9f5aca3463e3c7f2fa2263795a78c6430d2d)
DeltaFile
+0-6sys/kern/sched_4bsd.c
+0-61 files

LLVM/project cb24ba3 — llvm/lib/ObjCopy/ELF ELFObject.cpp ELFObject.h, llvm/test/tools/llvm-objcopy/ELF reloc-no-symtab.test reloc-alloc-symtab.test

[llvm-objcopy] Handle SHF_ALLOC relocation sections in relocatable files (#227204)

llvm-objcopy treats every SHF_ALLOC relocation section as dynamic and
requires its sh_link to refer to .dynsym. Linux livepatch modules
(ET_REL) contain SHF_ALLOC .klp.rela.* sections linked to .symtab
(SHF_ALLOC keeps them in module memory until the patched module loads),
so llvm-objcopy rejects them:

```
error: Link field value 4 in section .klp.rela.vmlinux.text is not a symbol table
```

A relocatable file has no dynamic symbol table, so treat all of its
relocation sections as static, as BFD does. Their symbol indexes are
then updated when the symbol table changes. Since SHF_ALLOC no longer
distinguishes RelocationSection from DynamicRelocationSection, record
the kind in RelocationSectionBase.

LLM-aided
DeltaFile
+42-0llvm/test/tools/llvm-objcopy/ELF/reloc-alloc-symtab.test
+13-7llvm/lib/ObjCopy/ELF/ELFObject.h
+6-1llvm/test/tools/llvm-objcopy/ELF/reloc-no-symtab.test
+5-1llvm/lib/ObjCopy/ELF/ELFObject.cpp
+66-94 files

LLVM/project 7e18d96 — mlir/lib/Conversion/MathToLLVM MathToLLVM.cpp, mlir/test/Conversion/MathToLLVM math-to-llvm.mlir

[mlir][MathToLLVM] Fix math.fpowi incorrectly being mapped to llvm.powi (#226089)

`math.fpowi` allows vector exponents, while `llvm.intr.powi` only takes
scalar exponents. This led to vector `math.fpowi` ops being lowered to
invalid IR.

This PR adds support for constant splat exponents, and leaves other
vector cases unconverted.
DeltaFile
+54-2mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
+48-0mlir/test/Conversion/MathToLLVM/math-to-llvm.mlir
+102-22 files