LLVM/project 81a2a88 — clang/lib/Sema SemaOpenACC.cpp, clang/test/SemaOpenACC combined-construct.cpp

[OpenACC] Fix iterator-type lookup when kind is incomplete (#240424)

OpenACC loop needs to have a random access iterator, and does some
heroics to look into the 'iterator_category' to check for this. It ALSO
checks whether the type referred to in the iterator_category inherits
from std::random_access_iterator.

However, it was failing to make sure it was a definition before checked
for base classes, leading to an assert.

This patch adds that check, which will make a iterator category
incomplete type not attempt to check the 'base' class.

Fixes: #239962
DeltaFile
+22-0clang/test/SemaOpenACC/combined-construct.cpp
+4-3clang/lib/Sema/SemaOpenACC.cpp
+26-32 files

LLVM/project ecd1499 — clang/lib/CodeGen CGDebugInfo.cpp

[clang] Call getOrCreateFile() just once in AddStringLiteralDebugInfo() (#240382)

getOrCreateFile(Loc) is stored in a variable `File` 3 lines up,
so use that variable instead of calling the function again.

Mostly for code cleanliness, but for usb_ids_gen.cc (from #229808)
this is also a small (0.4%) reduction in retired instructions.

No behavior change.
DeltaFile
+2-2clang/lib/CodeGen/CGDebugInfo.cpp
+2-21 files

LLVM/project e20fe3b — llvm/test/CodeGen/ARM bf16-instructions.ll, llvm/test/CodeGen/Thumb2 bf16-instructions.ll

[ARM] Update working abs and neg tests in bf16-instructions.ll. NFC (#240441)

These appear to already be working, with and without +bf16.
DeltaFile
+46-8llvm/test/CodeGen/ARM/bf16-instructions.ll
+0-45llvm/test/CodeGen/Thumb2/bf16-instructions.ll
+46-532 files

LLVM/project 0f6dc59 — libcxx/utils/ci/lnt machines.json

[libcxx] Switch to llvm-premerge-linux-4-runners for benchmarking (#239065)

These are smaller so take up less resources when we only run benchmarks
on a single thread and they are also c2d vs n2/n2d which means that we
get exclusive cores rather than GCP overcommit.

Fixes #236840
DeltaFile
+1-1libcxx/utils/ci/lnt/machines.json
+1-11 files

LLVM/project b2b2297 — libc/src/__support/OSUtil/linux/syscall_wrappers copy_file_range.h, libc/src/unistd copy_file_range.h

[libc] Reland "Implement copy_file_range in unistd" (#240018)

This patch relands #236914 (reverted in #238956 / commit 53d0afa56861).

### Root Cause & Fix
The revert was caused by pre-commit CI failures where
`copy_file_range_test` encountered environments lacking
`copy_file_range` syscall emulation or running on container overlay
filesystems:
- Emulators return `EFAULT` or `ENOSYS` instead of `EBADF` on invalid
descriptors with `nullptr`.
- Container overlayfs / older kernels may return `EXDEV`, `ENOSYS`, or
`EOPNOTSUPP`.

### Changes in Reland
- Update `InvalidArgs` in `copy_file_range_test.cpp` to accept
`any_of(EBADF, EFAULT, ENOSYS)`.
- Gracefully handle `ENOSYS`, `EXDEV`, and `EOPNOTSUPP` in test copy
cases.

    [4 lines not shown]
DeltaFile
+143-0libc/test/src/unistd/copy_file_range_test.cpp
+53-0libc/src/__support/OSUtil/linux/syscall_wrappers/copy_file_range.h
+39-0libc/src/unistd/linux/copy_file_range.cpp
+29-0libc/src/unistd/copy_file_range.h
+20-0libc/test/src/unistd/CMakeLists.txt
+17-0libc/src/unistd/linux/CMakeLists.txt
+301-07 files not shown
+344-513 files

FreeBSD/ports 594b8e3 — sysutils/cfengine-masterfiles-devel Makefile distinfo

sysutils/cfengine-masterfiles-devel: Update to latest GH commit
DeltaFile
+3-3sysutils/cfengine-masterfiles-devel/distinfo
+2-2sysutils/cfengine-masterfiles-devel/Makefile
+5-52 files

FreeBSD/ports 0f59425 — sysutils/cfengine Makefile, sysutils/cfengine-masterfiles Makefile

sysutils/cfengind{,-masterfiles}: Add cfengine and masterfiles 329

Add cfengine and cfengine-masterfils 3.29 to the choices. Make 329
default.
DeltaFile
+2-2sysutils/cfengine/Makefile
+2-2sysutils/cfengine-masterfiles/Makefile
+4-42 files

FreeBSD/ports 70e9fb1 — sysutils/cfengine Makefile, sysutils/cfengine-masterfiles Makefile

sysutils/cfengine{,-masterfiles}: Remove references to deleted ports
DeltaFile
+1-1sysutils/cfengine/Makefile
+1-1sysutils/cfengine-masterfiles/Makefile
+2-22 files

FreeBSD/ports 3617a8c — sysutils/cfengine-devel pkg-plist Makefile

sysutils/cfengine-devel: Update to latest GH commit

Sort plist while we're here.
DeltaFile
+3-3sysutils/cfengine-devel/distinfo
+2-2sysutils/cfengine-devel/Makefile
+1-1sysutils/cfengine-devel/pkg-plist
+6-63 files

FreeBSD/ports 4fed4e1 — sysutils/cfengine-lts Makefile, sysutils/cfengine-masterfiles-lts Makefile

sysutils/cfengine-*lts: Remove expired version

cfengine324 and its masterfiles were removed by f2fb0bf93e69.
DeltaFile
+1-1sysutils/cfengine-masterfiles-lts/Makefile
+1-1sysutils/cfengine-lts/Makefile
+2-22 files

FreeBSD/ports 0701cdb — sysutils/cfengine-masterfiles329 Makefile pkg-plist, sysutils/cfengine329 Makefile pkg-plist

sysutils/cfengine*329: Add cfengine 3.29.0 ports

Welcome sysutils/cfengine329 to ports.

Welcome sysutils/cfengine-masterfiles329 to ports.
DeltaFile
+394-0sysutils/cfengine329/pkg-plist
+91-0sysutils/cfengine-masterfiles329/pkg-plist
+69-0sysutils/cfengine329/Makefile
+29-0sysutils/cfengine-masterfiles329/Makefile
+26-0sysutils/cfengine329/files/cf-monitord.in
+26-0sysutils/cfengine329/files/cf-serverd.in
+635-07 files not shown
+695-013 files

LLVM/project 5647ca3 — clang/lib/CodeGen BackendUtil.cpp, llvm/include/llvm/Passes RunCodeGen.h

[LTO][NFC] Use runCodeGenPipeline

This abstracts across the LegacyPM and the NewPM. We add a new optional
parameter to runCodeGenPipeline to take in a ModuleSummaryIndex to
properly handle pipeline setup.

Reviewers: aengelke, teresajohnson

Pull Request: https://github.com/llvm/llvm-project/pull/240252
DeltaFile
+10-28llvm/lib/LTO/LTOBackend.cpp
+19-4llvm/lib/Passes/RunCodeGen.cpp
+5-4clang/lib/CodeGen/BackendUtil.cpp
+2-0llvm/include/llvm/Passes/RunCodeGen.h
+36-364 files

LLVM/project 042f011 — llvm/lib/LTO ThinLTOCodeGenerator.cpp

[NFC][ThinLTO] Use runCodeGenPipeline abstraction (#240226)

This makes the code slightly simpler by moving to a canonical
abstraction and also abstracts between the LegacyPM/NewPM without
additional handling specific to ThinLTO.
DeltaFile
+5-9llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+5-91 files

FreeNAS/freenas 92d244b — src/middlewared/middlewared/plugins/pool_ pool.py, src/middlewared/middlewared/test/integration/assets pool.py

Properly calculate new spare partition size
DeltaFile
+34-1tests/api2/test_pool_spare.py
+22-12src/middlewared/middlewared/test/integration/assets/pool.py
+29-0src/middlewared/middlewared/plugins/pool_/pool.py
+85-133 files

FreeBSD/src 3ba68f5 — sys/arm64/arm64 pmap.c

arm64 pmap: combine L3C accessed bits in pmap_mincore()

The accessed bit may be set in only some of an L3C superpage's L3
PTEs.  However, when pmap_mincore() found an L3C mapping, it reported
the accessed state of the specified L3 PTE only, so mincore(2) could
fail to report MINCORE_REFERENCED for an L3C superpage that had been
accessed.  When the accessed bit is not set in the specified entry, use
pmap_load_l3c() to combine the accessed bits from all of the L3C
superpage's L3 PTEs.

Found by:       Claude Code (Opus 5.5)
MFC after:      1 week
DeltaFile
+10-1sys/arm64/arm64/pmap.c
+10-11 files

LLVM/project caf7fd4 — lldb/source/Core ThreadedCommunication.cpp, lldb/test/API/commands/process/detach-launched Makefile main.c

[lldb] Interrupt the read thread when stopping it

ThreadedCommunication::StopReadThread clears m_read_thread_enabled and
joins the read thread, which checks that flag only once its read
returns. When no data comes, the read returns only when it times out,
after five seconds.

Before lldb reports that a process it launched has exited or that it
detached from the process, it stops the read thread of the process's
terminal. A process that lldb detaches from usually keeps running, and
if it does not write to its terminal, the detach takes five seconds.
StopSTDIOMonitoring closes lldb's own descriptor for the secondary side
of the terminal first, but that ends the read only once the process has
closed its descriptors too. Meanwhile, debugserver or lldb-server exits,
and since the process is not detached yet, ProcessGDBRemote gives it an
exit status, so lldb reports that the process exited.

Interrupt the read after clearing the flag, as SynchronizeWithReadThread
does. A connection reports an interrupt only when no data is pending,

    [3 lines not shown]
DeltaFile
+27-0lldb/test/API/commands/process/detach-launched/TestDetachLaunched.py
+9-0lldb/test/API/commands/process/detach-launched/main.c
+5-0lldb/source/Core/ThreadedCommunication.cpp
+3-0lldb/test/API/commands/process/detach-launched/Makefile
+44-04 files

LLVM/project e5bf923 — lldb/source/Host/macosx/objcxx Host.mm, lldb/test/API/macosx/posix_spawn arm64e.c Makefile

Revert "[lldb] Honor the arm64 subtype when launching on Darwin (#239423)"

This reverts commit 3e7841ef1d6fc5f1aa71eadfa410a781a65329c3.
DeltaFile
+16-43lldb/test/API/macosx/posix_spawn/TestLaunchProcessPosixSpawn.py
+18-16lldb/tools/debugserver/source/MacOSX/MachProcess.mm
+1-6lldb/test/API/macosx/posix_spawn/Makefile
+0-5lldb/test/API/macosx/posix_spawn/arm64e.c
+1-2lldb/tools/debugserver/source/DNB.cpp
+1-0lldb/source/Host/macosx/objcxx/Host.mm
+37-726 files

LLVM/project 8b1d93b — .github/workflows libc-shared-tests.yml compiler-rt-libc-builtins-tests.yml

[libc] Enable baremetal Armv7-M pre-merge tests (#233498)

The tests are run using QEMU system emulation on x86 GitHub runners.
DeltaFile
+3-3.github/workflows/libc-overlay-tests.yml
+3-3.github/workflows/libc-fullbuild-tests.yml
+2-2.github/workflows/libc-shared-tests.yml
+2-2.github/workflows/compiler-rt-libc-builtins-tests.yml
+10-104 files

LLVM/project c39e503 — llvm/lib/Target/RISCV RISCVInstrInfoP.td, llvm/test/CodeGen/RISCV rvp-simd-32.ll rvp-simd-64.ll

[RISCV][P-ext] Add vector isel patterns to match merge from and/or/vnot. (#240223)

Assisted-by: Claude
DeltaFile
+54-2llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+24-0llvm/test/CodeGen/RISCV/rvp-simd-32.ll
+9-4llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+87-63 files

LLVM/project 74c9dd2 — clang/lib/CIR/CodeGen TargetInfo.cpp, clang/lib/CIR/CodeGen/Targets NVPTX.cpp

[CIR][SYCL] Fix null value emission in local addrspace for AMD and NVPTX targets (#237387)

Fixes null value emission bug in local address space for AMDGPU and
NVPTX targets. This is needed to port the following 2 tests from clang
CodeGenSYCL to CIR CodeGenSYCL:
- amd-address-space-conversions.cpp
- cuda-address-space-conversions.cpp
DeltaFile
+247-0clang/test/CIR/CodeGenSYCL/amd-address-space-conversions.cpp
+197-0clang/test/CIR/CodeGenSYCL/cuda-address-space-conversions.cpp
+25-0clang/lib/CIR/CodeGen/Targets/NVPTX.cpp
+15-0clang/lib/CIR/CodeGen/TargetInfo.cpp
+484-04 files

LLVM/project fe51913 — llvm/test/CodeGen/RISCV calling-conv-lp64.ll calling-conv-lp64e.ll

[RISCV] Fix dead code in calling-conv-lp64(e).ll. NFC (#240101)

Flagged in the review of #239884.
DeltaFile
+5-1llvm/test/CodeGen/RISCV/calling-conv-lp64e.ll
+3-1llvm/test/CodeGen/RISCV/calling-conv-lp64.ll
+8-22 files

LLVM/project 0cddc60 — llvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution max-backedge-taken-count-guard-info-operand-order.ll

[SCEV] Drop redundant umax when applying signed lower-bound guards. (#237779)

When applying a guard From s>= RHS with a non-negative constant RHS,
From u>= RHS holds as well. If From has already been rewritten to
umax(C, From) with C u<= RHS, the umax is redundant and can be dropped.

This avoids losing range information, as the range of umax(C, From) may
be much less precise than the range of From when using SMax.

More precise range enables additional unrolling end-to-end
https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/1923.

PR: https://github.com/llvm/llvm-project/pull/237779
DeltaFile
+187-0llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info-operand-order.ll
+11-1llvm/lib/Analysis/ScalarEvolution.cpp
+198-12 files

LLVM/project af5606d — llvm/lib/Target/RISCV RISCVOptWInstrs.cpp RISCVISelDAGToDAG.cpp, llvm/test/CodeGen/RISCV opt-w-instrs-p-ext.mir rvp-scalar-rv64.ll

[RISCV][P-ext] Add PseudoMERGE to hasAllNBitUsers. (#240219)

Assisted-by: Claude
DeltaFile
+32-0llvm/test/CodeGen/RISCV/rvp-scalar-rv64.ll
+28-0llvm/test/CodeGen/RISCV/opt-w-instrs-p-ext.mir
+1-0llvm/lib/Target/RISCV/RISCVOptWInstrs.cpp
+1-0llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+62-04 files

LLVM/project 0497136 — lldb/packages/Python/lldbsuite/test/make Makefile.rules, lldb/test/API/commands/dwim-print TestDWIMPrint.py

[lldb][test] Build PDB test inferiors with column info (#238604)

Clang emits columns into DWARF line tables by default but leaves them
out of `CodeView` unless `-gcolumn-info` is passed, so pdb test
inferiors have no columns.

This patch passes `-gcolumn-info` for `MAKE_PDB` builds.

Fixes `TestBreakOnCPP11Initializers`, `TestStepThroughTrampoline` and
`TestStructuredBinding` with PDB debug info.

rdar://191741281
DeltaFile
+1-1lldb/packages/Python/lldbsuite/test/make/Makefile.rules
+0-1lldb/test/API/lang/cpp/structured-binding/TestStructuredBinding.py
+0-1lldb/test/API/lang/cpp/step-through-trampoline/TestStepThroughTrampoline.py
+0-1lldb/test/API/lang/cpp/break-on-initializers/TestBreakOnCPP11Initializers.py
+0-1lldb/test/API/commands/dwim-print/TestDWIMPrint.py
+1-55 files

LLVM/project ea64f82 — clang/test/CodeGenHLSL/builtins normalize.hlsl distance.hlsl, clang/test/SemaHLSL/BuiltIns length-errors.hlsl distance-errors.hlsl

[HLSL] Support long vectors in normalize, length, and distance (#239434)

Fixes #224409
Fixes #224403
Fixes #224402
DeltaFile
+36-0clang/test/CodeGenHLSL/builtins/length.hlsl
+34-0clang/test/CodeGenHLSL/builtins/distance.hlsl
+26-0clang/test/CodeGenHLSL/builtins/normalize.hlsl
+13-0clang/test/SemaHLSL/BuiltIns/geometric-long-vector.hlsl
+2-8clang/test/SemaHLSL/BuiltIns/length-errors.hlsl
+2-8clang/test/SemaHLSL/BuiltIns/distance-errors.hlsl
+113-161 files not shown
+116-167 files

FreeBSD/src e67b4c8 — sys/dev/hwpmc hwpmc_mod.c

hwpmc: release a PMC whose ID could not be copied out

If copyout of the newly allocated PMC ID fails, the caller cannot use or
release the PMC. Release it in the kernel.

Reviewed by:    mhorne
MFC after:      3 days
Sponsored by:   Advanced Micro Devices, Inc.
Differential Revision:  https://reviews.freebsd.org/D60562

(cherry picked from commit e5a48c8e0dd026ba953cf401c4dec02f76078aa2)
DeltaFile
+6-0sys/dev/hwpmc/hwpmc_mod.c
+6-01 files

FreeBSD/src 0ab6ce9 — usr.sbin/pmc cmd_pmc_stat.c

pmc(8): zero-initialize the event descriptor in stat mode

cmd_pmc_stat allocated the event descriptor with malloc and then set
only some of its fields, so the rest held whatever was on the heap.
Use calloc() instead.

Reviewed by:    mhorne
MFC after:      3 days
Sponsored by:   AMD
Signed-off-by: Andre Silva <andasilv at amd.com>
Differential Revision:  https://reviews.freebsd.org/D59364

(cherry picked from commit a97914284c2e7a7dc330f4d93218e8d7f1e758b2)
DeltaFile
+1-1usr.sbin/pmc/cmd_pmc_stat.c
+1-11 files

LLVM/project 3929a8c — llvm/include/llvm/CodeGen SelectionDAGISel.h, llvm/lib/CodeGen/SelectionDAG SelectionDAGISel.cpp

[SelectionDAG] Add selectShiftAmountMask and use it for RISC-V (NFC) (#240214)

Many targets drop a shift-amount AND that keeps every bit the shift
reads, each with its own code. This moves RISC-V's version into
`SelectionDAGISel::selectShiftAmountMask` so other targets can share it.
X86 uses it next, for #199697.

The helper looks through one truncate and an AND whose constant, with
known-zero bits, keeps the low Log2(width) bits. It sets the output only
on success. It ignores other users of the AND, so each target decides
that.

RKSimon suggested a TableGen-level fix in #199697. This shares the C++
selector behind target ComplexPatterns instead.

RISC-V output does not change.

Assisted-by: Claude Opus 5.5
DeltaFile
+33-0llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+3-28llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+14-0llvm/include/llvm/CodeGen/SelectionDAGISel.h
+50-283 files

FreeBSD/src 494bc04 — usr.sbin/pmc cmd_pmc_stat.c

pmc(8): zero-initialize the event descriptor in stat mode

cmd_pmc_stat allocated the event descriptor with malloc and then set
only some of its fields, so the rest held whatever was on the heap.
Use calloc() instead.

Reviewed by:    mhorne
MFC after:      3 days
Sponsored by:   AMD
Signed-off-by: Andre Silva <andasilv at amd.com>
Differential Revision:  https://reviews.freebsd.org/D59364

(cherry picked from commit a97914284c2e7a7dc330f4d93218e8d7f1e758b2)
DeltaFile
+1-1usr.sbin/pmc/cmd_pmc_stat.c
+1-11 files

FreeBSD/src ebecf68 — sys/dev/hwpmc hwpmc_mod.c

hwpmc: release a PMC whose ID could not be copied out

If copyout of the newly allocated PMC ID fails, the caller cannot use or
release the PMC. Release it in the kernel.

Reviewed by:    mhorne
MFC after:      3 days
Sponsored by:   Advanced Micro Devices, Inc.
Differential Revision:  https://reviews.freebsd.org/D60562

(cherry picked from commit e5a48c8e0dd026ba953cf401c4dec02f76078aa2)
DeltaFile
+6-0sys/dev/hwpmc/hwpmc_mod.c
+6-01 files