LLVM/project 9b1e3e0 — utils/bazel/llvm-project-overlay/libc BUILD.bazel, utils/bazel/llvm-project-overlay/libc/src/string BUILD.bazel

[bazel] Add rules for remaining string.h functions (#245367)

Additionally, add the corresponding aliases.

Assisted-by: Claude Fable 5.2
DeltaFile
+36-0utils/bazel/llvm-project-overlay/libc/src/string/BUILD.bazel
+15-0utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+51-02 files

LLVM/project a84dba7 — llvm/lib/Target/SystemZ SystemZScheduleZEC12.td SystemZScheduleZ196.td

[SystemZ] Add missing CC def to TRANSLATE EXTENDED (TRE)

TRE sets the condition code (0: operand processed, 1: test character
found, 3: CPU-determined amount processed), but its definition did not
list CC as an implicit def.

Adding the def raises TRE's write count from two to three, so update the
TRE scheduling entries for z196 through z17 to match (as for CU41/CU42).

Assisted by: IBM Bob
DeltaFile
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZEC12.td
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZ196.td
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZ17.td
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZ16.td
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZ15.td
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZ14.td
+6-62 files not shown
+8-88 files

LLVM/project 179060f — flang/include/flang/Optimizer/Analysis AliasAnalysis.h, flang/lib/Optimizer/Analysis AliasAnalysis.cpp

[flang] Let FIR AA calls access the data of descriptor arguments (#244452)

getCallModRef finds whether a call may access a variable through its
arguments with alias(arg, var). When the argument is the address of a
descriptor, e.g. an allocatable passed to an allocatable dummy, alias()
answers NoAlias for the data that the descriptor describes, because the
address of a descriptor does not alias the address of data. So getModRef
answered NoModRef for the data of an allocatable across a call that may
modify it, and LICM could hoist a read of the data out of a loop that
passes the descriptor to such a call.

An argument that is the address of a descriptor now also passes the data
that the descriptor describes. getCallModRef builds the source of that
data as getSource() does for a fir.box_addr of a fir.load of the
argument, and compares it with the source of the variable using the part
of alias() that compares the sources, which moves into aliasSources().
The intent of the dummy applies to the data as well.

Assisted-by: AI
DeltaFile
+192-0flang/test/Analysis/AliasAnalysis/modref-call-descriptor-argument.fir
+81-0flang/test/Transforms/licm-descriptor-argument.fir
+58-11flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
+17-0flang/include/flang/Optimizer/Analysis/AliasAnalysis.h
+348-114 files

LLVM/project 9893dee — flang/lib/Optimizer/Analysis AliasAnalysis.cpp, flang/test/Analysis/AliasAnalysis modref-call-no-symbol-lookups.fir modref-call-globals.f90

[flang] A call may access a saved local through another instance of its procedure (#244077)

`fir::AliasAnalysis::getModRef` assumed that a call to a Fortran
procedure cannot access a saved local variable other than through its
arguments, unless the variable is a TARGET or is used in an internal
procedure. That is wrong when the call may invoke the procedure that
owns the variable: all the instances of a procedure share its saved
local variables (F2023 8.5.16), so the other instance may read or write
the variable. For example, LICM hoisted the load of `x` out of the loop
below, and the program printed 0 instead of 6 at `-O1` and above:

```fortran
module m
contains
  recursive subroutine work(nested, total)
    logical, intent(in) :: nested
    integer, intent(out) :: total
    integer, save :: x
    integer :: i

    [62 lines not shown]
DeltaFile
+403-0flang/test/Analysis/AliasAnalysis/modref-call-saved-locals.fir
+93-0flang/test/Transforms/licm-saved-local.fir
+77-3flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
+44-2flang/test/Analysis/AliasAnalysis/modref-call-globals.f90
+6-4flang/test/Analysis/AliasAnalysis/modref-call-no-symbol-lookups.fir
+623-95 files

LLVM/project bd8b484 — llvm/lib/CodeGen/GlobalISel IRTranslator.cpp, llvm/test/CodeGen/AArch64 mops-dead-nzcv.ll

[GlobalISel] Use Info.size from getTgtMemIntrinsic for the memory type (#242433)

Handle every value of Info.size like SelectionDAGBuilder does, instead
of always using the size of memVT:
- An unknown size creates an unknown-size MachineMemOperand. Previously
      llvm.aarch64.mops.memset.tag was described as a 1-byte store.
- A known size that differs from memVT uses a scalar of that size. This
changes PowerPC, which reports a 31-byte access for llvm.ppc.vsx.lxvd2x,
      llvm.ppc.altivec.stvx and related intrinsics.
    - A size that matches memVT keeps the type of memVT.

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+38-0llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-unknown-size-memop.ll
+33-0llvm/test/CodeGen/PowerPC/GlobalISel/irtranslator-tgt-mem-intrinsic-size.ll
+16-3llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+1-1llvm/test/CodeGen/AArch64/mops-dead-nzcv.ll
+88-44 files

LLVM/project 9054099 — lld/MachO ConcatOutputSection.cpp InputFiles.cpp, lld/test/MachO arm64-thunk-unsorted-relocs.s

[lld][MachO] Fix branch extension thunks for ld -r inputs (#243818)

TextOutputSection::finalize() walked each section's relocations
backwards to visit its branches by ascending offset, asserting the
descending order compilers emit. Object files from ld -r do not follow
it, which failed the link with a misleading "thunk range overrun" error.

Sort the relocations of sections that are out of order while parsing
them, so that finalize() can rely on that order.
DeltaFile
+78-0lld/test/MachO/arm64-thunk-unsorted-relocs.s
+12-0lld/MachO/InputFiles.cpp
+2-5lld/MachO/ConcatOutputSection.cpp
+92-53 files

LLVM/project 1d9f44a — llvm/test/CodeGen/Mips dsp-vec-bitcast.ll

fixup! [Mips] Fix DSP bitcasts between v2i16 and v4i8
DeltaFile
+21-37llvm/test/CodeGen/Mips/dsp-vec-bitcast.ll
+21-371 files

LLVM/project c994aa8 — clang/docs ReleaseNotes.md, clang/include/clang/Basic DiagnosticParseKinds.td

[CUDA][clang] Remove parenthesized #pragma unroll warning (#244791)

nvcc accepts both `#pragma unroll N` and `#pragma unroll (N)` and
generates identical code, and the CUDA C++ Programming Guide
documents the parenthesized form.

The `-Wcuda-compat` warning matched pre-CUDA-8.0 `nvcc` behavior, when
the  unroll factor had to be a literal. CUDA 8.0 added support for integral
constant expressions, so the warning is obsolete.

Assisted-By Claude
DeltaFile
+48-0clang/test/Parser/pragma-unroll-cuda.cu
+0-13clang/test/Parser/warn-cuda-compat.cu
+7-0clang/docs/ReleaseNotes.md
+0-6clang/lib/Parse/ParsePragma.cpp
+0-5clang/include/clang/Basic/DiagnosticParseKinds.td
+55-245 files

LLVM/project ec61778 — mlir/lib/Dialect/Vector/IR VectorOps.cpp, mlir/test/Dialect/Vector canonicalize.mlir

[mlir][vector] Do not fold contiguous gather/scatter on non-unit strides

Assisted-by: Claude Opus 5.5
DeltaFile
+44-0mlir/test/Dialect/Vector/canonicalize.mlir
+12-2mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+56-22 files

LLVM/project 0ccd67c — mlir/include/mlir/Dialect/Vector/IR VectorOps.h, mlir/lib/Conversion/VectorToLLVM ConvertVectorToLLVM.cpp

[mlir][vector] Allow single-element strided load/store in LLVM lowering (#241579)

The verifier allows a non-unit stride in the most minor memref dim when
`vector.load`/`vector.store` accesses a single element. The LLVM
lowering still asserts unit stride, so this crashes
`-convert-vector-to-llvm`:

```mlir
func.func @f(%m: memref<4xf32, strided<[3]>>, %i: index) -> vector<1xf32> {
  %0 = vector.load %m[%i] : memref<4xf32, strided<[3]>>, vector<1xf32>
  return %0 : vector<1xf32>
}
```

This patch moves the verifier condition into
`vector::isValidLoadStoreMemRefLayout` and uses it in both places, so
they cannot diverge again.

Fixes #239720
DeltaFile
+58-0mlir/test/Conversion/VectorToLLVM/vector-load-store-to-llvm.mlir
+9-5mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+5-6mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
+5-0mlir/include/mlir/Dialect/Vector/IR/VectorOps.h
+77-114 files

OpenBSD/src JGFVPlO — sys/dev/pci/drm/amd/display/amdgpu_dm amdgpu_dm_trace.h

   drm/amd/display: remove duplicated prev_p_state_change_support assignment

   From Melissa Wen
   dc95f03eb15ce2ef5d5a2e84acd90788bf1ccba6 in linux-6.18.y/6.18.65
   11e8f72b09a6a3c0950b9558abd37559dd098698 in mainline linux
VersionDeltaFile
1.8+2-4sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
+2-41 files

OpenBSD/src qZ6qdVU — sys/dev/pci/drm/amd/display/amdgpu_dm amdgpu_dm_trace.h

   drm/amd/display: assign missing trace entry in amdgpu_dm_dc_clocks_state

   From Melissa Wen
   0b79819d925c9357bd9138e9c5f75b03c6fd5214 in linux-6.18.y/6.18.65
   ec167063dbf9fc66dc1364b6f9dd220c6742edeb in mainline linux
VersionDeltaFile
1.7+1-0sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
+1-01 files

OpenBSD/src jMZqnUX — sys/dev/pci/drm/amd/amdgpu amdgpu_userq_fence.c

   drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset

   From Jesse Zhang
   cef7ee11e45c54ac06710f0d990ecd7d4cac5ed2 in linux-6.18.y/6.18.65
   c7ae3b2043282da8de92bd925c8f6bb614633181 in mainline linux
VersionDeltaFile
1.8+5-2sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
+5-21 files

OpenBSD/src 3apWAwS — sys/dev/pci/drm/amd/amdgpu amdgpu_userq_fence.c

   drm/amdgpu/userq: use drm_exec in amdgpu_userq_fence_read_wptr

   From Sunil Khatri
   a645c6f241162fde8a42af19e3562c80d772fb51 in linux-6.18.y/6.18.65
   3aab50410653fe7eb35eb6f9c2b27e3549ab09e6 in mainline linux
VersionDeltaFile
1.7+27-30sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
+27-301 files

OpenBSD/src WW0Y8eq — sys/dev/pci/drm/amd/amdgpu amdgpu_userq_fence.c

   drm/amdgpu/userq: need to unref bo

   From David (Ming Qiang) Wu
   496f0c0c60ec62802b0f13b393871eb81b1d0869 in linux-6.18.y/6.18.65
   b665f29a2f93a266183dc8cd5d732f203157613b in mainline linux
VersionDeltaFile
1.6+1-0sys/dev/pci/drm/amd/amdgpu/amdgpu_userq_fence.c
+1-01 files

LLVM/project b36bb5e — llvm/test/MC/AMDGPU gfx13_asm_vop2.s gfx12_asm_vop2.s

[AMDGPU][AsmParser] Pre-commit tests for v_pk_fmac_f16 fp inline constants. NFC (#245422)

Add GFX11/GFX12/GFX13 MC tests for v_pk_fmac_f16 with fp literal tokens
that are f16 inline constants (0.5, -1.0), a non-inlinable fp value
(1.5), an integer literal (0x3800), and an explicit lit(0.5). The check
lines reflect current behavior, where 0.5 and -1.0 are encoded as 32-bit
literals.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+12-0llvm/test/MC/AMDGPU/gfx13_asm_vop2.s
+12-0llvm/test/MC/AMDGPU/gfx12_asm_vop2.s
+12-0llvm/test/MC/AMDGPU/gfx12_asm_vop2-fake16.s
+12-0llvm/test/MC/AMDGPU/gfx11_asm_vop2.s
+12-0llvm/test/MC/AMDGPU/gfx11_asm_vop2-fake16.s
+60-05 files

OpenBSD/src BLgP3ue — sys/dev/pci/drm/amd/amdgpu atom.c

   drm/amdgpu/atom: bound the VBIOS date, part number, version and build getters

   From Hari Mishal
   7c806bd9403535e8f7e8d266728fa82073e5f741 in linux-6.18.y/6.18.65
   aee05c455ad3e72df9a0591baf0b60da518800f3 in mainline linux
VersionDeltaFile
1.7+24-5sys/dev/pci/drm/amd/amdgpu/atom.c
+24-51 files

OpenBSD/ports 0i22KTY — sysutils/qobsd Makefile

   sysutils/qobsd: added GPL2 which is used for openbios' elfs

   Suggested by Morgan Aldridge
VersionDeltaFile
1.2+1-1sysutils/qobsd/Makefile
+1-11 files

FreeBSD/ports f91f289 — audio Makefile, audio/sound-firmware-cirrus pkg-descr distinfo

audio/sound-firmware-cirrus: New port

Firmware for the Cirrus Logic smart speaker amplifiers found behind the
HDA codec of some laptops: the DSP program (wmfw) and the per-amplifier
tuning files (bin) that the snd_cs35l54(4) driver downloads at attach.
The files come from linux-firmware and are installed as raw files under
/boot/firmware/cirrus/, where firmware(9) loads them on demand.

The cs35l54 flavor covers the CS35L54 platforms listed in
linux-firmware, such as the HP ZBook Ultra G1a.

Reviewed by:    manu, christos
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/ports/pulls/20
DeltaFile
+132-0audio/sound-firmware-cirrus/Makefile
+59-0audio/sound-firmware-cirrus/distinfo
+47-0audio/sound-firmware-cirrus/files/extract-fw-list.sh
+8-0audio/sound-firmware-cirrus/pkg-descr
+1-0audio/Makefile
+247-05 files

FreeBSD/src 49e8ec6 — secure/libexec/sftp-server Makefile, secure/usr.bin/scp Makefile

secure: Add ssh-sk-client to all consumers of libssh

These all failed to link with ld.bfd used by GCC due to
Fssh_sshsk_sign being an unresolved symbol.

Fixes:          65d8491719bb ("secure: Adapt Makefile to ssh-sk-client everywhere")
(cherry picked from commit a098111a28ed59e1ab1101ad09913f0235ebd28f)
DeltaFile
+1-1secure/usr.bin/sftp/Makefile
+1-1secure/usr.bin/scp/Makefile
+1-1secure/libexec/sftp-server/Makefile
+3-33 files

OpenBSD/src bDC4wNg — sys/dev/pci/drm/amd/amdgpu amdgpu_atombios.c atom.h

   drm/amdgpu: bounds check ATOM IIO table parsing

   From Lijo Lazar
   226a362f0dbb9046cf19082a9df99a0e6733a55e in linux-6.18.y/6.18.65
   be88697602238c3dcb47bbc2db1eef923f63e78b in mainline linux
VersionDeltaFile
1.6+20-5sys/dev/pci/drm/amd/amdgpu/atom.c
1.8+2-1sys/dev/pci/drm/amd/amdgpu/atom.h
1.13+1-1sys/dev/pci/drm/amd/amdgpu/amdgpu_atombios.c
+23-73 files

OpenBSD/src Zc4depi — sys/dev/pci/drm/amd/amdgpu atom.c

   drm/amdgpu: Print full vbios info

   From Lijo Lazar
   1aefcbe6f20e8aa9b5112aab2c2b5ab8cb0c7472 in linux-6.18.y/6.18.65
   4fd7b724a87a4051401ee2ed64c26c9249582040 in mainline linux
VersionDeltaFile
1.5+26-2sys/dev/pci/drm/amd/amdgpu/atom.c
+26-21 files

OpenBSD/src bGevocb — sys/dev/pci/drm/amd/amdgpu atom.c

   drm/amd: Add correct prefix for VBIOS message

   From Mario Limonciello
   f6008ac99237993362b96384cd3b944af5206d0f in linux-6.18.y/6.18.65
   e6c7ebeaba4080562e71a59a788ac90b41e09240 in mainline linux
VersionDeltaFile
1.4+1-1sys/dev/pci/drm/amd/amdgpu/atom.c
+1-11 files

LLVM/project dd88a5a — clang/lib/Format UnwrappedLineParser.h UnwrappedLineParser.cpp, clang/unittests/Format BracesInserterTest.cpp

[clang-format] Fix InsertBraces rebinding an else in a preprocessor branch (#239414)

Don't insert braces around a body ending in an `if` whose `else` may
appear in a preprocessor branch skipped in the current formatting pass.
Inserting those braces can attach the `else` to a different `if` or
leave it without a matching `if`.

Fixes #239332.
DeltaFile
+186-0clang/unittests/Format/BracesInserterTest.cpp
+107-1clang/lib/Format/UnwrappedLineParser.cpp
+4-0clang/lib/Format/UnwrappedLineParser.h
+297-13 files

OpenBSD/src oMrplhW — sys/dev/pci/drm/amd/pm/powerplay/hwmgr ppatomctrl.c

   drm/amd/pm: bound SCLK FCW range entries to the table size

   From Hari Mishal
   5ad40ed9d6888cc4828808cf49bdf58ec5f48290 in linux-6.18.y/6.18.65
   f35aa5c77f5fca20fc269d6221df19c7b96704a5 in mainline linux
VersionDeltaFile
1.10+3-0sys/dev/pci/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c
+3-01 files

FreeBSD/src f3d13e0 — tests/sys/fs/tarfs tarfs_test.sh

tarfs: tests: Increase timeout (again)

Bump the timeout value (a little more), to avoid cutoff on emulated
architectures on ci.freebsd.org.

Reported by:    Jenkins
Fixes:          47015e454661 ("tests: Increase timeout")
MFC after:      3 days

(cherry picked from commit a551b0524953cbfa4f1035c6d968623e64f4436a)
DeltaFile
+1-1tests/sys/fs/tarfs/tarfs_test.sh
+1-11 files

FreeBSD/src 8976206 — tests/sys/fs/tarfs tarfs_test.sh

tarfs: tests: Increase timeout (again 2)

Bump the timeout value (for the third time), to avoid cutoff on emulated
architectures on ci.freebsd.org.  One of the runners will take
considerably more time to complete this test.

Reported by:    Jenkins
Fixes:          a551b0524953 ("tarfs: tests: Increase timeout (again)")
MFC after:      3 days

(cherry picked from commit a4f0a60e05293f3f517324f3ebc41046a79a9feb)
DeltaFile
+1-1tests/sys/fs/tarfs/tarfs_test.sh
+1-11 files

FreeBSD/src b308cbd — tests/sys/netpfil/pf rules_counter.sh

pf tests: give rules_counter:4G more time

Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 8217075f9ecb12fa9a4cf746541b9d3e1dc57e79)
DeltaFile
+1-0tests/sys/netpfil/pf/rules_counter.sh
+1-01 files

FreeBSD/src b596b02 — tests/sys/fs/fusefs Makefile, tests/sys/fs/tarfs tarfs_test.sh

tests: Increase timeout

Bump the timeout value, to avoid cutoff on emulated architectures on
ci.freebsd.org.

Reported by:    Jenkins
Reviewed by:    ngie
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54550

(cherry picked from commit 47015e4546619151f9bff548a3758b72286d04ed)
DeltaFile
+1-1tests/sys/netpfil/pf/rules_counter.sh
+1-1tests/sys/mac/portacl/Makefile
+1-1tests/sys/kern/jailmeta.sh
+1-1tests/sys/geom/class/eli/reentrancy_test.sh
+1-1tests/sys/fs/tarfs/tarfs_test.sh
+1-1tests/sys/fs/fusefs/Makefile
+6-61 files not shown
+7-67 files

OpenBSD/src w5rA8sX — sys/dev/pci/drm/amd/display/dc/core dc.c dc_hw_sequencer.c, sys/dev/pci/drm/amd/display/dc/hwss hw_sequencer.h

   drm/amd/display: Reset DET of HUBPs without a plane before outstanding updates

   From Roman Li
   f7426011a30947397fd49cf6ac482efc782640aa in linux-6.18.y/6.18.65
   f3afbf7d832ab138655afc96bd42226775d03ce7 in mainline linux
VersionDeltaFile
1.16+32-0sys/dev/pci/drm/amd/display/dc/core/dc_hw_sequencer.c
1.8+5-1sys/dev/pci/drm/amd/display/dc/core/dc.c
1.5+3-0sys/dev/pci/drm/amd/display/dc/hwss/hw_sequencer.h
+40-13 files