LLVM/project 63fe0cfllvm/include/llvm/CodeGen BasicTTIImpl.h, llvm/test/Transforms/RelLookupTableConverter unnamed_addr.ll

Reapply "Disable RelLookupTableConverter on AArch64" (#212358)

This reverts commit ce8cf3f0a427f7fcf178a9a64ea48a4167211f82 (#207046).

Reland of #204669.


https://github.com/ARM-software/abi-aa/blob/main/sysvabi64/sysvabi64.rst#code-models
says that under the small code model rodata + text must fit in 2GB, but
the RelLookupTableConverter pass introduces PREL32 relocations from
.rodata to .data.rel.ro:

```
$ cat /tmp/a.c
extern void ext_func0(void);
extern void ext_func1(void);

typedef void (*func_t)(void);


    [24 lines not shown]
DeltaFile
+47-0llvm/test/Transforms/RelLookupTableConverter/AArch64/no_relative_lookup_table.ll
+0-40llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll
+4-3llvm/include/llvm/CodeGen/BasicTTIImpl.h
+51-433 files

FreeBSD/ports 07ededcscience/rdkit Makefile

science/rdkit: Broken on 16 arm64

Reported by:    fallout
DeltaFile
+1-0science/rdkit/Makefile
+1-01 files

LLVM/project 828456fllvm/test/tools/llvm-objcopy/ELF binary-output-target.test

[llvm-objcopy] Add AMDGPU case to binary-output-target.test

Add test coverage for converting binary input to elf64-amdgpu format,
verifying the output has the correct format string, arch (amdgpu),
and machine type (EM_AMDGPU 0xE0). Follows the same pattern as all
other architectures in this test file.
DeltaFile
+6-0llvm/test/tools/llvm-objcopy/ELF/binary-output-target.test
+6-01 files

LLVM/project 7d96bd2llvm/lib/Target/AMDGPU VOP3PInstructions.td, llvm/test/CodeGen/AMDGPU pk-lshl-add-u64.ll

[AMDGPU] Allow scalar operands in V_PK_LSHL_ADD_U64 (#212334)

Patch creates dummy source modifiers for this instruction to use
with OPSEL. Even though these do not support modifiers we can reuse
the same mechanics as with packed fp64 and other u64 to allow scalar
operands.
DeltaFile
+115-0llvm/test/CodeGen/AMDGPU/pk-lshl-add-u64.ll
+16-13llvm/lib/Target/AMDGPU/VOP3PInstructions.td
+131-132 files

FreeBSD/ports a02d354multimedia/moonshine Makefile Makefile.crates, multimedia/moonshine/files pkg-message.in moonshine.toml.sample

multimedia/moonshine: new port

Moonshine is a self-hosted game streaming host compatible with the Moonlight
client, an open alternative to Sunshine/GameStream.
DeltaFile
+1,009-0multimedia/moonshine/distinfo
+503-0multimedia/moonshine/Makefile.crates
+79-0multimedia/moonshine/files/moonshine.in
+74-0multimedia/moonshine/files/moonshine.toml.sample
+49-0multimedia/moonshine/files/pkg-message.in
+36-0multimedia/moonshine/Makefile
+1,750-02 files not shown
+1,761-08 files

FreeBSD/ports ab7b644benchmarks/imb Makefile, benchmarks/imb/files patch-src__c_IMB__mem__manager.c

benchmarks/imb: Fix P_Write_Shared segfault

With CHECK_RESULTS enabled, IMB-IO-openmpi P_Write_Shared crashes on
the first non-zero message size because IMB_chk_distr() uses reccnt,
while IMB_init_pointers() leaves it NULL for MPIIO builds.

Allocate the arrays needed for MPIIO builds.

PR:             296182
Reviewed by:    thierry (mentor)
Approved by:    thierry (mentor)
DeltaFile
+11-0benchmarks/imb/files/patch-src__c_IMB__mem__manager.c
+3-2benchmarks/imb/Makefile
+14-22 files

FreeBSD/ports 96368eadevel/py-deprecat Makefile

devel/py-deprecat: Unbreak by removing wrapt upper bound in RUN_DEPENDS

Reported by:    fallout

(cherry picked from commit 22adb646bdcb4efa494b4ebef2c1b88c2e9d8922)
DeltaFile
+2-2devel/py-deprecat/Makefile
+2-21 files

FreeBSD/ports de3b633science/dynare Makefile

science/dynare: Fix build on 16

Reported by:    fallout
DeltaFile
+2-0science/dynare/Makefile
+2-01 files

FreeBSD/src 75be700sys/kern kern_umtx.c

umtx: Do not make an exiting thread the owner of a PI mutex

Otherwise an assertion in umtx_thread_alloc()
(TAILQ_EMPTY(&uq->uq_pi_contested)) is violated.

This use of TDB_EXIT is hacky, but I cannot see another way to check for
an exiting thread without adding some more overhead to kern_thr_exit().

Fixes:          2a339d9e3dc1
Reported by:    Maik Muench of Secfault Security
Reviewed by:    kib
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58447
DeltaFile
+15-6sys/kern/kern_umtx.c
+15-61 files

FreeBSD/src 1f4b0easys/kern kern_event.c

kqueue: Add a helper macro for sleeping on in-flux knotes

Other in-flux operations are implemented by this set of macros, so we
should do the same for sleeping.

No functional change intended.

Reviewed by:    kib
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58443
DeltaFile
+16-16sys/kern/kern_event.c
+16-161 files

NetBSD/pkgsrc xcZFqkDx11/slock Makefile distinfo

   Pullup ticket #7197 - requested by leot
   x11/slock: Bug fix

   Revisions pulled up:
   - x11/slock/Makefile                                            1.15
   - x11/slock/distinfo                                            1.11

   ---
      Module Name:    pkgsrc
      Committed By:   leot
      Date:           Mon Jul 27 22:07:21 UTC 2026

      Modified Files:
              pkgsrc/x11/slock: Makefile distinfo

      Log Message:
      slock: Update to 1.7

      Changes:

    [4 lines not shown]
VersionDeltaFile
1.10.8.1+4-4x11/slock/distinfo
1.14.6.1+2-2x11/slock/Makefile
+6-62 files

NetBSD/pkgsrc-wip 408b237tfkiss distinfo MESSAGE

ham/tfkiss: Update to 1.3.2

Upstream is now a maintained fork at https://github.com/kq6up/tfkiss.
The original site is gone and there had been no release since 1.2.4
in 2000.

Upstream changes since 1.2.4:

  - 64-bit correctness.  Fixed pointer truncation in call_to_ip() and
    next_addr(), an incorrect socklen_t definition, inet_addr()
    comparisons against -1 rather than INADDR_NONE, incorrect signal
    handler signatures, an argument order bug in dump_ax25frame(), and
    a missing return after a full routing table that permitted an
    out-of-bounds write.  Fixed an MBHEAD/MB struct size mismatch that
    broke the firmware's buffer allocator on LP64 systems.

  - All K&R function definitions converted to ANSI C prototypes.
    Deprecated bzero() replaced with memset().  Unbounded string
    operations replaced with bounded equivalents.

    [38 lines not shown]
DeltaFile
+57-0tfkiss/COMMIT_MSG
+19-15tfkiss/DESCR
+22-9tfkiss/Makefile
+10-9tfkiss/PLIST
+0-16tfkiss/MESSAGE
+3-3tfkiss/distinfo
+111-526 files

FreeBSD/src 8616b7dsys/kern kern_fork.c

proc: Copy the p_reapsubtree field explicitly during fork

p_reapsubtree lives in the p_startcopy/p_endcopy block of struct proc,
which is copied during fork without any synchronization.  However, the
field is not stable except when the proctree lock is held, and indeed
may change if p1's reaper exits or explicitly releases its reaper
status.  This state change can race with fork() and leave the child with
an incorrect p_reapsubtree field.

Close the race: explicitly copy the field under the proctree lock during
fork.

Reported by:    syzkaller
Reviewed by:    kib
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58482
DeltaFile
+7-0sys/kern/kern_fork.c
+7-01 files

FreeBSD/src 152ba2dusr.bin/rpcinfo rpcinfo.c

rpcinfo: Fix buffer overflows

Several functions were using sprintf() to write RPC server-controlled
data to a stack buffer.  Adopt some minimal changes from NetBSD to avoid
the potential overflows.

Security:       CVE-2026-16277
Security:       CVE-2026-16461
Reviewed by:    khorben
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58441
DeltaFile
+67-50usr.bin/rpcinfo/rpcinfo.c
+67-501 files

FreeBSD/src b02e029lib/libfetch common.c

libfetch: Fix handling of connection failures

After commit 848f360c8f9a, if one tries to connect to a closed port,
fetch reports "Operation now in progress", which is rather confusing.
Return a more useful error message, restoring the old behaviour.

Fixes:          848f360c8f9a ("libfetch: Apply timeout to connection attempts")
Reviewed by:    des
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D58481
DeltaFile
+4-0lib/libfetch/common.c
+4-01 files

FreeBSD/src 95a3301usr.bin/rpcinfo Makefile rpcinfo.c

rpcinfo: Fix residual warnings and bump WARNS

Reviewed by:    emaste
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58442
DeltaFile
+15-14usr.bin/rpcinfo/rpcinfo.c
+0-2usr.bin/rpcinfo/Makefile
+15-162 files

LLVM/project 4053f2bflang-rt README.md CMakeLists.txt, flang-rt/lib/cuda allocator.cpp

[flang-rt][cuda] Keep CUFDeviceIsActive working under runtime/driver skew (#212320)

Resolve cuDevicePrimaryCtxGetState via the installed driver version, and
prefer running scope-exit cleanup when the probe cannot prove teardown,
so local device allocations are not leaked when the unversioned lookup
fails.
DeltaFile
+23-13flang-rt/lib/cuda/allocator.cpp
+2-6flang-rt/unittests/Runtime/CUDA/AllocatorCUF.cpp
+6-0flang-rt/CMakeLists.txt
+1-1flang-rt/README.md
+32-204 files

LLVM/project bd5883cclang/lib/AST RecordLayoutBuilder.cpp, clang/test/CodeGenCXX override-layout-aligned-base.cpp

[clang] Fix record alignment lost via external layout on Arm64 (#212362)

An external layout source (such as LLDB reading DWARF) supplies a
record's final alignment directly, since `alignas` / `__declspec(align)`
attributes are not recoverable from debug info. `finalizeLayout`
captured `NonRequiredAlignment` before applying the external alignment,
so an externally laid out record published a stale, too-small value.

On Arm64 this field is used to fold a base's alignment into the derived
record, so a derived class picked up the stale value instead of the
base's actual alignment. This regressed
`lldb/test/API/lang/cpp/alignas_base_class` when #210461 was merged,
where `alignof(Derived)` evaluated to 1 instead of 8. Other targets were
unaffected as they do not read this field.

Treat all of an externally supplied alignment as non-required, as there
is no way to tell how much of it was imposed by an alignment attribute.
DeltaFile
+29-0clang/test/CodeGenCXX/override-layout-aligned-base.cpp
+8-0clang/test/CodeGenCXX/Inputs/override-layout-aligned-base.layout
+6-1clang/lib/AST/RecordLayoutBuilder.cpp
+43-13 files

OpenBSD/ports 8ySqAl9lang/tcltutor Makefile

   Updated HOMEPAGE.
   MODTK_VERSION=8.6
VersionDeltaFile
1.14+6-2lang/tcltutor/Makefile
+6-21 files

FreeBSD/ports 116d409audio/spotify-player Makefile Makefile.crates

audio/spotify-player: Update 0.23.0 -> 0.24.1

Changelog: https://github.com/aome510/spotify-player/releases/tag/v0.24.1
DeltaFile
+485-509audio/spotify-player/distinfo
+241-253audio/spotify-player/Makefile.crates
+1-2audio/spotify-player/Makefile
+727-7643 files

FreeBSD/src b4bd57dsys/kern kern_sysctl.c

sysctl(9): Booleans: Fix old value length discovery

When calling sysctl(3) with a null 'oldp', i.e., length discovery mode,
'oldix' can be equal to 'oldlen', and we should not fail.

More generally, let SYSCTL_OUT() and SYSCTL_IN() handle corner cases,
simply removing the comparisons between 'oldidx' and 'oldlen' and
'newidx' and 'newlen' done by hand as the test just after is an equality
that does not require to know if 'idx' is smaller than 'len'.

PR:             292917
Reported by:    cy
Fixes:          406da392ef8d ("sysctl(9): Booleans: Accept integers to ease knob conversion")
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 895e1c6567d9561c86f8d20b47e924911bce989e)
DeltaFile
+0-4sys/kern/kern_sysctl.c
+0-41 files

OpenBSD/ports cTdUsFhdevel/p5-IO-KQueue distinfo Makefile, devel/p5-IO-KQueue/patches patch-KQueue_xs

   update p5-IO-KQueue to 0.40
VersionDeltaFile
1.8+2-2devel/p5-IO-KQueue/distinfo
1.23+2-2devel/p5-IO-KQueue/Makefile
1.2+1-1devel/p5-IO-KQueue/patches/patch-KQueue_xs
+5-53 files

LLVM/project 8f0815bmlir/include/mlir/Analysis FlatLinearValueConstraints.h, mlir/include/mlir/Dialect/Affine/Analysis AffineStructures.h

[MLIR] Allow recovering from semi-affine sets in FlatLinearValueConstraints

The IntegerSet constructor of FlatLinearValueConstraints asserts when
flattening fails, which happens for semi-affine integer sets. Since the
failure is signalled from inside a constructor, callers have no way to
detect the unsupported case ahead of time and no way to work around it;
they simply crash.

Make that constructor protected and expose the construction through
`FlatLinearValueConstraints::create` (and the corresponding
`FlatAffineValueConstraints::create`), which returns a `FailureOr` and
so lets callers handle a semi-affine set gracefully.

Existing in-tree users are updated: `addAffineIfOpDomain` keeps asserting
as before, and `simplifyIntegerSet` now returns the set unchanged instead
of asserting, since a semi-affine set simply cannot be simplified this way.
DeltaFile
+17-3mlir/lib/Dialect/Affine/Analysis/AffineStructures.cpp
+15-2mlir/lib/Analysis/FlatLinearValueConstraints.cpp
+8-4mlir/lib/Dialect/Affine/Analysis/Utils.cpp
+10-2mlir/include/mlir/Analysis/FlatLinearValueConstraints.h
+5-1mlir/unittests/Analysis/Presburger/Parser.h
+5-0mlir/include/mlir/Dialect/Affine/Analysis/AffineStructures.h
+60-126 files

LLVM/project 05eba61llvm/lib/Transforms/Vectorize VPlanUtils.h VPlanUtils.cpp

[VPlan] Add vputils::getEarlyExits helper (NFC) (#212348)

Both handleUncountableEarlyExits and the countable early-exit disconnect
in handleEarlyExits walk all exit blocks and skip predecessors coming
from the middle block to find the early exiting blocks.

Factor that walk out into vputils::getEarlyExits, returning the (early
exiting block, exit block) pairs.
DeltaFile
+28-32llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+6-12llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
+10-0llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
+5-0llvm/lib/Transforms/Vectorize/VPlanUtils.h
+49-444 files

LLVM/project 0fa9cfallvm/docs CIBestPractices.rst Reference.md

[CI] Add documentation for self-hosted runners (#211622)

This patch adds (work in progress) documentation for the various
self-hosted runner groups we have access to in the LLVM monorepo.
DeltaFile
+105-0llvm/docs/GitHubActionsRunners.rst
+5-0llvm/docs/Reference.md
+3-0llvm/docs/CIBestPractices.rst
+113-03 files

LLVM/project d8d33abmlir/include/mlir/Analysis FlatLinearValueConstraints.h, mlir/include/mlir/Dialect/Affine/Analysis AffineStructures.h

[MLIR] Allow recovering from semi-affine sets in FlatLinearValueConst… (#212346)

…raints

The IntegerSet constructor of FlatLinearValueConstraints asserts when
flattening fails, which happens for semi-affine integer sets. Since the
failure is signalled from inside a constructor, callers have no way to
detect the unsupported case ahead of time and no way to work around it;
they simply crash.

Add an optional `bool *error` parameter to the constructor. When it is
non-null, hitting the unimplemented case sets `*error` to true and
returns instead of asserting, letting callers bail out gracefully.
`*error` is set to false on success. When the pointer is null the
previous assert behavior is retained, so existing callers are
unaffected.
DeltaFile
+17-3mlir/lib/Dialect/Affine/Analysis/AffineStructures.cpp
+15-2mlir/lib/Analysis/FlatLinearValueConstraints.cpp
+8-4mlir/lib/Dialect/Affine/Analysis/Utils.cpp
+10-2mlir/include/mlir/Analysis/FlatLinearValueConstraints.h
+4-1mlir/unittests/Analysis/Presburger/Parser.h
+5-0mlir/include/mlir/Dialect/Affine/Analysis/AffineStructures.h
+59-126 files

LLVM/project 1acf5ddclang/lib/Basic/Targets AMDGPU.cpp, llvm/include/llvm/TargetParser AMDGPUTargetParser.h

AMDGPU: Handle more TargetParser queries in tablegen

Previously we had various enum switches. Start generated tables
indexed by enums. Avoid some special cases by defining the dummy
"generic" and "generic-hsa" targets as real processors.

Co-authored-by: Claude (Claude-Opus-4.8)
DeltaFile
+62-82llvm/lib/TargetParser/AMDGPUTargetParser.cpp
+87-30llvm/utils/TableGen/Basic/AMDGPUTargetDefEmitter.cpp
+7-4llvm/lib/Target/AMDGPU/GCNProcessors.td
+2-5clang/lib/Basic/Targets/AMDGPU.cpp
+2-4llvm/include/llvm/TargetParser/AMDGPUTargetParser.h
+4-0llvm/lib/Target/AMDGPU/AMDGPUTargetParser.td
+164-1253 files not shown
+168-1269 files

LLVM/project f879bdfllvm/include/llvm/TargetParser AMDGPUTargetParser.def, llvm/lib/Target/AMDGPU AMDGPUTargetParser.td GCNProcessors.td

AMDGPU: Generate TargetParser table from TableGen

Migrate .def file to tablegen. The initial TargetParser
AMDGPU backend only handled R600. Extend to modern targets.
Stub out some tablegen definitions which will be used in future
changes.

Co-authored-by: Claude (Claude-Opus-4.8)
DeltaFile
+255-191llvm/lib/Target/AMDGPU/GCNProcessors.td
+0-155llvm/include/llvm/TargetParser/AMDGPUTargetParser.def
+117-7llvm/utils/TableGen/Basic/AMDGPUTargetDefEmitter.cpp
+22-22llvm/lib/TargetParser/AMDGPUTargetParser.cpp
+28-2llvm/lib/Target/AMDGPU/AMDGPUTargetParser.td
+16-0llvm/test/TableGen/AMDGPUTargetDefErrors.td
+438-3775 files not shown
+456-38411 files

LLVM/project a9a5ab3llvm/lib/Transforms/Utils SimplifyCFG.cpp, llvm/test/Transforms/SimplifyCFG/AMDGPU convergent-jump-threading.ll

[SimplifyCFG] Do not thread branches into uncontrolled convergent regions

SimplifyCFG's foldCondBranchOnValueKnownInPredecessor can thread an edge past
a block that acts as a reconvergence point. If the threaded destination reaches
an uncontrolled convergent operation before returning to the threaded-through
block, the transform can change which dynamic instance of the convergent
operation is executed.

Add a conservative destination scan for this fold and skip the threading
candidate when it can reach an uncontrolled convergent call before returning
to the original block. Controlled convergent operations using convergence
control tokens are left alone.

Fixes ROCM-26496.
DeltaFile
+68-6llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+52-3llvm/test/Transforms/SimplifyCFG/AMDGPU/convergent-jump-threading.ll
+120-92 files

LLVM/project a341835llvm/test/Transforms/SimplifyCFG/AMDGPU convergent-jump-threading.ll

[NFC] Pre-commit a test case for a SimplifyCFG issue
DeltaFile
+94-0llvm/test/Transforms/SimplifyCFG/AMDGPU/convergent-jump-threading.ll
+94-01 files