FreeBSD/src 71c7235 — lib/libc/stdio vfwscanf.c, lib/libc/tests/stdio swscanf_test.c sscanf_test.c

stdio: Fix negated wchar scansets

We were recording the start of the scanset before checking if it began
with a caret.  We need to check for a caret first, then record whatever
comes next as the start of the scanset.

Note that scanf() did not have this bug, only wscanf(), but this adds
regression tests for both anyway.

MFC after:      1 week
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D62328
DeltaFile
+3-2lib/libc/stdio/vfwscanf.c
+5-0lib/libc/tests/stdio/swscanf_test.c
+5-0lib/libc/tests/stdio/sscanf_test.c
+13-23 files

LLVM/project 49e7295 — clang/docs ReleaseNotes.md, clang/lib/Parse ParsePragma.cpp

[clang] Fix crash on trailing comma in vectorize_width (#246804)

With `#pragma clang loop vectorize_width(4, )`, the token after the
comma is the end marker for the loop hint. The parser diagnoses the
missing argument, then lexes past the marker. Error recovery consumes
the following loop and crashes at the end of the file.

```text
Stack dump:
1.      <eof> parser at end of file
2.      <stdin>:1:10: parsing function body 'f'
3.      <stdin>:1:10: in compound statement ('{}')
```

Leave the end marker for the existing recovery path so parsing resumes
at the following loop. Clang now emits only the malformed hint error.

```text
<stdin>:2:40: error: vectorize_width loop hint malformed; use vectorize_width(X, fixed) or vectorize_width(X, scalable) where X is an integer, or vectorize_width('fixed' or 'scalable')

    [5 lines not shown]
DeltaFile
+11-10clang/lib/Parse/ParsePragma.cpp
+5-0clang/test/Parser/pragma-loop-vectorize.cpp
+2-0clang/docs/ReleaseNotes.md
+18-103 files

LLVM/project 11acd2e — llvm/test/CodeGen/AMDGPU/GlobalISel llvm.amdgcn.struct.tbuffer.load.f16.ll llvm.amdgcn.struct.tbuffer.load.ll

[AMDGPU][GlobalISel] Use v_cmpx/s_andn2_wrexec form in RegBankLegalize waterfall loops

Port the UseNewExecInstructions path from SIInstrInfo's waterfall emission
to RegBankLegalizeHelper::executeInWaterfallLoop. On subtargets with
no-sdst v_cmpx and s_andn2_wrexec, the loop now narrows exec with deferred
V_CMPX_EQ_*_nosdst_e32_term compares and computes the remaining lanes with
S_ANDN2 from an exec PHI, written back by S_MOV_term. SIOptimizeExecMasking
then folds the pair into s_and_not1_wrexec, matching SelectionDAG.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+552-290llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.s.buffer.load.ll
+214-228llvm/test/CodeGen/AMDGPU/GlobalISel/regbanklegalize-amdgcn.s.buffer.load.ll
+169-183llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.intersect_ray.ll
+120-120llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.s.buffer.load.ll
+134-76llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.tbuffer.load.ll
+126-72llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.tbuffer.load.f16.ll
+1,315-96942 files not shown
+2,624-2,22648 files

LLVM/project 7618206 — llvm/test/CodeGen/AArch64 sve-fixed-length-masked-expandloads.ll sve-interleaved-accesses.ll, llvm/test/CodeGen/AMDGPU constant-address-space-32bit-vmem.ll

Merge branch 'main' into users/arsenm/value-mapper/skip-identity-entries
DeltaFile
+688-788llvm/test/CodeGen/AArch64/sve-fixed-length-fp-extend-bf16.ll
+1,449-0llvm/test/CodeGen/RISCV/xqcilo-xqcilia-sfb-frame-index.ll
+413-668llvm/test/CodeGen/AArch64/sve-interleaved-accesses.ll
+477-544llvm/test/CodeGen/AArch64/sve-fixed-length-masked-expandloads.ll
+980-1llvm/test/CodeGen/RISCV/xqcilo-xqcilia-frame-index.ll
+880-55llvm/test/CodeGen/AMDGPU/constant-address-space-32bit-vmem.ll
+4,887-2,056758 files not shown
+30,729-6,269764 files

LLVM/project b2f0eea — llvm/docs/TableGen ProgRef.md, llvm/lib/TableGen TGLexer.cpp

TableGen: Add \x escape to string literals (#248201)

Accept \xHH in string literals, producing the character with the
hexadecimal value HH. This allows writing names that contain control
characters, such as the \01 prefix used to suppress symbol mangling. A
few edge cases in RuntimeLibcallsInfo need to do this (e.g., on Darwin
there is a function named "\01mcount").

Assisted-by: Claude
DeltaFile
+44-0llvm/test/TableGen/string-hex-escape.td
+7-0llvm/lib/TableGen/TGLexer.cpp
+4-1llvm/docs/TableGen/ProgRef.md
+1-0llvm/test/TableGen/Inputs/string-hex-escape-eof.td
+56-14 files

LLVM/project a37c00f — compiler-rt/lib/hwasan hwasan_platform_interceptors.h, compiler-rt/lib/sanitizer_common sanitizer_platform_interceptors.h sanitizer_common_interceptors.inc

[tsan] Intercept mremap on Linux to update shadow memory (#230707)

[tsan] Intercept mremap on Linux to update shadow memory

ThreadSanitizer intercepts `mmap`, `mmap64`, and `munmap`, but did not
intercept Linux `mremap`. When a mapping is relocated (`MREMAP_MAYMOVE`
/ `MREMAP_FIXED`), shrunk in-place, or expanded in-place via `mremap`,
TSan's shadow memory became out of sync with the process address space:
- Relocated mappings left stale shadow state at the unmapped old range
  (unless `MREMAP_DONTUNMAP` was set) and did not reset or initialize
  shadow memory for the destination range.
- In-place shrinks left stale shadow state on the unmapped trailing
  pages.
- In-place expansions did not initialize or reset shadow memory for the
  newly mapped pages.

Add a Linux `mremap` interceptor that calls `UnmapShadow` on unmapped
old pages and `MemoryRangeImitateWriteOrResetRange` on newly mapped or
expanded ranges.

    [7 lines not shown]
DeltaFile
+281-0compiler-rt/test/sanitizer_common/TestCases/Linux/mremap.cpp
+69-0compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
+37-0compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+3-0compiler-rt/lib/hwasan/hwasan_platform_interceptors.h
+1-0compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+391-05 files

LLVM/project b23db2c — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Fixes
DeltaFile
+9-8llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+9-81 files

LLVM/project 4448e74 — llvm/test/CodeGen/PISA asm-printer-special-globals.ll

Add asm-printer-special-globals.ll to test isIgnoredIntrinsicGlobal
DeltaFile
+48-0llvm/test/CodeGen/PISA/asm-printer-special-globals.ll
+48-01 files

LLVM/project b7d89f7 — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Add file headers
DeltaFile
+5-0llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+5-01 files

LLVM/project f2a564a — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA asm-printer-annotation-globals.ll

Remove the user scan and add a test
DeltaFile
+19-0llvm/test/CodeGen/PISA/asm-printer-annotation-globals.ll
+0-18llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+19-182 files

LLVM/project bd1e713 — llvm/test/CodeGen/PISA asm-printer-unsupported-vector-hint-fp128.ll

Add asm-printer-unsupported-vector-hint-fp128.ll test
DeltaFile
+11-0llvm/test/CodeGen/PISA/asm-printer-unsupported-vector-hint-fp128.ll
+11-01 files

LLVM/project 2775f18 — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Inline comparison into the assertion
DeltaFile
+3-3llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+3-31 files

LLVM/project ec8c848 — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Formatting fix
DeltaFile
+2-1llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+2-11 files

LLVM/project ec6b722 — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Document why AsmPrinter::emitGlobalConstant is not used
DeltaFile
+4-0llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+4-01 files

LLVM/project 3e11761 — llvm/test/CodeGen/PISA load.ll

Remove -verify-machineinstr
DeltaFile
+2-3llvm/test/CodeGen/PISA/load.ll
+2-31 files

LLVM/project 85e95df — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA asm-printer-fp-inline-asm.mir

Fix printing FP immediates
DeltaFile
+23-0llvm/test/CodeGen/PISA/asm-printer-fp-inline-asm.mir
+9-2llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+32-22 files

LLVM/project 048f97f — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA asm-printer-unusual-vector-global.ll

Add a test for reportFatalUsageError
DeltaFile
+8-0llvm/test/CodeGen/PISA/asm-printer-unusual-vector-global.ll
+2-3llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+10-32 files

LLVM/project 0384c50 — llvm/lib/Target/PISA CMakeLists.txt PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA unreachable.ll return.ll

Add PISA AsmPrinter

Add PISAAsmPrinter to complete the codegen pipeline with end-to-end code
emission.
DeltaFile
+933-0llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+352-0llvm/test/CodeGen/PISA/store.ll
+350-0llvm/test/CodeGen/PISA/load.ll
+37-0llvm/test/CodeGen/PISA/return.ll
+14-0llvm/test/CodeGen/PISA/unreachable.ll
+1-0llvm/lib/Target/PISA/CMakeLists.txt
+1,687-06 files

LLVM/project 953ebc9 — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA unreachable.ll store.ll

Fix issues raised in earlier PRs
DeltaFile
+111-93llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+11-0llvm/test/CodeGen/PISA/asm-printer-unsupported-vector-hint.ll
+3-3llvm/test/CodeGen/PISA/load.ll
+2-2llvm/test/CodeGen/PISA/unreachable.ll
+2-2llvm/test/CodeGen/PISA/store.ll
+2-2llvm/test/CodeGen/PISA/return.ll
+131-1026 files

LLVM/project 6a0b22c — llvm/lib/Target/AMDGPU AMDGPUInstCombineIntrinsic.cpp, llvm/test/Transforms/InstCombine/AMDGPU llvm.amdgcn.wmma.gfx1250.ll llvm.amdgcn.wmma.gfx1200.ll

[AMDGPU] Fold add into integer wmma accumulator

Integer wmma and swmmac wrap on overflow when clamp is off, so adding X
to the result is the same as adding X to the accumulator. Fold the add
when the accumulator is zero or both are constants. Because wmma is
convergent, the call is only moved to the add when both are in the same block.

```llvm
%d = call <8 x i32> @llvm.amdgcn.wmma.i32.16x16x16.iu8.v8i32.v2i32(i1 0, <2 x i32> %a, i1 0, <2 x i32> %b, <8 x i32> zeroinitializer, i1 0)
%r = add <8 x i32> %d, %x
  -->
%r = call <8 x i32> @llvm.amdgcn.wmma.i32.16x16x16.iu8.v8i32.v2i32(i1 0, <2 x i32> %a, i1 0, <2 x i32> %b, <8 x i32> %x, i1 0)
```
DeltaFile
+73-0llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.wmma.gfx1200.ll
+37-0llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.wmma.gfx1250.ll
+14-6llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+124-63 files

LLVM/project 63b30c9 — openmp/runtime CMakeLists.txt

[OpenMP] Detect atomic library requirements (#244783)

Check whether the atomic operations used by libomp link without
additional libraries. If not, retry with libatomic and add -latomic
only if that works. Warn if neither links. Skip the check for MSVC.

The test program uses __sync and __atomic builtins on 8, 16, 32 and
64-bit integers, like kmp_os.h does.

This replaces the unconditional -latomic for mips and mips64 and the
ppc-only check for __atomic_load_8. mips64 has native 64-bit atomics
and kmp_os.h only uses the __atomic builtins for 32-bit MIPS, so it
does not need libatomic.
DeltaFile
+38-11openmp/runtime/CMakeLists.txt
+38-111 files

LLVM/project 29c19a0 — llvm/lib/Target/Hexagon HexagonGlobalSchedulerV2.cpp, llvm/test/CodeGen/AMDGPU srem.ll load-global-i8.ll

Merge branch 'main' into users/gandhi56/amdgpu-gisel-waterfall-new-exec
DeltaFile
+4,445-4,498llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+3,141-3,182llvm/test/CodeGen/RISCV/clmul.ll
+2,597-2,922llvm/test/CodeGen/X86/vector-compress.ll
+0-5,394llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+0-5,274llvm/test/CodeGen/AMDGPU/srem.ll
+5,270-0llvm/lib/Target/Hexagon/HexagonGlobalSchedulerV2.cpp
+15,453-21,2708,162 files not shown
+351,251-228,6098,168 files

Linux/linux d06ce6f — drivers/vhost vhost.c

Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost

Pull vhost fix from Michael Tsirkin:
 "Another high priority bugfix. Working on more"

* tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
  vhost: reject used ring batches larger than the ring
  Revert "vhost: split out-of-order used ring batches at every wrap"
DeltaFile
+18-9drivers/vhost/vhost.c
+18-91 files

LLVM/project a285793 — lldb/source/Core PluginManager.cpp

Reword FIXME to be a bit more general
DeltaFile
+7-7lldb/source/Core/PluginManager.cpp
+7-71 files

LLVM/project 1369c6b — llvm/cmake/modules MLGOLower.cmake

[MLGO] Make EmitC Lowering Steps depend on MLIR binaries (#248286)

Otherwise when the MLIR binaries get updated, ninja doesn't think that
any of the inputs get changed so the model does not get recompiled.
DeltaFile
+2-2llvm/cmake/modules/MLGOLower.cmake
+2-21 files

FreeBSD/src ae6b73d — release/tools ec2-desktop.conf

EC2: Explicitly block root login via RDP

MFC after:      0 days
Security:       GHSA-3rww-h298-82rx
Sponsored by:   Amazon

(cherry picked from commit 2112d90be7a855d4c9f598409850d54583089de2)
DeltaFile
+3-0release/tools/ec2-desktop.conf
+3-01 files

LLVM/project f700893 — llvm/include/llvm/CodeGen SelectionDAG.h, llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp

[SelectionDAG] Avoid TokenFactor self-reference in memory ordering updates (#246859)

`makeEquivalentMemoryOrdering` can reuse an existing TokenFactor and
then temporarily make it reference itself while replacing the old chain.
Recursive CSE can collide with another TokenFactor and abort with "Node
is not in map!".

Leave the TokenFactor's own operand unchanged and replace only the other
uses of the old chain. The repeated-ordering unit test reproduces the
abort on the unmodified parent; both added tests pass with this fix,
without the X86 changes in #245000.

AI assistance was used for implementation, tests and analysis.
DeltaFile
+46-0llvm/unittests/CodeGen/SelectionDAGCSETest.cpp
+14-4llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+4-0llvm/include/llvm/CodeGen/SelectionDAG.h
+64-43 files

FreeBSD/src 2112d90 — release/tools ec2-desktop.conf

EC2: Explicitly block root login via RDP

MFC after:      0 days
Security:       GHSA-3rww-h298-82rx
Sponsored by:   Amazon
DeltaFile
+3-0release/tools/ec2-desktop.conf
+3-01 files

LLVM/project a6afd3c — lldb/source/Core PluginManager.cpp, lldb/source/Target Process.cpp

[LLDB] Halt the process before disabling an InstrumentationRuntime plugin

Disabling an InstrumentationRuntime plugin in a process destroys the
plugin instance. The plugins pass a raw `this` pointer as the baton for
their breakpoint callbacks so the plugin's breakpoint must not be hit
while the plugin is being destroyed.

`Process::SetInstrumentationRuntimeEnabled()` now refuses to disable a
plugin unless the process is stopped. When the `plugin disable` command
disables a plugin in a running process it halts the process, disables
the plugin and then resumes the process. The halt is not hidden so
clients see the process stop and then run again.

If the process happens to stop for another reason (e.g. a breakpoint)
at the same time as the halt it is still resumed. This is very unlikely
and is noted in a FIXME.

Enabling a plugin doesn't require the process to be stopped.

Assisted-by: Claude Code
DeltaFile
+60-0lldb/test/API/lang/BoundsSafety/soft_trap/TestBoundsSafetyInstrumentationPlugin.py
+58-0lldb/test/API/functionalities/ubsan/plugin_enable_disable/TestUbsanPluginEnableDisable.py
+39-3lldb/source/Core/PluginManager.cpp
+8-6lldb/source/Target/Process.cpp
+13-0lldb/test/API/lang/BoundsSafety/soft_trap/main.c
+12-0lldb/test/API/functionalities/ubsan/plugin_enable_disable/main.c
+190-91 files not shown
+195-127 files

LLVM/project 36bc27a — lldb/source/API SBThread.cpp

[LLDB] Check for the instrumentation runtime before getting stop info

In `SBThread::GetStopReasonExtendedBacktraces()` check whether the
process still has an instance of the instrumentation runtime before
getting the thread's stop info. The stop info isn't needed if the
runtime has been disabled.

Assisted-by: Claude Code
DeltaFile
+5-6lldb/source/API/SBThread.cpp
+5-61 files