LLVM/project bc2253aclang/include/clang/Driver ToolChain.h, clang/lib/Driver Driver.cpp ToolChain.cpp

clang: Add BoundArch argument to ComputeEffectiveClangTriple (#195955)

This will eventually be used to adjust the amdgpu triple
to use subarches.
DeltaFile
+5-4clang/include/clang/Driver/ToolChain.h
+4-4clang/lib/Driver/ToolChains/MSVC.cpp
+4-3clang/lib/Driver/Driver.cpp
+3-1clang/lib/Driver/ToolChain.cpp
+2-1clang/lib/Driver/ToolChains/Darwin.cpp
+2-1clang/lib/Driver/ToolChains/Linux.cpp
+20-145 files not shown
+26-1611 files

LLVM/project ca56fd6clang/lib/CIR/CodeGen CIRGenModule.cpp

[CIR] Use SymbolUserMap in applyReplacements to fix quadratic behavior (#195883)

applyReplacements() previously called replaceAllSymbolUses() for each
replacement, which walks the entire module every time — O(R × M) for R
replacements and M operations. For C++ programs with heavy template
instantiation (e.g., Eigen), this quadratic behavior dominated compile
time.

Replace the per-replacement module walk with a single SymbolUserMap
built once (O(M)), then use replaceAllUsesWith() which scopes each
replacement to only the actual user operations. The debug-only
verifyPointerTypeArgs helper is also updated to reuse the map.

Measured on Eigen's basicstuff.cpp (356 lines, heavy template
instantiation): compile time dropped from 20m29s to 1m2s (20x speedup).
CIR-to-classic ratio improved from 117x to 7.2x.

Made with [Cursor](https://cursor.com)

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+21-18clang/lib/CIR/CodeGen/CIRGenModule.cpp
+21-181 files

FreeBSD/ports ed2c61cscience/py-pymatgen distinfo Makefile, science/py-pymatgen/files patch-tests_analysis_interfaces_test__substrate__analyzer.py patch-tests_analysis_interfaces_test__coherent__interface.py

science/py-pymatgen: update 2026.3.23 → 2026.5.4
DeltaFile
+0-17science/py-pymatgen/files/patch-tests_analysis_interfaces_test__substrate__analyzer.py
+0-13science/py-pymatgen/files/patch-tests_analysis_interfaces_test__coherent__interface.py
+3-3science/py-pymatgen/distinfo
+2-3science/py-pymatgen/Makefile
+5-364 files

FreeBSD/ports acaca61science/dftd4 distinfo pkg-plist, science/py-dftd4 distinfo Makefile

science/{,py-}dftd4: update 4.1.0 → 4.1.1
DeltaFile
+3-3science/py-dftd4/distinfo
+3-3science/dftd4/distinfo
+1-2science/py-dftd4/Makefile
+1-1science/dftd4/pkg-plist
+1-1science/dftd4/Makefile
+9-105 files

LLVM/project 0fd6e65clang/lib/CIR/CodeGen CIRGenCall.cpp CIRGenBuiltin.cpp, clang/test/CIR/CodeGen pass-object-size.c

[CIR] Add pass_object_size hidden parameter support (#191482)

Emit the hidden `i64` parameter that
`__attribute__((pass_object_size(N)))` requires. At call sites the size
is constant-folded when possible (e.g. `&a` → 4) and falls back to
`cir.objsize` / `@llvm.objectsize` otherwise (e.g. VLAs).

On the callee side, `buildFunctionArgList` now creates an
`ImplicitParamDecl` for each annotated parameter so that
`emitBuiltinObjectSize` can load the passed size instead of re-computing
it.

This also fixes the `llvm_unreachable("NYI")` in
`RequiredArgs::getFromProtoWithExtraSlots` and the `errorNYI` in
`appendParameterTypes` / `arrangeFreeFunctionLikeCall` that fired
whenever `hasExtParameterInfos()` was true.

New test: `clang/test/CIR/CodeGen/pass-object-size.c` (CIR / LLVM /
OGCG).

    [5 lines not shown]
DeltaFile
+65-0clang/test/CIR/CodeGen/pass-object-size.c
+29-9clang/lib/CIR/CodeGen/CIRGenCall.cpp
+36-1clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
+13-2clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h
+8-2clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+5-0clang/lib/CIR/CodeGen/CIRGenFunction.h
+156-141 files not shown
+156-157 files

DragonFlyBSD/src a8e4a24sys/dev/apple/smc smc.c smc_io.c

driver: add Apple SMC driver ported from FreeBSD asmc

Port of the FreeBSD asmc(4) driver to DragonFlyBSD with the following
adaptations:
- kmalloc/kfree instead of malloc/free
- ksnprintf instead of snprintf
- lockmgr() 2-arg form (no whandle)
- taskqueue_start_threads() with ncpu=-1 arg
- sys/bus_resource.h instead of machine/resource.h
- contrib/dev/acpica paths for acpi.h/accommon.h
- u_long instead of rman_res_t

Driver layout: sys/dev/apple/smc/
  smc.c      - probe/attach/detach, module glue
  smc_io.c   - ISA port I/O backend
  smc_mmio.c - MMIO/T2 backend
  smc_sysctl.c - sysctl handlers for fans, temps, SMS, light sensors
  smc.h      - shared types, macros, prototypes
DeltaFile
+730-0sys/dev/apple/smc/smc.c
+676-0sys/dev/apple/smc/smc_io.c
+620-0sys/dev/apple/smc/smc_sysctl.c
+243-0sys/dev/apple/smc/smc.h
+222-0sys/dev/apple/smc/smc_mmio.c
+22-0sys/dev/apple/smc/debug.h
+2,513-02 files not shown
+2,522-08 files

LLVM/project aa29973llvm/test/CodeGen/X86 vector-reduce-smin.ll vector-reduce-smax.ll, llvm/test/tools/llvm-mca/AArch64/Cortex C1Premium-sve-instructions.s C1Premium-writeback.s

Merge branch 'users/ziqingluo/PR-174874942-2' into users/ziqingluo/PR-174874942-3
DeltaFile
+6,873-0llvm/test/tools/llvm-mca/AArch64/Cortex/C1Premium-sve-instructions.s
+2,940-1,458llvm/test/CodeGen/X86/vector-reduce-smin.ll
+2,936-1,457llvm/test/CodeGen/X86/vector-reduce-smax.ll
+2,695-1,364llvm/test/CodeGen/X86/vector-reduce-umax.ll
+2,646-1,359llvm/test/CodeGen/X86/vector-reduce-umin.ll
+3,979-0llvm/test/tools/llvm-mca/AArch64/Cortex/C1Premium-writeback.s
+22,069-5,6382,911 files not shown
+123,664-44,1432,917 files

FreeBSD/src 2fef18fusr.sbin/certctl certctl.c certctl.8, usr.sbin/certctl/tests certctl_test.sh

certctl: Unstickify (un)trusted certificates

Ever since certctl was rewritten in C, the rehash command has reingested
TRUSTDESTDIR / UNTRUSTDESTDIR in addition to TRUSTPATH / UNTRUSTPATH.
This seemed like a good idea at the time but was, in retrospect, a
mistake, as it means a (un)trusted certificate remains (un)trusted
forever (or at least until it expires) even if it is removed from
(UN)TRUSTPATH.  Among other issues, it causes ports QA to fail for any
port that either installs certificates or depends on a port that does.

Although this behavior was undocumented, the change may surprise users
who have added certificates manually, so update the manual page to point
it out and add prominent warnings to the trust and untrust commands.

PR:             290078
MFC after:      1 week
Reviewed by:    kevans, bcr
Differential Revision:  https://reviews.freebsd.org/D56617
DeltaFile
+52-29usr.sbin/certctl/certctl.c
+13-2usr.sbin/certctl/certctl.8
+2-1usr.sbin/certctl/tests/certctl_test.sh
+67-323 files

LLVM/project ffe836bmlir/lib/Dialect/XeGPU/Transforms XeGPUArrayLengthOptimization.cpp, mlir/test/Dialect/XeGPU array-len-op-unit.mlir

[MLIR][XeGPU] Support pointer/dynamic-memref sources in array-length optimization (#195872)

Extend `OptimizeCreateNdDescOp` to handle the two remaining
`create_nd_tdesc` source forms — `i64` pointer and dynamic-shape memref
— by forwarding the existing shape/strides operands through the general
builder. The memory region is unchanged by the rewrite; only the
`tensor_desc` view is narrowed along the FCD and tagged with
`array_length`.

Co-authored-by: Claude Opus 4.7 <noreply at anthropic.com>
DeltaFile
+50-0mlir/test/Dialect/XeGPU/array-len-op-unit.mlir
+14-11mlir/lib/Dialect/XeGPU/Transforms/XeGPUArrayLengthOptimization.cpp
+64-112 files

LLVM/project f54bfecllvm/test/CodeGen/X86 vector-reduce-smin.ll vector-reduce-smax.ll, llvm/test/tools/llvm-mca/AArch64/Cortex C1Premium-sve-instructions.s C1Premium-writeback.s

Merge remote-tracking branch 'origin' into users/ziqingluo/PR-174874942-2

 Conflicts:
        clang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevelFormat.h
        clang/include/clang/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageAnalysis.h
        clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevelFormat.cpp
        clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowAnalysis.cpp
        clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowExtractor.cpp
        clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowFormat.cpp
        clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageAnalysis.cpp
        clang/test/Analysis/Scalable/PointerFlow/tu-summary-serialization.test
DeltaFile
+6,873-0llvm/test/tools/llvm-mca/AArch64/Cortex/C1Premium-sve-instructions.s
+2,940-1,458llvm/test/CodeGen/X86/vector-reduce-smin.ll
+2,936-1,457llvm/test/CodeGen/X86/vector-reduce-smax.ll
+2,695-1,364llvm/test/CodeGen/X86/vector-reduce-umax.ll
+2,646-1,359llvm/test/CodeGen/X86/vector-reduce-umin.ll
+3,979-0llvm/test/tools/llvm-mca/AArch64/Cortex/C1Premium-writeback.s
+22,069-5,6382,911 files not shown
+123,664-44,1432,917 files

LLVM/project 8d9ee49clang/include/clang/Basic OffloadArch.h, clang/lib/CodeGen CGOpenMPRuntimeGPU.cpp

clang: Avoid dummy LAST entry in OffloadArch (#195952)

Use this as an alias of the final entry, rather than its
own enum value. This will allow writing covered switches
that don't need to handle this case. This matches how
other places with an end enum entry handle this.
DeltaFile
+2-2clang/include/clang/Basic/OffloadArch.h
+0-2clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
+2-42 files

NetBSD/pkgsrc p9L9MFLx11/ede DESCR

   ede: fix grammar in DESCR
VersionDeltaFile
1.4+2-2x11/ede/DESCR
+2-21 files

NetBSD/pkgsrc vulAm2Hx11/plasma6-kwin-x11 DESCR

   plasma6-kwin-x11: fix grammar in DESCR
VersionDeltaFile
1.2+1-1x11/plasma6-kwin-x11/DESCR
+1-11 files

LLVM/project 72fc0c3flang/test/Transforms/OpenACC acc-implicit-data.fir, mlir/include/mlir/Dialect/OpenACC OpenACCUtils.h

[mlir][acc] Improve implicit deviceptr detection for alias (#195934)

The ACCImplicitData automatically is able to use deviceptr clause when
variable is detected as being device data. However, it was missing check
for own `acc declare deviceptr` attribute.
DeltaFile
+47-0mlir/unittests/Dialect/OpenACC/OpenACCUtilsTest.cpp
+24-14mlir/lib/Dialect/OpenACC/Utils/OpenACCUtils.cpp
+31-0flang/test/Transforms/OpenACC/acc-implicit-data.fir
+28-0mlir/test/Dialect/OpenACC/acc-implicit-data.mlir
+15-8mlir/lib/Dialect/OpenACC/Transforms/ACCImplicitData.cpp
+3-1mlir/include/mlir/Dialect/OpenACC/OpenACCUtils.h
+148-236 files

DragonFlyBSD/src 8eea3a9sys/bus/pci pcidevs, sys/dev/disk/ahci ahci.c ahci_attach.c

ahci: add workarounds for Samsung Apple PCIe SSD (0x144d:0x1600)

Add ahci_samsung_apple_attach() following the VIA/ATI/NVidia named-function
pattern in ahci_devices[]. Sets AHCI_F_IGN_FR | AHCI_F_IGN_CR |
AHCI_F_FAST_COMRESET to work around the drive's non-compliant AHCI reset
behaviour on Apple PCIe.

AHCI_F_FAST_COMRESET reduces the three comreset stall sleeps from 1000 ms
each to 10 ms each, so the device comes up without hanging the AHCI init.
DeltaFile
+12-8sys/dev/disk/ahci/ahci.c
+17-1sys/dev/disk/ahci/ahci_attach.c
+4-0sys/bus/pci/pcidevs
+1-0sys/dev/disk/ahci/ahci.h
+34-94 files

LLVM/project 85cd500clang/include/clang/Driver ToolChain.h, clang/lib/Driver Driver.cpp ToolChain.cpp

clang: Add BoundArch argument to ComputeEffectiveClangTriple

This will eventually be used to adjust the amdgpu triple
to use subarches.
DeltaFile
+5-4clang/include/clang/Driver/ToolChain.h
+4-4clang/lib/Driver/ToolChains/MSVC.cpp
+4-3clang/lib/Driver/Driver.cpp
+3-1clang/lib/Driver/ToolChain.cpp
+2-1clang/lib/Driver/ToolChains/Darwin.cpp
+2-1clang/lib/Driver/ToolChains/Fuchsia.cpp
+20-145 files not shown
+26-1611 files

LLVM/project 8a86aablldb/include/lldb lldb-enumerations.h

[LLDB] Fix UBSan issue with ValueType enums. (#195540)

ValueTypeSyntheticMask, when bitwise OR'd with ValueType enums, produces
a value that is outside the official enum range for ValueTypes. This
causes UBSan errors, when UBSan is set to check enum values. E.g. If you
build LLDB with the Cmake flags

-DCMAKE_CXX_FLAGS="-fsanitize=enum -fsanitize-trap=enum"
-DCMAKE_C_FLAGS="-fsanitize=enum -fsanitize-trap=enum"

Then try to run the LLDB test TestScripedFrameProvider, it crashes with
a SIGILL from UBSan.

This change fixes that by pulling ValueTypeSyntheticMask into the
ValueType enums, expanding the valid enum range and making the bitwise
OR'd values valid.
DeltaFile
+1-1lldb/include/lldb/lldb-enumerations.h
+1-11 files

FreeBSD/ports dc0a16enet/unison253 Makefile

net/unison253: Fix PKGBASE value

Reported by:    antoine
Fixes:          b09b2548c2 net/unison253: Add port preserving new legacy version
DeltaFile
+5-3net/unison253/Makefile
+5-31 files

LLVM/project 843f8e2llvm/include/llvm/FileCheck FileCheck.h, llvm/unittests/FileCheck FileCheckTest.cpp

Drop FCDK_
DeltaFile
+25-23llvm/include/llvm/FileCheck/FileCheck.h
+4-4llvm/utils/FileCheck/FileCheck.cpp
+1-1llvm/unittests/FileCheck/FileCheckTest.cpp
+30-283 files

FreeBSD/ports b0bfd9dscience/py-scikit-learn Makefile

science/py-scikit-learn: Fix build with non-default Python version

PR:             294691
Approved by:    maintainer timeout
DeltaFile
+1-0science/py-scikit-learn/Makefile
+1-01 files

LLVM/project d4f4913mlir/lib/Dialect/SPIRV/IR SPIRVTypes.cpp

[mlir][spirv][nfc] Use function argument type in TypeCapabilityVisitor switch (#195918)

Addresses post commit review from #195796.
DeltaFile
+3-3mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp
+3-31 files

LLVM/project eeaa29cllvm/lib/CodeGen MachineFunction.cpp, llvm/lib/MC MCDwarf.cpp

[AMDGPU][MC] Replace shifted registers in CFI instructions

Change-Id: I0d99e9fe43ec3b6fecac20531119956dca2e4e5c
DeltaFile
+67-67llvm/test/CodeGen/AMDGPU/sgpr-spill-overlap-wwm-reserve.mir
+30-0llvm/lib/MC/MCDwarf.cpp
+15-15llvm/test/CodeGen/AMDGPU/dwarf-multi-register-use-crash.ll
+14-0llvm/lib/CodeGen/MachineFunction.cpp
+4-4llvm/test/CodeGen/AMDGPU/debug-frame.ll
+2-2llvm/test/CodeGen/AMDGPU/pei-vgpr-block-spill-csr.mir
+132-885 files not shown
+145-9011 files

NetBSD/src xVtoQYOsys/lib/libkern/arch/m68k Makefile.inc, sys/lib/libkern/arch/mips Makefile.inc

   revert the previous, it broke all the m68k, mips, and powerpc builds.

   i had fixed most of the broken ones already, and i think thorpej has
   fixed the sun2/sun3 builds that were remaining broken.
VersionDeltaFile
1.26+2-2sys/lib/libkern/arch/mips/Makefile.inc
1.36+2-2sys/lib/libkern/arch/powerpc/Makefile.inc
1.40+1-2sys/lib/libkern/arch/m68k/Makefile.inc
+5-63 files

LLVM/project cd98648llvm/utils/gn/build sync_source_dir.py, llvm/utils/gn/secondary/libcxx/include BUILD.gn

[gn] use action() instead of copy() for libcxx headers (#195948)

copy() doesn't handle file deletions. Use an action() that syncs the
output directory with the input list via a response file, removing files
that are no longer in the list.

This works because if files are added or removed, ninja's command line
tracking re-runs the script, and if contents of existing files change,
ninja's input mtime checking reruns it.

This also makes the remove_float_h workaround unnecessary.

Motivated by all the recent header removals in libc++.
DeltaFile
+59-0llvm/utils/gn/build/sync_source_dir.py
+20-16llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+79-162 files

LLVM/project 006bb5bclang/include/clang/Basic OffloadArch.h, clang/lib/CodeGen CGOpenMPRuntimeGPU.cpp

clang: Avoid dummy LAST entry in OffloadArch

Use this as an alias of the final entry, rather than its
own enum value. This will allow writing covered switches
that don't need to handle this case. This matches how
other places with an end enum entry handle this.
DeltaFile
+2-2clang/include/clang/Basic/OffloadArch.h
+0-2clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
+2-42 files

FreeNAS/freenas 49cce26src/middlewared/middlewared/plugins sysdataset.py

Fix
DeltaFile
+121-35src/middlewared/middlewared/plugins/sysdataset.py
+121-351 files

LLVM/project bc5f2c9llvm/docs AMDGPUUsage.rst, llvm/include/llvm/Support AMDGPUAddrSpace.h

[NFC][AMDGPU] Reserve address space 16

This is used in downstream.
DeltaFile
+2-0llvm/include/llvm/Support/AMDGPUAddrSpace.h
+1-0llvm/docs/AMDGPUUsage.rst
+3-02 files

LLVM/project c979debllvm/docs AMDGPUUsage.rst, llvm/include/llvm/Support AMDGPUAddrSpace.h

[NFC][AMDGPU] Reserve address space 16

This is used in downstream.
DeltaFile
+2-16llvm/include/llvm/Support/AMDGPUAddrSpace.h
+2-0llvm/docs/AMDGPUUsage.rst
+4-162 files

LLVM/project 8578a0aclang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow PointerFlowAnalysis.cpp PointerFlowFormat.cpp, clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage UnsafeBufferUsageAnalysis.cpp

[SSAF][WPA] Add "no-op" PointerFlow and UnsafeBufferUsage analysis (#193089)

Added 'no-op' PointerFlow and UnsafeBufferUsage analyses to convert
summary data into AnalysisResult, which DerivedAnalysis can then consume.

Also, refactored the PointerFlow and UnsafeBufferUsage serialization
for code sharing.

rdar://174874942

---------

Co-authored-by: Balázs Benics <benicsbalazs at gmail.com>
Co-authored-by: Jan Korous <jkorous at apple.com>
DeltaFile
+140-0clang/unittests/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowWPATest.cpp
+131-0clang/unittests/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageWPATest.cpp
+128-0clang/test/Analysis/Scalable/PointerFlow/Inputs/wpa-result.json
+122-0clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageAnalysis.cpp
+116-0clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowAnalysis.cpp
+58-38clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowFormat.cpp
+695-3827 files not shown
+1,229-6233 files

LLVM/project 1a8d5d4clang/include/clang/Analysis/Analyses/LifetimeSafety Origins.h, clang/lib/Analysis/LifetimeSafety Origins.cpp FactsGenerator.cpp

[LifetimeSafety] Track per-field origins for record types
DeltaFile
+237-4clang/test/Sema/warn-lifetime-safety.cpp
+82-8clang/lib/Analysis/LifetimeSafety/Origins.cpp
+59-24clang/include/clang/Analysis/Analyses/LifetimeSafety/Origins.h
+39-10clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+21-12clang/lib/Analysis/LifetimeSafety/LiveOrigins.cpp
+4-6clang/test/Sema/warn-lifetime-safety-dangling-field.cpp
+442-642 files not shown
+447-648 files