LLVM/project 31f6ba3llvm/lib/Target/AMDGPU AMDGPUMemoryUtils.cpp

Fix error reported by -Wrange-loop-construct (#211657)

One system I'm building on adds -Wrange-loop-construct to the list of
-W<group> options. This results in the compile error:

```
/home/perry/llvm/Woz/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMemoryUtils.cpp:37:19: error: loop variable '[ID, N]' creates a copy from type 'std::pair<unsigned int, llvm::MDNode *> const' [-Werror,-Wrange-loop-construct]
  for (const auto [ID, N] : MD) {
                  ^
/home/perry/llvm/Woz/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMemoryUtils.cpp:37:8: note: use reference type 'std::pair<unsigned int, llvm::MDNode *> const &' to prevent copying
  for (const auto [ID, N] : MD) {
       ^~~~~~~~~~~~~~~~~~~~
                  &
1 error generated.
```
DeltaFile
+1-1llvm/lib/Target/AMDGPU/AMDGPUMemoryUtils.cpp
+1-11 files

LLVM/project 725737bllvm/lib/IR AutoUpgrade.cpp, llvm/test/Assembler auto_upgrade_coro_end_result.ll

[LLVM] Auto-upgrade legacy coro.end results (#211081)

When `llvm.coro.end` and `llvm.coro.end.async` changed from returning
`i1`
to returning `void` in #159278, the bitcode auto-upgrader continued to
handle
only the older two-argument `llvm.coro.end` form.

As a result, valid bitcode produced before that transition fails
verification
when a current LLVM ThinLTO backend materializes a module containing
either:

* the three-argument, `i1`-returning `llvm.coro.end`; or
* the `i1`-returning `llvm.coro.end.async`.

Teach `AutoUpgrade` to recognize both legacy declarations and rebuild
their
calls with the current `void`-returning intrinsics. If the legacy result

    [15 lines not shown]
DeltaFile
+49-0llvm/test/Assembler/auto_upgrade_coro_end_result.ll
+24-4llvm/lib/IR/AutoUpgrade.cpp
+73-42 files

NetBSD/pkgsrc ngRH6Mywww/p5-Alien-LibGumbo distinfo Makefile

   Update to 0.06

   Upstream changes:
   0.06 2026-05-22
     - Update to libgumbo 0.13.2
     - Migrate to the new libgumbo repo on codeberg
     - Add Best Practical as co-maintainer and document RT bug tracker
     - Move module repo to https://github.com/bestpractical/alien-libgumbo
VersionDeltaFile
1.2+4-4www/p5-Alien-LibGumbo/distinfo
1.9+3-4www/p5-Alien-LibGumbo/Makefile
+7-82 files

LLVM/project 257e81fmlir/include/mlir/Dialect/Tosa/IR TosaTypesBase.td, mlir/test/Conversion/TosaToLinalg tosa-to-linalg-pipeline.mlir

Revert "[mlir][tosa] Combine unranked/ranked tensor types into single type" (#211701)

Reverts llvm/llvm-project#209737

Breaks bots, see
https://github.com/llvm/llvm-project/pull/209737#issuecomment-5064857765
DeltaFile
+68-40mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
+20-20mlir/test/Dialect/Tosa/invalid.mlir
+5-5mlir/test/Dialect/Tosa/verifier.mlir
+1-1mlir/test/Conversion/TosaToLinalg/tosa-to-linalg-pipeline.mlir
+94-664 files

LLVM/project 125113ellvm/test/CodeGen/AMDGPU soft-waitcnt-deletion.mir soft-waitcnt-loop-deletion.ll

Rebase

Change-Id: I5f8b91764af1964f6b4b68f07f08170546a5c83b
DeltaFile
+7-7llvm/test/CodeGen/AMDGPU/soft-waitcnt-deletion.mir
+2-2llvm/test/CodeGen/AMDGPU/soft-waitcnt-loop-deletion.ll
+9-92 files

FreeBSD/doc 9452c69website/content/en/news/2026-ports-freeze ports-reset.sh

news: add the ports reset script

Following the freeze of the ports tree announced on 2026-07-22, this
script may be used to correct branches that contain the offending
object.  Note that it contains some commit hashes that need to be
replaced if your local branch has changes included that alter these;
instructione are included inside.

The script was originally written by glebius@, with slight modifications
by kevans@ and dhw@.

Reviewed by:    adrian, dhw, glebius, lwhsu (all previous version)
Differential Revision:  https://reviews.freebsd.org/D58417
DeltaFile
+112-0website/content/en/news/2026-ports-freeze/ports-reset.sh
+112-01 files

LLVM/project 1538937mlir/include/mlir/Dialect/Tosa/IR TosaTypesBase.td, mlir/test/Conversion/TosaToLinalg tosa-to-linalg-pipeline.mlir

Revert "[mlir][tosa] Combine unranked/ranked tensor types into single type (#…"

This reverts commit aab7e0b08d30ddca5858069a4c14c1ea3da042e6.
DeltaFile
+68-40mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
+20-20mlir/test/Dialect/Tosa/invalid.mlir
+5-5mlir/test/Dialect/Tosa/verifier.mlir
+1-1mlir/test/Conversion/TosaToLinalg/tosa-to-linalg-pipeline.mlir
+94-664 files

LLVM/project 5acf75dllvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp, llvm/test/CodeGen/AMDGPU expert_scheduling_gfx12.mir soft-waitcnt-deletion.mir

[AMDGPU] Check all incoming edges before deleting soft waits

Change-Id: I92ca9784405e53f46aa4c8701e417d32f00bbff7
DeltaFile
+724-1llvm/test/CodeGen/AMDGPU/expert_scheduling_gfx12.mir
+431-0llvm/test/CodeGen/AMDGPU/soft-waitcnt-deletion.mir
+128-38llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+118-0llvm/test/CodeGen/AMDGPU/soft-waitcnt-loop-deletion.ll
+46-0llvm/test/CodeGen/AMDGPU/local-atomicrmw-fsub.ll
+36-0llvm/test/CodeGen/AMDGPU/local-atomicrmw-fmax.ll
+1,483-3910 files not shown
+1,607-6116 files

LLVM/project 31b6ee9llvm/lib/Target/AArch64 AArch64PointerAuth.cpp, llvm/test/CodeGen/AArch64 pauth-lr-tail-call-fpdiff.ll sign-return-address-pauth-lr.ll

[llvm][AArch64] Enable .cfi_set_ra_state by default for PAuth_LR (#211698)
DeltaFile
+48-24llvm/test/CodeGen/AArch64/pauth-lr-tail-call-fpdiff.ll
+35-35llvm/test/CodeGen/AArch64/sign-return-address-pauth-lr.ll
+34-34llvm/test/CodeGen/AArch64/sign-return-address-pauth-lr-mir.ll
+18-9llvm/test/CodeGen/AArch64/swifttail-ptrauth.ll
+4-4llvm/test/CodeGen/AArch64/sign-return-address-pauthlr-slh.ll
+1-1llvm/lib/Target/AArch64/AArch64PointerAuth.cpp
+140-1076 files

LLVM/project 1ec7a13clang/include/clang/AST ExprCXX.h, clang/lib/Sema TreeTransform.h

[Sema] Fix assertion in TreeTransform when rebuilding CXXParenListInitExpr (#203715)
DeltaFile
+13-0clang/test/SemaTemplate/instantiate-member-initializers.cpp
+4-0clang/include/clang/AST/ExprCXX.h
+2-1clang/lib/Sema/TreeTransform.h
+19-13 files

FreeBSD/src 8f320c2sys/kern kern_prot.c

getpgrp(2), getsid(2): allow to call on zombies

Also be more protective in getsid().

Reported by:    arrowd
Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differrential revision: https://reviews.freebsd.org/D58393
DeltaFile
+8-4sys/kern/kern_prot.c
+8-41 files

LLVM/project 490b49flldb/source/Plugins/Process/gdb-remote GDBRemoteCommunicationClient.cpp ProcessGDBRemote.cpp

[lldb] Fix qSpeedTest radix mistake, make number parsings explicit (#211495)

The documentation for qSpeedTest says

```
send packet: qSpeedTest:response_size:response-size;
read packet: data:<response data>

response-size is a hex encoded unsigned number up to 64 bits in size.
```

debugserver implements qSpeedTest as per this documentation, but lldb
sends the number in decimal (base 10), and lldb-server parses it as base
10. I changed lldb and lldb-server to base 16. This is a maintenance
command used by lldb developers exclusivley, so IMO I'm not handling a
migration for old/new servers or defining a new packet or key. I was
running some packet transmission tests with debugserver and noticed
debugserver was sending much larger packets than requested; that's the
kind of failure you see when there is a mismatch.

    [21 lines not shown]
DeltaFile
+32-32lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+20-20lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+9-8lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
+5-0lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
+1-1lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
+67-615 files

LLVM/project bee0671clang/include/clang/Basic AArch64CodeGenUtils.h, clang/lib/CIR/CodeGen CIRGenBuiltinAArch64.cpp

[CIR][AArch64] Lower Vector saturating shift and narrow intrinsics (#209389)

### summary

part of : https://github.com/llvm/llvm-project/issues/185382

lower all intrinsics in :
https://arm-software.github.io/acle/neon_intrinsics/advsimd.html#vector-saturating-shift-right-and-narrow
DeltaFile
+344-0clang/test/CodeGen/AArch64/neon/intrinsics.c
+0-331clang/test/CodeGen/AArch64/neon-intrinsics.c
+99-28clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp
+20-11clang/include/clang/Basic/AArch64CodeGenUtils.h
+463-3704 files

NetBSD/pkgsrc ydOWLKmdoc CHANGES-2026

   doc: Updated textproc/scdoc to 1.11.5
VersionDeltaFile
1.4716+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc 3ZbojfStextproc/scdoc distinfo Makefile

   textproc/scdoc: Update to 1.11.5

   Upstream lacks NEWS.

   Reading commits: bugfixes.
VersionDeltaFile
1.10+4-4textproc/scdoc/distinfo
1.5+2-2textproc/scdoc/Makefile
+6-62 files

NetBSD/pkgsrc 1VXJ81qdoc CHANGES-2026

   CHANGES-2026: Back out commit wrongly on stable branch
VersionDeltaFile
1.3852.2.2+1-2doc/CHANGES-2026
+1-21 files

NetBSD/pkgsrc AaQprRetextproc/scdoc distinfo Makefile

   textproc/scdoc: Back out commit wrongly on stable branch
VersionDeltaFile
1.9.4.2+3-3textproc/scdoc/distinfo
1.4.4.2+1-1textproc/scdoc/Makefile
+4-42 files

LLVM/project 93740f6clang/test/OpenMP target_map_nested_ptr_member_mapper_codegen.cpp, llvm/lib/Frontend/OpenMP OMPIRBuilder.cpp

[OpenMP] Propagate PRESENT to pointee entries in mapper codegen

Extend mapper map-type-modifier propagation to include PRESENT, gated to entries
that have an attach pointer (HasAttachPtr): the pointee data, whose storage
differs from the struct being mapped. A present modifier on the outer map/motion
clause must require that pointee to be present on the device; the present-check
on the struct's own storage does not cover it.

The propagation is gated on a new PropagatePresentToPointee argument to
emitUserDefinedMapper, set by callers only for OpenMP >= 6.0. Before 6.0 the
present modifier is treated as not applying to the pointee: the spec committee
confirmed the divergence between the present 'motion' modifier (to/from) and the
present map-type modifier (map) was unintentional, to be fixed as an OpenMP 6.0
erratum, so for 5.2 present is ignored for the pointee for both map and to/from.

Regular struct members receive only ALWAYS/DELETE/CLOSE; attach-ptr/pointee
entries additionally receive PRESENT at OpenMP >= 6.0. ATTACH entries receive no
modifier bits.


    [8 lines not shown]
DeltaFile
+202-0clang/test/OpenMP/target_map_nested_ptr_member_mapper_codegen.cpp
+65-0offload/test/mapping/mapper_map_mbr_then_present_mbr_ptee.c
+58-0offload/test/mapping/mapper_map_present_ptee.c
+37-11llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+46-0offload/test/mapping/mapper_map_mbr_ptee_then_present_mbr_ptee.c
+15-8offload/test/mapping/mapper_target_update_present_ptee.c
+423-192 files not shown
+446-278 files

LLVM/project 475ddabclang/lib/CodeGen CGOpenMPRuntime.cpp, clang/test/OpenMP target_map_nested_ptr_member_mapper_codegen.cpp declare_mapper_codegen.cpp

[OpenMP] Track attach-ptr entries in mapper codegen (HasAttachPtr)

Add a per-entry HasAttachPtr flag to MapInfosTy. It is set for entries that
have an attach pointer (and thus an accompanying ATTACH entry linking that ptr
to its pointee): pointee/combined entries whose storage differs from the struct
being mapped. It is NOT set for the ATTACH entries themselves.

In emitUserDefinedMapper, entries with HasAttachPtr (or the ATTACH bit, or the
Flang/MLIR PreserveMemberOfFlags) do not receive a new outer MEMBER_OF: pointee
data occupies a different storage block than the struct, and ATTACH entries
just link a ptr to its ptee. Existing inner MEMBER_OF bits are still shifted.

Clang (CGOpenMPRuntime) and the MLIR translator populate HasAttachPtr in
parallel with the other per-entry arrays; the MLIR/Flang side currently pushes
false with a TODO to set it for pointee-storage entries (e.g. s%p(0:10)) and
eventually drop PreserveMemberOfFlags in favor of it.

Co-Authored-By: Claude Opus 4.8 <noreply at anthropic.com>
DeltaFile
+98-80clang/test/OpenMP/target_map_nested_ptr_member_mapper_codegen.cpp
+68-60clang/test/OpenMP/declare_mapper_codegen.cpp
+66-5clang/lib/CodeGen/CGOpenMPRuntime.cpp
+52-15llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+18-24offload/test/mapping/mapper_enter_data_always_present_ptee.c
+20-0mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+322-1846 files not shown
+345-21412 files

LLVM/project d61e7edclang/test/OpenMP target_map_array_section_of_structs_with_nested_mapper_codegen.cpp target_map_array_of_structs_with_nested_mapper_codegen.cpp, llvm/lib/Frontend/OpenMP OMPIRBuilder.cpp

[OpenMP] Propagate ALWAYS/DELETE/CLOSE map-type modifiers to mapper entries

Per OpenMP 6.0:281:34, when a map/motion clause uses a mapper modifier, any
map-type-modifying modifier on that clause applies to each map the declared
mapper specifies. Propagate the ALWAYS, DELETE, and CLOSE bits from the outer
clause's map type into every entry emitted by emitUserDefinedMapper, except
ATTACH entries (ATTACH|ALWAYS is reserved for attach(always), and the other
bits have no meaning for an ATTACH entry).

PRESENT is intentionally NOT propagated here: it requires distinguishing
pointee entries from the struct's own storage and is handled in a follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply at anthropic.com>
DeltaFile
+87-77clang/test/OpenMP/target_map_array_section_of_structs_with_nested_mapper_codegen.cpp
+87-77clang/test/OpenMP/target_map_array_of_structs_with_nested_mapper_codegen.cpp
+76-68clang/test/OpenMP/target_map_nested_ptr_member_mapper_codegen.cpp
+37-2llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+27-9clang/test/OpenMP/declare_mapper_codegen.cpp
+4-12offload/test/mapping/mapper_map_ptee_only_always_array.c
+318-2453 files not shown
+334-2529 files

LLVM/project f854d3ellvm/test/CodeGen/AMDGPU maximumnum.ll, llvm/test/CodeGen/AMDGPU/GlobalISel legalize-load-global.mir legalize-load-local.mir

Merge remote-tracking branch 'upstream/main' into add-mapper-tests-that-need-attach-type-codegen
DeltaFile
+23,904-12llvm/test/CodeGen/RISCV/clmul.ll
+9,414-9,234llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-global.mir
+7,009-6,937llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-local.mir
+13,068-0llvm/test/CodeGen/RISCV/GlobalISel/atomicrmw-max-min-umax-umin.ll
+5,819-5,824llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-private.mir
+5,588-5,406llvm/test/CodeGen/AMDGPU/maximumnum.ll
+64,802-27,41312,038 files not shown
+498,341-321,66612,044 files

OpenZFS/src eb1738bmodule/zfs zfs_vnops.c

FreeBSD: Enable Direct IO by default

Commits 25eb538778, 178682506f, and 8dc452d907 resolve the remaining
known issues with Direct IO on FreeBSD. Enable it by default on all
platforms.

Signed-off-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Closes #16761
DeltaFile
+0-7module/zfs/zfs_vnops.c
+0-71 files

LLVM/project 89b8429clang/bindings/python/clang cindex.py, clang/bindings/python/tests/cindex test_code_completion.py

[libclang/python] Remove global SPELLING_CACHE alias (#210677)

This completes the second step of
https://github.com/llvm/llvm-project/issues/156680
This change is a follow-up to
https://github.com/llvm/llvm-project/pull/177586, following the release
branching, to ensure a one release-cycle deprecation period.

---------

Co-authored-by: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
DeltaFile
+0-29clang/bindings/python/clang/cindex.py
+0-25clang/bindings/python/tests/cindex/test_code_completion.py
+4-0clang/docs/ReleaseNotes.md
+4-543 files

NetBSD/pkgsrc ZbLD3Fodoc CHANGES-2026

   doc: Updated textproc/scdoc to 1.11.5
VersionDeltaFile
1.3852.2.1+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc Reqm0Qltextproc/scdoc distinfo Makefile

   textproc/scdoc: Update to 1.11.5

   Upstream lacks NEWS.

   Reading commits: bugfixes.
VersionDeltaFile
1.9.4.1+4-4textproc/scdoc/distinfo
1.4.4.1+2-2textproc/scdoc/Makefile
+6-62 files

LLVM/project c517346llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer VecUtils.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer VecUtils.cpp

Pass Claimed by ref to getNextUserBundles

A user should not be claimed by multiple successful
bundles. Added a test for this.
DeltaFile
+60-7llvm/test/Transforms/SandboxVectorizer/topdown_vec.ll
+3-3llvm/lib/Transforms/Vectorize/SandboxVectorizer/VecUtils.cpp
+3-1llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/BottomUpVec.cpp
+2-1llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h
+68-124 files

NetBSD/pkgsrc dJdArB8doc CHANGES-2026

   Updated www/p5-HTTP-Tinyish to 0.20
VersionDeltaFile
1.4715+2-1doc/CHANGES-2026
+2-11 files

OpenZFS/src b6b0d76tests/runfiles common.run, tests/zfs-tests/tests/functional/cli_root/zpool_scrub zpool_scrub_txg_continue_from_last.ksh

ZTS: add scrub-from-txg into the runfile

zpool_scrub_txg_continue_from_last (#16301) and
zpool_events_scrub_txg_continue_from_last (#17432) are listed in
Makefile.am but not referenced in common.run thus ignored into CI
and ZTS

The test defines that the last_scrubbed_txg is initially 0, which is
only valid on a pool with no scrub history. Recreate the pool so the
test does not depend on its position in the runfile.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Christos Longros <chris.longros at gmail.com>
Closes #18785
DeltaFile
+24-16tests/zfs-tests/tests/functional/cli_root/zpool_scrub/zpool_scrub_txg_continue_from_last.ksh
+2-2tests/runfiles/common.run
+26-182 files

NetBSD/pkgsrc W1kB8d0www/p5-HTTP-Tinyish distinfo Makefile

   Update to 0.20

   Upstream changes:
   0.20  2026-05-04 09:50:45 PDT
           - Fix mirror() in Curl and Wget backends to not create a local file on
             failed HTTP requests, matching HTTP::Tiny's behavior. Fixes #27
           - Fix Wget mirror() to properly return HTTP error status codes (e.g. 404)
             instead of converting them to 599 internal errors
VersionDeltaFile
1.8+4-4www/p5-HTTP-Tinyish/distinfo
1.16+3-4www/p5-HTTP-Tinyish/Makefile
+7-82 files

OpenZFS/src 242105fmodule/zfs dnode_sync.c

dnode_sync: Relax constraint on indirect freeing

One of the roles of the dnode sync thread is freeing.  There are two
modes of this operation: freeing a portion of an object, and freeing
the object itself.

Freeing is handled by `free_children()`.  This function verifies that
if the dnode has children there must be at least one marked as dirty
before proceeding to recursively free the tree of block pointers.

As described in a comment, this VERIFY is overly strict.  In practice,
children may not be marked as dirty when the dnode itself is being
freed.  Relax the VERIFY slightly by avoiding the VERIFY when indirect
blocks are to be immediately freed, to more closely match the comment
motivating the VERIFY.

While here, clarify the logic of the test by using VERIFY_IMPLY instead
of chaining multiple tests.


    [5 lines not shown]
DeltaFile
+6-3module/zfs/dnode_sync.c
+6-31 files