LLVM/project 393bbd5llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/performance BUILD.gn, llvm/utils/gn/secondary/clang/lib/Analysis/Scalable BUILD.gn

[gn build] Port commits (#184454)

282a2b77c358
60eac414b794
6d82f143dee1
80a1cf4f8058
8a9049198d18
a171b8d4d523
f3e8508ac771

Move X86GenAsmMatcher into llvm/lib/Target/X86
DeltaFile
+10-0llvm/utils/gn/secondary/llvm/lib/Target/X86/BUILD.gn
+1-7llvm/utils/gn/secondary/llvm/lib/Target/X86/AsmParser/BUILD.gn
+5-1llvm/utils/gn/secondary/clang/lib/Analysis/Scalable/BUILD.gn
+1-4llvm/utils/gn/secondary/clang/unittests/DependencyScanning/BUILD.gn
+3-0llvm/utils/gn/secondary/clang/unittests/Analysis/Scalable/BUILD.gn
+1-0llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/performance/BUILD.gn
+21-122 files not shown
+23-128 files

LLVM/project 0c9734fllvm/docs LangRef.rst

[NFC] [doc] fix invalid comment syntax in IR (#184457)

DeltaFile
+1-1llvm/docs/LangRef.rst
+1-11 files

LLVM/project 87a4b36llvm/lib/Target/WebAssembly WebAssemblyISelLowering.cpp, llvm/test/CodeGen/WebAssembly simd-memcmp.ll

[WebAssembly] Use MVT::i32 instead of i1 in performAnyAllCombine (#183866)

The CombineSetCC helpers and performAnyAllCombine generate MVT::i1
results.
However MVT::i1 is an illegal type in WebAssembly, and this combiner can
run either before or after legalization. Directly creating the intrinsic
and negating its result using XOR instead of i1 and a NOT operation
avoids this problem.

Fixes #183842
DeltaFile
+28-0llvm/test/CodeGen/WebAssembly/simd-memcmp.ll
+8-9llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+36-92 files

FreeBSD/ports 20d1b49audio/ft2-clone distinfo Makefile

audio/ft2-clone: Update to 2.07
DeltaFile
+3-3audio/ft2-clone/distinfo
+1-1audio/ft2-clone/Makefile
+4-42 files

FreeBSD/src 4d876fcsys/dev/acpica acpi_spmc.c

acpi_spmc: fix revision check reading name as integer

In acpi_spmc_get_constraints_spec(), the revision of the device
constraint detail package was mistakenly read from
constraint_obj->Package.Elements[0], which is the device name
(a string), instead of from the detail sub-package's first element.

Move the initialisation of 'detail' before the revision check and
read the revision from detail->Package.Elements[0] as the comment
already states

Approved by:    obiwac
Differential Revision:  https://reviews.freebsd.org/D55639
Sponsored by:   Netflix
DeltaFile
+2-2sys/dev/acpica/acpi_spmc.c
+2-21 files

FreeBSD/ports 568fc0amisc/bibletime Makefile

misc/bibletime:  add NOT_FOR_ARCHS i386
DeltaFile
+3-0misc/bibletime/Makefile
+3-01 files

FreeBSD/src f268f95lib/libutil trimdomain.c, lib/libutil/tests trimdomain_test.c

libutil: avoid an out-of-bounds read in trimdomain(3)

memchr(3) will happily believe we've passed in a valid object, but
hostsize could easily exceed the bounds of fullhost.  Clamp it down to
the string size to be safe and avoid UB.  This plugs a potential
overread noted in the compat shim that was just added.

Reviewed by:    des
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54623
DeltaFile
+6-0lib/libutil/trimdomain.c
+3-1lib/libutil/tests/trimdomain_test.c
+9-12 files

FreeBSD/src 7e70589lib/libutil trimdomain.c trimdomain.3

libutil: take a size_t in trimdomain()

INT_MAX is already larger than a reasonable hostname might be, but
size_t makes some of this easier to reason about as we do arithmetic
with it.  This would maybe not be worth it if we had to bump the
soversion because of it, but libutil does symbol versioning now so we
can provide a compat shim.

While we're here, fix some inconsistencies in argument names in the
manpage.

Reviewed by:    des
Obtained from:  https://github.com/apple-oss-distributions/libutil
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54622
DeltaFile
+17-1lib/libutil/trimdomain.c
+4-4lib/libutil/trimdomain.3
+4-1lib/libutil/Symbol.map
+1-1lib/libutil/libutil.h
+26-74 files

NetBSD/pkgsrc A7mEzmmdoc CHANGES-2026

   doc: Updated net/deskflow to 1.26.0
VersionDeltaFile
1.1531+2-1doc/CHANGES-2026
+2-11 files

LLVM/project e71f327clang/include/clang/Options Options.td, clang/lib/Driver/ToolChains/Arch X86.cpp

[X86] support reserve r8~r15 on X86_64 (#180242)

Which is under discussion in
https://github.com/llvm/llvm-project/issues/179036

Add new options -ffixed_r{8-15} for clang X86 target, like option
"-ffixed_x" for RISCV/AArch64 target.
Also, add target-feature +reserve-r{8-15} for the X86 backend.

The registers which are specified reserved will not be used in
RegAlloc/CalleeSave. Then the reserved registers can be maintained by
user. It will be useful for the runtime/interpreter implementation.

Other registers are used in specific instructions or mechanism, so they
can't be reserved.
DeltaFile
+114-0llvm/test/CodeGen/X86/reserveRreg.ll
+114-0clang/test/Driver/x86_64-fixed-r-register.c
+60-0clang/lib/Driver/ToolChains/Arch/X86.cpp
+10-3clang/include/clang/Options/Options.td
+12-0llvm/lib/Target/X86/X86ISelLowering.cpp
+11-0llvm/lib/Target/X86/X86RegisterInfo.cpp
+321-35 files not shown
+356-411 files

FreeNAS/freenas 88adb18tests/unit test_filesystem_acl.py

Fix test
DeltaFile
+3-1tests/unit/test_filesystem_acl.py
+3-11 files

LLVM/project 1b633d6clang/docs ReleaseNotes.rst, clang/lib/Sema SemaChecking.cpp

[Clang] Permit floating point and pointer values in most atomic ops (#183843)

Summary:
We already support floating point arguments for the standard atomic
functions. LLVM supports these in most cases as well. This PR unifies
the handling and allows this in the cases that the LLVM IR supports.
DeltaFile
+16-11clang/lib/Sema/SemaChecking.cpp
+26-0clang/test/Sema/scoped-atomic-ops.c
+13-6clang/test/Sema/atomic-ops.c
+3-0clang/docs/ReleaseNotes.rst
+58-174 files

NetBSD/pkgsrc 0K6tiTaprint/zathura buildlink3.mk

   print/zathura: set BUILDLINK_API_DEPENDS.zathura>=2026.02.22

   We missed the API and ABI bump at version 0.5.8. The API and ABI versions
   are exposed to zathura plugins, so to be safe adjust the API version to
   match the latest update to zathura-2026.02.22.

   Discussed on tech-pkg.
VersionDeltaFile
1.33+2-3print/zathura/buildlink3.mk
+2-31 files

LLVM/project 28638f5lldb/include/lldb/Core Debugger.h, lldb/include/lldb/Target Process.h

[lldb] Remove Debugger::{FindTargetWithProcessID, FindTargetWithProcess} (#184446)

In #184259, Jim noticed that Debugger::FindTargetWithProcess and
Debugger::FindTargetWithProcessID are rather poorly designed APIs as
tehy allow code running in one Debugger to mess with Targets from
another Debugger. The only use is Process::SetProcessExitStatus which
isn't actually used.
DeltaFile
+0-30lldb/source/Target/Process.cpp
+0-28lldb/source/Core/Debugger.cpp
+0-16lldb/include/lldb/Target/Process.h
+0-4lldb/include/lldb/Core/Debugger.h
+0-784 files

LLVM/project f4e64celldb/source/Plugins/ABI/AArch64 ABIAArch64.cpp, lldb/source/Plugins/Process/Utility RegisterInfos_arm64.h RegisterInfos_arm64_sve.h

[lldb] AArch64 register 33 is not cpsr (#183860)

I have an unwind failure where the eh_frame for a
trap handler states that the caller's return address is in eh_frame
register 33, which lldb treats as cpsr.
https://github.com/ARM-software/abi-aa/blob/main/aadwarf64/aadwarf64.rst#dwarf-register-names
Register 33 is ELR_mode, which isn't defined as a register in any of the
AArch64 register definition files in lldb today, so I'm not adding it to
the header files.

rdar://170602999
DeltaFile
+17-11lldb/source/Plugins/Process/Utility/RegisterInfos_arm64.h
+5-5lldb/source/Plugins/Process/Utility/RegisterInfos_arm64_sve.h
+8-2lldb/source/Utility/ARM64_DWARF_Registers.h
+8-2lldb/source/Utility/ARM64_ehframe_Registers.h
+0-4lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp
+0-2lldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp
+38-261 files not shown
+39-277 files

Linux/linux 0031c06kernel/cgroup cpuset.c cgroup.c, kernel/sched isolation.c

Merge tag 'cgroup-for-7.0-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup

Pull cgroup fixes from Tejun Heo:

 - Fix circular locking dependency in cpuset partition code by
   deferring housekeeping_update() calls to a workqueue instead
   of calling them directly under cpus_read_lock

 - Fix null-ptr-deref in rebuild_sched_domains_cpuslocked() when
   generate_sched_domains() returns NULL due to kmalloc failure

 - Fix incorrect cpuset behavior for effective_xcpus in
   partition_xcpus_del() and cpuset_update_tasks_cpumask()
   in update_cpumasks_hier()

 - Fix race between task migration and cgroup iteration

* tag 'cgroup-for-7.0-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
  cgroup/cpuset: fix null-ptr-deref in rebuild_sched_domains_cpuslocked

    [9 lines not shown]
DeltaFile
+114-110tools/testing/selftests/cgroup/test_cpuset_prs.sh
+149-73kernel/cgroup/cpuset.c
+1-3kernel/time/timer_migration.c
+1-3kernel/sched/isolation.c
+1-0kernel/cgroup/cgroup.c
+266-1895 files

NetBSD/pkgsrc 7IiHqeqnet/tigervnc Makefile

   tigervnc: needs googletest

   tests/unit/gesturehandler.cxx:27:10: fatal error: gtest/gtest.h
VersionDeltaFile
1.86+2-1net/tigervnc/Makefile
+2-11 files

LLVM/project 685a65aclang-tools-extra Maintainers.rst

[clang-tidy] Add zeyi2 as maintainer (#183883)

I've been actively contributing to `clang-tidy` for the past 4 months,
reviewing PRs, [fixing
issues](https://github.com/pulls?q=is%3Apr+author%3Azeyi2+archived%3Afalse+user%3Allvm+is%3Aclosed+label%3Aclang-tidy+sort%3Aupdated-desc),
engaging in discourse discussions and building [new testing
tools](https://github.com/clang-tidy-infra/CTIT). I'm passionate about
and project and would like to volunteer as a maintainer to continue
supporting the project's growth :)
DeltaFile
+3-0clang-tools-extra/Maintainers.rst
+3-01 files

LLVM/project 50e3cc0clang/lib/Sema SemaARM.cpp, clang/test/Sema/AArch64 pcdphint-atomic-store.c

fixup! Ensure Context.getTypeSize() is only called after checking ValType->isIntegerType()
DeltaFile
+6-0clang/test/Sema/AArch64/pcdphint-atomic-store.c
+3-2clang/lib/Sema/SemaARM.cpp
+9-22 files

LLVM/project 9264159lldb/unittests/DAP TestBase.cpp TestBase.h

[lldb] Fix the GoogleTest teardown in the DAP unit tests (#184262)

Some of the DAP tests define a static method named `TeatUpTestSuite`
which is calling `SBDebugger::Terminate`. Besides the typo, the correct
method is `TearDownTestSuite`, which GoogleTest calls after running the
last test in the test suite.

When addressing this, I realized that currently you can't really call
Initialize and Terminate multiple times in the same process. This
depends on:

- https://github.com/llvm/llvm-project/pull/184259
- https://github.com/llvm/llvm-project/pull/184261
DeltaFile
+1-1lldb/unittests/DAP/TestBase.cpp
+1-1lldb/unittests/DAP/TestBase.h
+1-1lldb/unittests/DAP/VariablesTest.cpp
+3-33 files

Linux/linux 6a8dab0kernel/sched ext.c ext_idle.c, tools/sched_ext Kconfig README.md

Merge tag 'sched_ext-for-7.0-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext

Pull sched_ext fixes from Tejun Heo:

 - Fix starvation of scx_enable() under fair-class saturation by
   offloading the enable path to an RT kthread

 - Fix out-of-bounds access in idle mask initialization on systems with
   non-contiguous NUMA node IDs

 - Fix a preemption window during scheduler exit and a refcount
   underflow in cgroup init error path

 - Fix SCX_EFLAG_INITIALIZED being a no-op flag

 - Add READ_ONCE() annotations for KCSAN-clean lockless accesses and
   replace naked scx_root dereferences with container_of() in kobject
   callbacks


    [23 lines not shown]
DeltaFile
+83-18kernel/sched/ext.c
+61-0tools/sched_ext/Kconfig
+5-2tools/sched_ext/include/scx/compat.h
+0-6tools/sched_ext/README.md
+2-3kernel/sched/ext_idle.c
+2-2tools/testing/selftests/sched_ext/peek_dsq.bpf.c
+153-318 files not shown
+165-3614 files

LLVM/project 5b144c0clang/test/CodeGenOpenCL builtins-amdgcn-gfx1250-tensor-load-store.cl, llvm/lib/Target/AMDGPU MIMGInstructions.td SIInstrInfo.cpp

[AMDGPU] Add suffix _d4 to tensor load/store with 4 groups D#, NFC (#184176)

Rename TENSOR_LOAD_TO_LDS to TENSOR_LOAD_TO_LDS_d4;
  Rename TENSOR_STORE_FROM_LDS to TENSOR_STORE_FROM_LDS_d4;
Also rename function names in a couple of tests to reflect this change.
DeltaFile
+10-10llvm/test/CodeGen/AMDGPU/llvm.amdgcn.tensor.load.store.ll
+6-6llvm/lib/Target/AMDGPU/MIMGInstructions.td
+6-6llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+6-6llvm/test/CodeGen/AMDGPU/reg-coalescer-subreg-liveness.mir
+4-4clang/test/CodeGenOpenCL/builtins-amdgcn-gfx1250-tensor-load-store.cl
+3-3llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
+35-353 files not shown
+42-429 files

LLVM/project d47c8d0llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 pcdphint-atomic-store-diagnostic.ll

fixup! Move tests to llvm/test/Verifier
DeltaFile
+0-54llvm/test/CodeGen/AArch64/pcdphint-atomic-store-diagnostic.ll
+47-0llvm/test/Verifier/intrinsic-immarg.ll
+0-32llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+47-863 files

LLVM/project 06e352bclang/lib/Sema SemaARM.cpp, llvm/lib/Target/AArch64 AArch64ISelLowering.cpp AArch64ExpandPseudoInsts.cpp

fixup! Small fixes Kerry has suggested
DeltaFile
+112-40llvm/test/CodeGen/AArch64/pcdphint-atomic-store.ll
+7-11clang/lib/Sema/SemaARM.cpp
+7-9llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+1-1llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
+127-614 files

LLVM/project 62fe6f6clang/lib/Sema SemaARM.cpp, llvm/lib/Target/AArch64 AArch64InstrInfo.td AArch64InstrFormats.td

fixup! Address more helpful review comments from Kerry
DeltaFile
+160-0llvm/test/CodeGen/AArch64/pcdphint-atomic-store.ll
+4-4llvm/lib/Target/AArch64/AArch64InstrInfo.td
+0-5llvm/lib/Target/AArch64/AArch64InstrFormats.td
+1-4clang/lib/Sema/SemaARM.cpp
+165-134 files

LLVM/project 95d2e67clang/test/CodeGen arm_acle.c builtins-arm64.c, clang/test/Sema/AArch64 pcdphint-atomic-store.c

fixup! Fix more PR comments
DeltaFile
+19-9clang/test/Sema/AArch64/pcdphint-atomic-store.c
+8-6llvm/test/CodeGen/AArch64/pcdphint-atomic-store.ll
+10-0clang/test/CodeGen/arm_acle.c
+0-9llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+5-0clang/test/CodeGen/builtins-arm64.c
+0-4llvm/include/llvm/IR/IntrinsicsAArch64.td
+42-282 files not shown
+44-328 files

LLVM/project 7e0c35fclang/lib/CodeGen/TargetBuiltins ARM.cpp, llvm/lib/IR Verifier.cpp

fixup! More small optimisations Kerry spotted
DeltaFile
+7-12clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+2-3llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
+1-2llvm/lib/IR/Verifier.cpp
+10-173 files

LLVM/project 6606f14clang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/lib/Headers arm_acle.h

fixup! Address Carol's comments and fix git clang-format issues
DeltaFile
+27-0llvm/test/CodeGen/AArch64/pcdphint-atomic-store-diagnostic.ll
+20-0llvm/lib/IR/Verifier.cpp
+12-6clang/lib/Sema/SemaARM.cpp
+0-11clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+4-2clang/lib/Headers/arm_acle.h
+2-4llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+65-236 files

LLVM/project 37b40b9clang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/lib/Headers arm_acle.h

fixup! More small fixes
DeltaFile
+15-37clang/lib/Sema/SemaARM.cpp
+11-0clang/test/Sema/AArch64/pcdphint-atomic-store.c
+5-3clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+2-2clang/lib/Headers/arm_acle.h
+0-1clang/test/CodeGen/arm_acle.c
+33-435 files

LLVM/project 5313224clang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/lib/Sema SemaARM.cpp

fixup! Move code to `AArch64ExpandPseudoInsts` and `getTgtMemIntrinsic`

Move code to `AArch64ExpandPseudoInsts` and `getTgtMemIntrinsic`
and use tablegen pattern for intrinsic, plus other small review changes.
DeltaFile
+47-75llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+69-32llvm/test/CodeGen/AArch64/pcdphint-atomic-store.ll
+42-47clang/lib/Sema/SemaARM.cpp
+21-12llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
+10-12llvm/lib/Target/AArch64/AArch64InstrInfo.td
+17-5clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+206-1835 files not shown
+220-19211 files