LLVM/project 503c01allvm/include/llvm/Transforms/Utils Local.h, llvm/lib/Transforms/Utils Local.cpp

 [DebugInfo][NFC] Refactor debug record salvage (#215971)

Split address and variable-location salvage into helpers so the ordering
and the kill fallback stay visible in salvageDebugInfoForDbgValues, with the
variable-location helper returning whether it processed the record.
Rename the locals and parameters the move touches to say what they hold, and use
isAddressOfVariable() for the two #dbg_declare tests, which is the same
comparison.

Replace the address helper's single-use template with DbgVariableRecord
and pass it the instruction the caller already checked, rather than
recovering it with a dyn_cast the caller's check already covers.

Add a unit test for the dbg.assign address path.

No regressions on check-llvm or check-lldb; ran about 80 auto-generated C tests with 225ish locations and no differences in DW_AT_location on aarch64 at O2.

Assisted by AI.
DeltaFile
+85-77llvm/lib/Transforms/Utils/Local.cpp
+68-0llvm/unittests/Transforms/Utils/LocalTest.cpp
+2-2llvm/include/llvm/Transforms/Utils/Local.h
+155-793 files

LLVM/project 59d202cclang/lib/CIR/CodeGen CIRGenFunction.h CIRGenFunction.cpp, clang/test/CIR/CodeGenSYCL kernel-caller-entry-point.cpp

[CIR][SYCL] Device kernel caller (#213771)

During device compilation, emit a SYCL kernel caller offload entry point
in
place of each function declared with the sycl_kernel_entry_point
attribute,
mirroring classic CodeGen's `CodeGenModule::EmitSYCLKernelCaller`.

Depends on #213728
DeltaFile
+113-0clang/lib/CIR/CodeGen/CIRGenSYCL.cpp
+63-8clang/test/CIR/CodeGenSYCL/kernel-caller-entry-point.cpp
+15-0clang/lib/CIR/CodeGen/CIRGenTypes.cpp
+7-3clang/lib/CIR/CodeGen/CIRGenModule.cpp
+6-3clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+8-0clang/lib/CIR/CodeGen/CIRGenFunction.h
+212-144 files not shown
+234-1410 files

FreeBSD/src 40367d1sys/dev/ixgbe ixgbe_vf.h ixgbe_mbx.h

ixv: Support E610 mailbox API 1.6

E610 VFs no longer report the actual PF link state and speed through
VFLINKS.  They can consequently report the default 10 Gb/s speed even
when the physical link uses another rate.

Negotiate mailbox API 1.6 on E610 and request the PF link state with its
three-dword operation.  Retain VFLINKS as the fallback when an older PF
rejects API 1.6.  Permit API 1.6 in the inherited xcast and queue
discovery helpers so negotiating the newer revision does not disable
existing operations.

Use GET_QUEUES to replace E610's one-queue fallback with the grant from
the PF.  The common path continues to use one iflib queue set per data
MSI-X vector and caps the result at two queue pairs.

Preserve mailbox transport errors so the driver can distinguish an
explicit PF NACK from a transient timeout.  A NACK means clear-to-send
state was lost and requires a VF reset.  Preserve the last confirmed

    [21 lines not shown]
DeltaFile
+59-5sys/dev/ixgbe/if_ixv.c
+60-0sys/dev/ixgbe/ixgbe_vf.c
+3-0sys/dev/ixgbe/ixgbe_mbx.h
+3-0sys/dev/ixgbe/ixgbe.h
+2-0sys/dev/ixgbe/ixgbe_vf.h
+127-55 files

FreeBSD/src 08c41a6sys/dev/ixgbe ixgbe_type.h if_ixv.c

ixv: Reject unsupported E610 Hyper-V VFs

E610 Hyper-V VFs use PCI configuration space communication instead of
the native PF/VF mailbox.  The generic E610 match currently attaches
native mailbox operations to those devices, and the imported Hyper-V
subdevice identifier is incorrect.

Correct the subdevice identifier to 0x00ff, as used by DPDK shared
ixgbe code, and reject that subtype until ixv has a complete Hyper-V
operations table.

MFC after:      1 week
Sponsored by:   BBOX.io
DeltaFile
+12-1sys/dev/ixgbe/if_ixv.c
+1-1sys/dev/ixgbe/ixgbe_type.h
+13-22 files

LLVM/project 1c66431clang/lib/ScalableStaticAnalysis/Analyses/UnsafeBufferUsage UnsafeBufferUsageAnalysis.cpp, clang/test/Analysis/Scalable/TypeConstrainedPointers unsafe-buffer-reachable-excludes-type-constrained-main.cpp

address final comments after approval
DeltaFile
+3-8clang/test/Analysis/Scalable/TypeConstrainedPointers/unsafe-buffer-reachable-excludes-type-constrained-main.cpp
+3-2clang/lib/ScalableStaticAnalysis/Analyses/UnsafeBufferUsage/UnsafeBufferUsageAnalysis.cpp
+6-102 files

LLVM/project cbb5626clang/lib/ScalableStaticAnalysis/Analyses/UnsafeBufferUsage UnsafeBufferUsageAnalysis.cpp, clang/test/Analysis/Scalable/PointerFlow multi-dim-pointer-flow-constraint.test multi-decl-contributor.cpp

[SSAF][UnsafeBufferAnalysis] Filter out type-constrained pointers from reachable unsafe pointers (#209354)

Integrate the TypeConstrainedPointers analysis results into
UnsafeBufferReachableAnalysis. The final result is filtered to exclude
type-constrained pointers.

The pointer flow graph is untouched. Removing type-constrained pointers
from the graph would introduce unsoundness.

Final step for rdar://179151541 and rdar://179151882
DeltaFile
+112-0clang/test/Analysis/Scalable/TypeConstrainedPointers/unsafe-buffer-reachable-excludes-type-constrained-new-delete.cpp
+68-18clang/lib/ScalableStaticAnalysis/Analyses/UnsafeBufferUsage/UnsafeBufferUsageAnalysis.cpp
+60-0clang/test/Analysis/Scalable/TypeConstrainedPointers/unsafe-buffer-reachable-excludes-type-constrained-main.cpp
+26-0clang/test/Analysis/Scalable/ssaf-analyzer/Outputs/empty-pairs.json
+1-1clang/test/Analysis/Scalable/PointerFlow/multi-dim-pointer-flow-constraint.test
+1-1clang/test/Analysis/Scalable/PointerFlow/multi-decl-contributor.cpp
+268-202 files not shown
+270-228 files

FreeBSD/src 288b271. aclocal.m4 configure, magic/Magdir atari

Vendor import of file 5.48.
DeltaFile
+419-140configure
+297-130aclocal.m4
+233-0magic/Magdir/atari
+115-77src/softmagic.c
+178-0src/landlock.c
+51-113src/apprentice.c
+1,293-46075 files not shown
+2,755-88981 files

FreeBSD/src bdb5618sys/amd64/amd64 sys_machdep.c, sys/amd64/linux linux_emul_md.h linux_pkru.c

linux: implement pkey_alloc, pkey_free and pkey_mprotect

Bridge the Linux memory protection key syscalls to FreeBSD's native
MPK support instead of returning ENOSYS. Modern Linux software
probes these at startup: Chromium-based browsers (found via
www/linux-brave) use protection keys for V8's heap and JIT
sandboxing, and glibc >= 2.27 exposes the full API.

pkey_alloc() allocates from a per-process bitmap kept in the process
emuldata (key 0 implicitly allocated, matching Linux's
mm_pkey_allocation_map; ENOSPC once keys 1..15 are exhausted or when
PKU is absent, as Linux returns on such hardware) and applies the
requested initial access rights to the calling thread's PKRU, located
in the XSAVE area via xsave_area_offset(). pkey_free() is
bookkeeping only: as on Linux, freeing neither untags pages nor
updates PKRU. pkey_mprotect() performs the protection change and
tags the range through amd64_pkru_update(), factored out of
sysarch(2)'s AMD64_SET_PKRU/AMD64_CLEAR_PKRU implementation so that
both share the same argument checking and map read lock

    [33 lines not shown]
DeltaFile
+226-0sys/amd64/linux/linux_pkru.c
+40-45sys/amd64/amd64/sys_machdep.c
+52-0sys/arm64/linux/linux_emul_md.c
+52-0sys/i386/linux/linux_emul_md.c
+38-0sys/compat/linux/linux_mmap.c
+35-0sys/amd64/linux/linux_emul_md.h
+443-4512 files not shown
+554-5018 files

NetBSD/src dtvjz5hsys/arch/mac68k/conf files.mac68k, sys/arch/mac68k/mac68k pmap_bootstrap.c

   Burn the boats; no more Utah pmap_bootstrap.c
VersionDeltaFile
1.117+2-2sys/arch/mac68k/mac68k/pmap_bootstrap.c
1.152+1-2sys/arch/mac68k/conf/files.mac68k
+3-42 files

NetBSD/src p2P5eLWsys/arch/next68k/conf files.next68k, sys/arch/next68k/next68k pmap_bootstrap.c

   Burn the boats; no more Utah pmap_bootstrap.c
VersionDeltaFile
1.61+2-2sys/arch/next68k/next68k/pmap_bootstrap.c
1.62+1-2sys/arch/next68k/conf/files.next68k
+3-42 files

NetBSD/src zAOFKSBsys/arch/virt68k/conf files.virt68k, sys/arch/virt68k/virt68k pmap_bootstrap.c

   Burn the boats; no more Utah pmap_bootstrap.c
VersionDeltaFile
1.17+2-2sys/arch/virt68k/virt68k/pmap_bootstrap.c
1.26+1-2sys/arch/virt68k/conf/files.virt68k
+3-42 files

NetBSD/src 32gXK0Jsys/arch/hp300/conf std.hp300, sys/arch/mvme68k/conf std.mvme68k

   The new pmap_68k is no longer experimental.
VersionDeltaFile
1.16+2-2sys/arch/x68k/conf/std.x68k
1.14+2-2sys/arch/hp300/conf/std.hp300
1.4+1-2sys/arch/virt68k/conf/std.virt68k
1.15+1-2sys/arch/next68k/conf/std.next68k
1.10+1-2sys/arch/news68k/conf/std.news68k
1.18+1-2sys/arch/mvme68k/conf/std.mvme68k
+8-122 files not shown
+10-168 files

FreeBSD/src 5b48968share/man/man9 pci.9, sys/dev/pci pcivar.h pci.c

pci: Export pcie_flr_supported()

Move the capability and quirk checks used by pcie_flr() into a public
side effect free helper.  This lets callers determine whether an FLR
can be attempted before quiescing a device or saving state.

The helper considers the advertised PCIe FLR capability and both the
enable and disable FLR quirks.

MFC after:      2 weeks
Sponsored by:   BBOX.io
DeltaFile
+24-7sys/dev/pci/pci.c
+14-1share/man/man9/pci.9
+1-0sys/dev/pci/pcivar.h
+39-83 files

HardenedBSD/src 36cde1dlibexec/rc rc.conf, sys/compat/linuxkpi/common/include/kunit test-bug.h

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+12-0sys/compat/linuxkpi/common/include/kunit/test-bug.h
+3-1sys/compat/linuxkpi/common/include/linux/pm_qos.h
+3-1sys/compat/linuxkpi/common/include/linux/kobject.h
+1-1libexec/rc/rc.conf
+1-0sys/compat/linuxkpi/common/include/linux/mm.h
+1-0sys/compat/linuxkpi/common/include/linux/gfp.h
+21-34 files not shown
+22-310 files

HardenedBSD/src c00021alibexec/rc rc.conf, sys/compat/linuxkpi/common/include/kunit test-bug.h

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+12-0sys/compat/linuxkpi/common/include/kunit/test-bug.h
+3-1sys/compat/linuxkpi/common/include/linux/pm_qos.h
+3-1sys/compat/linuxkpi/common/include/linux/kobject.h
+1-1libexec/rc/rc.conf
+1-0sys/compat/linuxkpi/common/include/linux/mm.h
+1-0sys/compat/linuxkpi/common/include/linux/gfp.h
+21-34 files not shown
+22-310 files

LLVM/project 16d1129llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/lib/Support APFloat.cpp

[APFloat][SelectionDAG] Support Float8E5M3FNU in convert.{to,from}.arbitrary.fp

Float8E5M3FNU was already accepted by the IR verifier, because
isValidArbitraryFPFormat is defined in terms of
getArbitraryFPFormatSizeInBits and that table covers it. It was missing
from getArbitraryFPSemantics, so SelectionDAGBuilder rejected
it with "not implemented format" and the verifier-clean IR failed to
compile. Add the mapping and the corresponding entries in the
expandCONVERT_{TO,FROM}_ARBITRARY_FP format allowlists.

Unlike every other format the expansions handle so far, Float8E5M3FNU is
unsigned: it has no sign bit, so all 8 bits go to a 5-bit exponent and a
3-bit significand.

Since an unsigned format cannot represent a negative value, a negative
input now saturates to zero when the saturate flag is set, and is poison
otherwise. -0.0 is excluded from that and still converts to +0, and the
check is ordered before the NaN case so a negative NaN still produces the
NaN encoding. APFloat treats constructing a negative value in an unsigned

    [3 lines not shown]
DeltaFile
+263-0llvm/test/CodeGen/AMDGPU/float-to-arbitrary-fp-e5m3fnu.ll
+189-0llvm/test/CodeGen/X86/float-to-arbitrary-fp.ll
+37-11llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+2-2llvm/lib/Support/APFloat.cpp
+2-1llvm/unittests/ADT/APFloatTest.cpp
+493-145 files

LLVM/project ca01779llvm/unittests/ADT APFloatTest.cpp

[APFloat][NFC] Add unit test coverage for `getArbitraryFPSemantics` (#216501)

`isValidArbitraryFPFormat` and `getArbitraryFPFormatSizeInBits` have
unit tests, but `getArbitraryFPSemantics`, the mapping the conversion
intrinsics actually lower through, had none. Cover the formats it
supports, the valid formats it does not support yet, and invalid format
strings, and check that the two tables agree on the size of every format
with lowerable semantics.

Also add the missing Float8E5M3FNU case to the
`getArbitraryFPFormatSizeInBits` test.
DeltaFile
+45-0llvm/unittests/ADT/APFloatTest.cpp
+45-01 files

FreeBSD/ports 9056520graphics/glfw Makefile distinfo, graphics/glfw/files patch-tests_empty.c

graphics/glfw: Update 3.4 => 3.5.1

News:
https://www.glfw.org/docs/3.5/news.html

Changelog:
https://github.com/glfw/glfw/releases/tag/3.5.1
https://www.glfw.org/changelog.html

Sponsored by:   UNIS Labs
DeltaFile
+49-31graphics/glfw/distinfo
+26-18graphics/glfw/Makefile
+0-10graphics/glfw/files/patch-tests_empty.c
+75-593 files

HardenedBSD/ports 9056520graphics/glfw Makefile distinfo, graphics/glfw/files patch-tests_empty.c

graphics/glfw: Update 3.4 => 3.5.1

News:
https://www.glfw.org/docs/3.5/news.html

Changelog:
https://github.com/glfw/glfw/releases/tag/3.5.1
https://www.glfw.org/changelog.html

Sponsored by:   UNIS Labs
DeltaFile
+49-31graphics/glfw/distinfo
+26-18graphics/glfw/Makefile
+0-10graphics/glfw/files/patch-tests_empty.c
+75-593 files

LLVM/project 2393da9llvm/lib/Target/AArch64/GISel AArch64PostLegalizerLowering.cpp, llvm/test/CodeGen/AArch64/GlobalISel arm64-atomic.ll

[AArch64][GlobalISel] Do not create atomic truncstore (#216522)

After #213935 the i64->i32 truncstore was failing to create a COPY
correctly.
We do not have tablegen patterns, so mirror what SDAG does and do not
create
atomic truncstore.
DeltaFile
+2,202-1,876llvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic.ll
+2-0llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp
+2,204-1,8762 files

LLVM/project 86502ddllvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 reduction-vals-used-as-load-indices.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+27-30llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+36-19llvm/test/Transforms/SLPVectorizer/X86/reduction-vals-used-as-load-indices.ll
+63-492 files

NetBSD/pkgsrc sJEGep5www/ijb DESCR Makefile

   www/ijb: Adjust HOMEPAGE and MASTER_SITES
VersionDeltaFile
1.12+3-3www/ijb/Makefile
1.2+2-0www/ijb/DESCR
+5-32 files

LLVM/project b8afe9fllvm/test/Transforms/SLPVectorizer/X86 reduction-vals-used-as-load-indices.ll

[SLP][NFC]Add a test with non-profitable vectorization for GEPs external users, NFC



Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/216518
DeltaFile
+202-0llvm/test/Transforms/SLPVectorizer/X86/reduction-vals-used-as-load-indices.ll
+202-01 files

LLVM/project e1ece3dclang/test/CodeGen/Mips variadic-aggregate.c

[MIPS][NFC] test mips variadic aggregate handling (#216509)

mips64 has some bugs here that I'll address in a followup. The problem
is that we get `inreg {float}` items in the variable argument list. That
breaks for aggregates like `_Complex long double` or just `struct { long
double a; b }`.
DeltaFile
+2,162-0clang/test/CodeGen/Mips/variadic-aggregate.c
+2,162-01 files

FreeBSD/ports 18896c1textproc/cgrep Makefile.cabal Makefile, textproc/cgrep/files patch-__cabal__deps_rawfilepath-1.1.0_cbits_runProcess.c

textproc/cgrep: Update 8.1.0 => 9.2.3, switch GHC 9.8 => 9.12

Approved by:            lwhsu@ (maintainer)
Approved by:            db@, yuri@ (Mentors, implicit)
Differential Revision:  https://reviews.freebsd.org/D58846
DeltaFile
+165-193textproc/cgrep/distinfo
+1-81textproc/cgrep/Makefile
+79-0textproc/cgrep/Makefile.cabal
+0-11textproc/cgrep/files/patch-__cabal__deps_rawfilepath-1.1.0_cbits_runProcess.c
+245-2854 files

HardenedBSD/ports 18896c1textproc/cgrep Makefile.cabal Makefile, textproc/cgrep/files patch-__cabal__deps_rawfilepath-1.1.0_cbits_runProcess.c

textproc/cgrep: Update 8.1.0 => 9.2.3, switch GHC 9.8 => 9.12

Approved by:            lwhsu@ (maintainer)
Approved by:            db@, yuri@ (Mentors, implicit)
Differential Revision:  https://reviews.freebsd.org/D58846
DeltaFile
+165-193textproc/cgrep/distinfo
+1-81textproc/cgrep/Makefile
+79-0textproc/cgrep/Makefile.cabal
+0-11textproc/cgrep/files/patch-__cabal__deps_rawfilepath-1.1.0_cbits_runProcess.c
+245-2854 files

LLVM/project 85cffe6llvm/lib/Target/AMDGPU AMDGPUInstructionSelector.cpp

AMDGPU: Use m_GTrunc in selector def check (#216511)

Prefer mi_match over raw getVRegDef + opcode checks.
DeltaFile
+1-1llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+1-11 files

FreeBSD/ports decf4f8comms/fldigi Makefile distinfo

comms/fldigi: Update 4.2.11 => 4.2.13

Approved by:            hamradio@ (alven@, yuri@)
Approved by:            db@, yuri@ (Mentors, implicit)
Differential Revision:  https://reviews.freebsd.org/D58857
DeltaFile
+3-3comms/fldigi/distinfo
+1-1comms/fldigi/Makefile
+4-42 files

HardenedBSD/ports decf4f8comms/fldigi Makefile distinfo

comms/fldigi: Update 4.2.11 => 4.2.13

Approved by:            hamradio@ (alven@, yuri@)
Approved by:            db@, yuri@ (Mentors, implicit)
Differential Revision:  https://reviews.freebsd.org/D58857
DeltaFile
+3-3comms/fldigi/distinfo
+1-1comms/fldigi/Makefile
+4-42 files

FreeBSD/ports 331b0d9cad/hs-verismith pkg-descr Makefile.cabal, cad/hs-verismith/files patch-__cabal__deps_tasty-1.5.3_tasty.cabal

cad/hs-verismith: Improve port

* Switch upstream to Hackage
* Improve COMMENT and pkg-descr

Approved by:            yuri@ (maintainer, Mentor)
Approved by:            db@, yuri@ (Mentors, implicit)
Differential Revision:  https://reviews.freebsd.org/D58847
DeltaFile
+139-175cad/hs-verismith/distinfo
+4-110cad/hs-verismith/Makefile
+102-0cad/hs-verismith/Makefile.cabal
+19-2cad/hs-verismith/pkg-descr
+0-11cad/hs-verismith/files/patch-__cabal__deps_tasty-1.5.3_tasty.cabal
+264-2985 files