LLVM/project 771bc0c — libc/cmake/modules LLVMLibCTestRules.cmake, libc/test/src/__support/regex CMakeLists.txt

[libc] Increase stack size in NVPTX matcher stress test (#244276)

Since #236569 landed, I've been seeing a GPU memory-access error while
running `matcher_test` (buildbot error
[here](https://lab.llvm.org/buildbot/#/builders/101/builds/47542)). The
new long-pattern cases exceed the test runner’s default 3 KiB device
stack.

This PR lets test-specific `ENV` entries override
`LIBOMPTARGET_STACK_SIZE` and gives `matcher_test` a 64 KiB stack to
prevent overflow.

Verified on a local GPU: the original 3 KiB setting reproduces the
memory-access error, while 64 KiB passes all 13 matcher tests.

Assisted-by: Devin
DeltaFile
+5-4libc/cmake/modules/LLVMLibCTestRules.cmake
+4-0libc/test/src/__support/regex/CMakeLists.txt
+9-42 files

LLVM/project dde4f59 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 prefetchi.ll

[X86] Drop instruction prefetch with unsupported operands in LowerPREFETCH (#225826)

Fixes #218236

The x86 `PREFETCHI` instruction set extension only supports instruction
read prefetch (`IsData = 0`, `RW = 0`) with `PREFETCHIT0` (locality 3)
or `PREFETCHIT1` (locality 2) hints in 64-bit mode.

Previously, `LowerPREFETCH` only checked `!IsData &&
!Subtarget.hasPREFETCHI()` before returning the unmodified `Op`. On
targets with `PREFETCHI` enabled (e.g., `znver5`, `graniterapids`), an
instruction prefetch with write intent (`RW = 1`), unsupported locality
(0 or 1), or in 32-bit mode was left unhandled, leading to SelectionDAG
aborts.

Assisted-by: Claude
DeltaFile
+57-0llvm/test/CodeGen/X86/prefetchi.ll
+8-3llvm/lib/Target/X86/X86ISelLowering.cpp
+65-32 files

LLVM/project ec2dfdc — libc/src/spawn posix_spawn_file_actions_addclose.cpp posix_spawn_file_actions_addopen.cpp, libc/test/src/spawn posix_spawn_file_actions_test.cpp

[libc] Copy the path in posix_spawn_file_actions_addopen (#239224)

POSIX says "The string described by path shall be copied by the
posix_spawn_file_actions_addopen() function", but we only stored the
pointer. If the caller reused or freed the buffer before calling
posix_spawn, the child would open whatever happened to be there at that
point. Our tests didn't notice because they only ever passed string
literals. Now they overwrite the buffer right after the call.

I'm allocating the path together with the action, which now ends with a
flexible array member. make_unique can't do variable-sized allocations,
so SpawnFileOpenAction gets a create() function, which works like
make_unique, but also takes the size of the path.

While in there:
- switch posix_spawn_file_actions_add{close,dup2} to make_unique too
- make add_action take a unique_ptr, so that the ownership transfer is
visible in its signature. It also checks that the action is trivially
destructible, which lets posix_spawn_file_actions_destroy free the

    [6 lines not shown]
DeltaFile
+55-9libc/src/spawn/file_actions.h
+25-2libc/test/src/spawn/posix_spawn_file_actions_test.cpp
+4-12libc/src/spawn/posix_spawn_file_actions_destroy.cpp
+12-4libc/src/spawn/CMakeLists.txt
+5-6libc/src/spawn/posix_spawn_file_actions_addopen.cpp
+4-6libc/src/spawn/posix_spawn_file_actions_addclose.cpp
+105-393 files not shown
+117-479 files

LLVM/project 8245300 — llvm/lib/Transforms/Scalar StructurizeCFG.cpp, llvm/test/CodeGen/AMDGPU loop-align-metadata.ll llc-pipeline.ll

[StructurizeCFG] Keep loop metadata

The pass replaces the latches of a loop with new backedges and dropped
their !llvm.loop metadata, so loop hints such as llvm.loop.align had no
effect on the restructured loops.

Record the loop IDs before the rewrite, recompute LoopInfo after it and
set them again with Loop::setLoopID. A loop that several old loops are
merged into gets none, and functions with irreducible control flow are
left as before.
DeltaFile
+48-6llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
+18-8llvm/test/Transforms/StructurizeCFG/loop-metadata.ll
+0-5llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
+2-0llvm/test/CodeGen/AMDGPU/loop-align-metadata.ll
+68-194 files

LLVM/project 8a87122 — llvm/lib/Transforms/Scalar StructurizeCFG.cpp

apply comments
DeltaFile
+10-7llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
+10-71 files

LLVM/project 6a4ef12 — llvm/test/CodeGen/AMDGPU loop-align-metadata.ll, llvm/test/Transforms/StructurizeCFG loop-metadata.ll

[NFC][StructurizeCFG] Add tests for loop metadata (#243014)

Assisted-By: Claude Code Opus 5.5
DeltaFile
+496-0llvm/test/Transforms/StructurizeCFG/loop-metadata.ll
+149-0llvm/test/CodeGen/AMDGPU/loop-align-metadata.ll
+645-02 files

LLVM/project 7115ec2 — llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/test/Transforms/InstCombine usub_sat_to_msb_mask.ll

[InstCombine] Check the select type in the usub.sat sign mask fold

`foldICmpUSubSatWithAndForMostSignificantBitCmp` replaces a select with an
`and` that has the type of the `usub.sat` operands. When the select has a
different type, the replacement hits the assertion "replaceAllUses of value
with new value of different type!".

This PR skips the fold in that case.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+19-0llvm/test/Transforms/InstCombine/usub_sat_to_msb_mask.ll
+5-0llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+24-02 files

LLVM/project 0416a3d — llvm/include/llvm/AsmParser LLParser.h, llvm/include/llvm/DWARFLinker/Classic DWARFLinker.h

[llvm] Remove unused private member variables (NFC) (#244121)

This patch removes unused private member variables across llvm/ that
are not referenced anywhere, including in constructor member
initializer lists.  This patch also removes a private type alias and
several #include directives that become unused as a result.

Note that every removed member variable is default-constructed,
uninitialized, or zero-initialized without side effects.

Assisted-by: Antigravity
DeltaFile
+0-5llvm/lib/Target/Lanai/LanaiMachineFunctionInfo.h
+0-5llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.h
+0-5llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFAArch64.h
+0-4llvm/lib/FileCheck/FileCheckImpl.h
+0-4llvm/include/llvm/DWARFLinker/Classic/DWARFLinker.h
+0-4llvm/include/llvm/AsmParser/LLParser.h
+0-2722 files not shown
+0-6728 files

LLVM/project 6d7ba25 — llvm/lib/Transforms/Scalar JumpThreading.cpp

Remove null check
DeltaFile
+1-1llvm/lib/Transforms/Scalar/JumpThreading.cpp
+1-11 files

LLVM/project 83c5b8a — llvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution add-like-or.ll

[SCEV] Drop samesign when removing a common addend in `SimplifyICmpOperands` (#244247)

When folding a common constant addend from both operands of a
comparison, ensure the `samesign` flag is dropped as well. The flag
describes the original `(K + A) pred (K + B)`, and since adding K may
change sign without necessarily wrapping (unless both additions are
nuw/nsw) the simplified operands may not have the same sign.
DeltaFile
+72-0llvm/test/Analysis/ScalarEvolution/add-like-or.ll
+9-5llvm/lib/Analysis/ScalarEvolution.cpp
+81-52 files

LLVM/project ace95aa — libc/hdr/types ns_class.h ns_sect.h, libc/include/llvm-libc-types ns_class.h ns_sect.h

[libc] Add ns_sect, ns_class, and ns_type to <arpa/nameser.h> (#244242)

This patch adds the __ns_sect (ns_sect), __ns_class (ns_class), and
__ns_type (ns_type) enums to <arpa/nameser.h>.

Assisted-by: Gemini
DeltaFile
+107-0libc/include/llvm-libc-types/ns_type.h
+29-0libc/include/llvm-libc-types/ns_class.h
+29-0libc/include/llvm-libc-types/ns_sect.h
+27-0libc/hdr/types/ns_class.h
+27-0libc/hdr/types/ns_sect.h
+27-0libc/hdr/types/ns_type.h
+246-04 files not shown
+280-110 files

LLVM/project 22207b7 — mlir/lib/Dialect/LLVMIR/IR LLVMDialect.cpp, mlir/test/Conversion/SCFToControlFlow convert-to-cfg.mlir

[mlir][SCFToControlFlow] Only propagate LLVM loop attributes (#243030)

Pursuant to comments in #238311, restrict LLVM's SCF-to-CF attribute
propagation to LoopAnnotationAttr. Stop forwarding unrelated loop hints
and unrelated LLVM valued attrs onto loop backedges.

Update regression test.
DeltaFile
+8-4mlir/test/Conversion/SCFToControlFlow/convert-to-cfg.mlir
+1-3mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+9-72 files

FreeBSD/ports f013995 — audio/maolan Makefile Makefile.crates, audio/maolan/files patch-cargo-crates_i24-2.3.5_src_repr.rs

audio/maolan: Update 0.4.1 => 0.4.2

Changelog:
https://github.com/maolan/maolan/releases/tag/0.4.2

PR:     300867
DeltaFile
+247-251audio/maolan/distinfo
+122-124audio/maolan/Makefile.crates
+0-29audio/maolan/files/patch-cargo-crates_i24-2.3.5_src_repr.rs
+1-1audio/maolan/Makefile
+370-4054 files

LLVM/project 624cd0c — clang/lib/Headers/hlsl hlsl_intrinsics.h hlsl_detail.h, clang/test/SemaHLSL bit-cast.hlsl

[HLSL][202x] move __detail::bit_cast to hlsl namespace (#244007)

Move HLSL's bit_cast templates out of the __detail namespace and into
the hlsl namespace.

Reland PR: #243257 

Assisted by Copilot GPT-6.1 Sol
DeltaFile
+18-17clang/lib/Headers/hlsl/hlsl_detail.h
+13-13clang/lib/Headers/hlsl/hlsl_intrinsics.h
+20-0clang/test/SemaHLSL/bit-cast.hlsl
+51-303 files

LLVM/project 30bb9f8 — llvm/lib/Transforms/Utils SimplifyCFG.cpp, llvm/test/Transforms/SimplifyCFG switch-to-select-two-case.ll

[SimplifyCFG] Pass assumption cache to switch-to-select (#244221)

Also refactored the argument order of `simplifySwitchDefaultBranch` for
consistency: pass assumption cache first, then data layout, everywhere.

Fixes #221695.
DeltaFile
+33-0llvm/test/Transforms/SimplifyCFG/switch-to-select-two-case.ll
+9-7llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+42-72 files

OPNSense/tools 92156e3 — config/26.7 make.conf

config: switch suricata and rspamd to vectorscan (#522)

Hyperscan 5.4.2 has no fat runtime on FreeBSD so our build was
pinned to core2.  Vectorscan selects SSE4.2, AVX2 and AVX-512
engines at runtime instead.
DeltaFile
+4-4config/26.7/make.conf
+4-41 files

LLVM/project 58a95d9 — llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp

[AMDGPU] Register async barrier warning option during parser initialization

Keep the warning flag in constant-initialized storage and register its
command-line option in LLVMInitializeAMDGPUAsmParser. This avoids a
file-scope cl::opt destructor rejected by -Werror=global-constructors
while retaining the default warning and explicit opt-out.
DeltaFile
+7-5llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+7-51 files

LLVM/project ba8baac — llvm/docs AMDGPUUsage.md, llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp

[AMDGPU] Warn about missing async barrier replay workarounds

Warn by default when assembly lacks the recognized EXEC-zero B8 replay
after an async barrier arrival. Keep recognition within a straight-line
assembly block and support targeted and general warning controls.

DeltaFile
+187-0llvm/test/MC/AMDGPU/async-barrier-replay-warning.s
+81-0llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+38-0llvm/test/MC/AMDGPU/async-barrier-replay-warning-vgpr-msb.s
+28-0llvm/docs/AMDGPUUsage.md
+27-0llvm/test/MC/AMDGPU/async-barrier-replay-warning-xnack.s
+24-0llvm/test/CodeGen/AMDGPU/async-barrier-replay-inline-asm.ll
+385-02 files not shown
+393-38 files

Linux/linux 8dac6df — fs/nfsd nfs3proc.c nfsproc.c

Merge tag 'nfsd-7.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux

Pull nfsd fix from Chuck Lever:

 - Unlock the correct parent directory after CREATE crosses a mount

* tag 'nfsd-7.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
  nfsd: unlock the locked parent after crossing a mount in CREATE
DeltaFile
+12-6fs/nfsd/nfsproc.c
+11-3fs/nfsd/nfs3proc.c
+23-92 files

LLVM/project 3ba2db1 — llvm/lib/CodeGen/SelectionDAG ScheduleDAGRRList.cpp

SelectionDAG: Track ScheduleDAGRRList live registers in a SparseSet (#244028)

Schedule() allocated and zeroed two arrays of getNumRegs() + 1
pointers for every block, 333 KB on AMDGPU, even though only a few
registers are live at once. Keep the live registers in a SparseSet
instead. This also stops CheckForLiveRegDefMasked from skipping the
last register.

radeonsi shader-db compile time: -1.8%
CTMark instructions:u, geomean: O3 -0.04%

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+135-100llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+135-1001 files

FreeBSD/ports 07ae16f — news/inn-current Makefile distinfo

news/inn-current: Update to 20261117
DeltaFile
+3-3news/inn-current/distinfo
+1-1news/inn-current/Makefile
+4-42 files

LLVM/project e57c226 — llvm/test/CodeGen/SystemZ int-cmp-56.mir foldmemop-vec-fusedfp.mir

SystemZ: Use inline regclass syntax in mir tests (#242453)

Also clean up unnecessary registers sections

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+83-215llvm/test/CodeGen/SystemZ/clear-liverange-spillreg.mir
+51-166llvm/test/CodeGen/SystemZ/RAbasic-invalid-LR-update.mir
+0-120llvm/test/CodeGen/SystemZ/foldmemop-vec-binops.mir
+36-73llvm/test/CodeGen/SystemZ/fp-conv-17.mir
+0-96llvm/test/CodeGen/SystemZ/foldmemop-vec-fusedfp.mir
+4-88llvm/test/CodeGen/SystemZ/int-cmp-56.mir
+174-75819 files not shown
+181-1,21525 files

LLVM/project af4d675 — llvm/test/CodeGen/AArch64/Atomics aarch64_be-atomicrmw-lscp.ll aarch64-atomicrmw-lscp.ll, llvm/test/CodeGen/AMDGPU amdgcn.bitcast.512bit.ll amdgcn.bitcast.960bit.ll

Merge main into users/mhalk/test/amdgpu-reserved-wwm-vgpr-regression

Resolve the conflict in rewrite-vgpr-mfma-to-agpr-reserved-wwm-vgpr.ll by
keeping this branch's version; #226213 only regenerated the old checks.

Assisted-by: Claude Opus 5.5
DeltaFile
+15,980-15,802llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+1,201-20,206utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+9,174-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomicrmw-lscp.ll
+8,819-0llvm/test/CodeGen/AArch64/Atomics/aarch64_be-atomicrmw-lscp.ll
+4,234-4,282llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+3,948-4,025llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+43,356-44,3159,271 files not shown
+502,207-276,4399,277 files

LLVM/project 1d1cd0e — llvm/lib/Target/SPIRV SPIRVNonSemanticDebugHandler.cpp, llvm/test/CodeGen/SPIRV/debug-info debug-typedef-void.ll

[SPIRV] Emit DebugTypedef with DebugInfoNone base for typedef void

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+29-0llvm/test/CodeGen/SPIRV/debug-info/debug-typedef-void.ll
+1-1llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.cpp
+30-12 files

LLVM/project bd1a84d — llvm/lib/Target/SPIRV SPIRVNonSemanticDebugHandler.h SPIRVNonSemanticDebugHandler.cpp

[SPIRV][NFC] Minor cleanup for NSDI type emission (#244204)

This is a NFC refactor for debug types that have no base type, such as
the pointee of `void *` or the base of `const void`.

Pointer, qualifier, enum and function-signature types now share one
helper that emits `DebugInfoNone` for the missing type, as they already
did.

`spirv-val` now accepts `DebugInfoNone` as a debug type operand
(https://github.com/KhronosGroup/SPIRV-Tools/issues/6744). The standard
might actually allow DebugInfoNone in all NSDI operands (see
https://github.com/KhronosGroup/SPIRV-Tools/issues/7025).

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+28-41llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.cpp
+6-12llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.h
+34-532 files

LLVM/project 58e0170 — llvm/lib/Target/SPIRV SPIRVNonSemanticDebugHandler.h SPIRVNonSemanticDebugHandler.cpp, llvm/test/CodeGen/SPIRV/debug-info debug-value-unsupported.ll debug-type-qualifier.ll

[SPIRV] Emit DebugTypeQualifier for const, volatile, restrict and atomic (#241784)

Lower `DW_TAG_const_type`, `DW_TAG_volatile_type`,
`DW_TAG_restrict_type` and `DW_TAG_atomic_type` to the
NonSemantic.Shader.DebugInfo.100
[DebugTypeQualifier](https://github.khronos.org/SPIRV-Registry/nonsemantic/NonSemantic.Shader.DebugInfo.html#DebugTypeQualifier)
instruction.
DeltaFile
+96-0llvm/test/CodeGen/SPIRV/debug-info/debug-value-qualified-constant.ll
+61-0llvm/test/CodeGen/SPIRV/debug-info/debug-type-qualifier.ll
+44-7llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.cpp
+13-12llvm/test/CodeGen/SPIRV/debug-info/debug-value-unsupported.ll
+9-0llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.h
+223-195 files

OPNSense/core c444c29 — src/opnsense/mvc/app/models/OPNsense/IDS IDS.xml

intrusion detection: pattern matcher "hs" is now provided by Vectorscan (#10953)

Suricata links against devel/vectorscan instead of devel/hyperscan
when built with the VECTORSCAN option.  The value stays "hs" since
this is what Suricata calls it.
DeltaFile
+1-1src/opnsense/mvc/app/models/OPNsense/IDS/IDS.xml
+1-11 files

OPNSense/core 11eb6bb — src/opnsense/mvc/app/library/OPNsense/Firewall SNatRule.php

firewall: fix resolving source NAT target network (#11031)
DeltaFile
+6-2src/opnsense/mvc/app/library/OPNsense/Firewall/SNatRule.php
+6-21 files

LLVM/project fd940c9 — llvm/include/llvm/CodeGen Analysis.h, llvm/lib/CodeGen Analysis.cpp

DAG: Move the atomicrmw to ISD opcode mapping into a helper

Add getAtomicRMWOpcode next to getICmpCondCode so the mapping can be
reused outside of SelectionDAGBuilder.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+53-0llvm/lib/CodeGen/Analysis.cpp
+1-43llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+3-0llvm/include/llvm/CodeGen/Analysis.h
+57-433 files

FreeBSD/ports ce55696 — x11/linux-nvidia-libs distinfo, x11/linux-nvidia-libs-devel distinfo

x11/nvidia-driver{-devel}, x11/nvidia-kmod{-devel}, x11/linux-nvidia-libs{-devel}, graphics/nvidia-drm*-kmod{-devel}, x11/nvidia-settings, x11/nvidia-xconfig: Update to 620.73.04

Update to latest Production Branch of drivers 620.73.04:
https://www.nvidia.com/en-us/drivers/details/285519/

Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/285520/

As this version is newer than exisitng New Feature Branch (NFB)
of drivers, update -devel variants to the same version, too.

PR:             300897
Differential Revision:  https://reviews.freebsd.org/D61744
DeltaFile
+3-3x11/nvidia-xconfig/distinfo
+3-3x11/nvidia-settings/distinfo
+3-3x11/nvidia-driver/distinfo
+3-3x11/nvidia-driver-devel/distinfo
+3-3x11/linux-nvidia-libs/distinfo
+3-3x11/linux-nvidia-libs-devel/distinfo
+18-1823 files not shown
+62-6229 files