LLVM/project a24453d — clang/include/clang/CIR/Dialect/IR CIRDialect.td, clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVMOffloadPrintf.cpp LowerToLLVM.cpp

[CIR] Annotate AMDGPU printf ops with constant strings before lowering (#242111)

Resolve constant format strings while producers are still CIR, so the
AMDGPU printf lowering does not meet converted producers under one-shot
conversion. This is required work for the one-shot LLVM conversion flip:
record one string per operand on each op and read the annotation in the
lowering, instead of walking producers there.

Direct constants use matchPattern and single widening steps use
CastOp::fold; the cast chain walk stays hand written because CastOp is
not ConstantLike and its fold folds narrowing casts. New tests cover
int-array globals, stale annotations, and a narrowing cast that must not
fold.
DeltaFile
+403-0clang/test/CIR/Lowering/offload-printf-amdgpu.cir
+183-58clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVMOffloadPrintfAMDGPU.cpp
+10-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVMOffloadPrintf.h
+4-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+1-2clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVMOffloadPrintf.cpp
+3-0clang/include/clang/CIR/Dialect/IR/CIRDialect.td
+604-606 files

LLVM/project b69e1b2 — lldb/test/Shell/SymbolFile/NativePDB prologue-end-msvc.cpp

[lldb][Windows] XFAIL prologue-end-msvc.cpp on arm64 (#243049)

This test fails on ARM64 Windows. Mark it as XFAIL while it's being
investigated.
DeltaFile
+2-0lldb/test/Shell/SymbolFile/NativePDB/prologue-end-msvc.cpp
+2-01 files

LLVM/project d83fc3c — llvm/lib/Target/AVR AVRDevices.td

[AVR] Fix incorrect device description (#242226)
DeltaFile
+1-1llvm/lib/Target/AVR/AVRDevices.td
+1-11 files

LLVM/project a43d2f6 — llvm/include/llvm/Analysis AliasAnalysis.h, llvm/lib/Analysis BasicAliasAnalysis.cpp

[MemCpyOpt][EarliestEscapeAnalysis] Properly invalidate EEA on moves (#238026)

EarliestEscapeAnalysis cache can become stale whenever we move instructions
or introduce new instructions. It can only happen if the newly inserted instruction
can indeed be an escape. In that case, we drop the cache. Arguably, this is a rather
crude solution, but it might be not easy to introduce a solution that tracks which
pointers escape the same way the original analysis does and handles depth cut-offs
conservatively. Moving escape points shouldn't be very frequent to begin with, so
this trivially conservative solution seems to strike a good balance.

Fixes #238018.
DeltaFile
+47-0llvm/test/Transforms/MemCpyOpt/fca2memcpy.ll
+15-0llvm/lib/Analysis/BasicAliasAnalysis.cpp
+5-0llvm/include/llvm/Analysis/AliasAnalysis.h
+1-0llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
+68-04 files

HardenedBSD/src 8b508c9 — lib/msun/man iseqsig.3, lib/msun/src s_iseqsigl.c s_iseqsigf.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+191-0lib/msun/tests/iseqsig_test.c
+56-0lib/msun/man/iseqsig.3
+36-0lib/msun/src/math.h
+23-0lib/msun/src/s_iseqsig.c
+18-0lib/msun/src/s_iseqsigl.c
+18-0lib/msun/src/s_iseqsigf.c
+342-010 files not shown
+367-1616 files

HardenedBSD/src 70bd46e — lib/msun/man iseqsig.3, lib/msun/src s_iseqsigl.c s_iseqsigf.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+191-0lib/msun/tests/iseqsig_test.c
+56-0lib/msun/man/iseqsig.3
+36-0lib/msun/src/math.h
+23-0lib/msun/src/s_iseqsig.c
+18-0lib/msun/src/s_iseqsigl.c
+18-0lib/msun/src/s_iseqsigf.c
+342-010 files not shown
+367-1616 files

LLVM/project bb109e9 — llvm/docs LangRef.md

[Docs] Add documentation for !call_target metadata (#238795)

Docs requested in original pull request here
https://github.com/llvm/llvm-project/pull/182510#issuecomment-4178905275
DeltaFile
+17-0llvm/docs/LangRef.md
+17-01 files

HardenedBSD/ports 747ae16 — audio/maolan/files patch-cargo-crates_hi__sparse__bitset-0.10.0_src_serialization.rs, math/py-jaxlib/files xla.patch

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+1,341-0net-im/continuwuity/distinfo
+662-0net-im/continuwuity/Makefile.crates
+129-12math/py-jaxlib/files/xla.patch
+100-0net-im/continuwuity/files/patch-Cargo.toml
+91-0net-im/continuwuity/Makefile
+77-0audio/maolan/files/patch-cargo-crates_hi__sparse__bitset-0.10.0_src_serialization.rs
+2,400-12175 files not shown
+4,782-392181 files

FreeBSD/ports bf7e022 — net-im/continuwuity Makefile Makefile.crates, net-im/continuwuity/files pkg-message.in continuwuity.in

net-im/continuwuity: Add New Port

Continuwuity is a Matrix homeserver written in Rust and one of the two
projects continuing conduwuit.  It serves the client-server and federation
APIs from a single process and stores its state in RocksDB, linking against
the version from the ports tree.

www:    https://continuwuity.org/

Sponsored by:   Netzkommune GmbH
DeltaFile
+1,341-0net-im/continuwuity/distinfo
+662-0net-im/continuwuity/Makefile.crates
+100-0net-im/continuwuity/files/patch-Cargo.toml
+91-0net-im/continuwuity/Makefile
+44-0net-im/continuwuity/files/continuwuity.in
+16-0net-im/continuwuity/files/pkg-message.in
+2,254-04 files not shown
+2,265-210 files

HardenedBSD/ports bf7e022 — net-im/continuwuity Makefile Makefile.crates, net-im/continuwuity/files pkg-message.in continuwuity.in

net-im/continuwuity: Add New Port

Continuwuity is a Matrix homeserver written in Rust and one of the two
projects continuing conduwuit.  It serves the client-server and federation
APIs from a single process and stores its state in RocksDB, linking against
the version from the ports tree.

www:    https://continuwuity.org/

Sponsored by:   Netzkommune GmbH
DeltaFile
+1,341-0net-im/continuwuity/distinfo
+662-0net-im/continuwuity/Makefile.crates
+100-0net-im/continuwuity/files/patch-Cargo.toml
+91-0net-im/continuwuity/Makefile
+44-0net-im/continuwuity/files/continuwuity.in
+16-0net-im/continuwuity/files/pkg-message.in
+2,254-04 files not shown
+2,265-210 files

LLVM/project fb6bd84 — llvm/lib/Transforms/Scalar CorrelatedValuePropagation.cpp, llvm/test/Transforms/CorrelatedValuePropagation switch-from-saturating-keep-dbgval.ll

[DebugInfo] salvage debug info if converting saturating arithmetic to… (#236996)

… normal arithmetic

See issue #220562
DeltaFile
+46-0llvm/test/Transforms/CorrelatedValuePropagation/switch-from-saturating-keep-dbgval.ll
+1-0llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
+47-02 files

NetBSD/pkgsrc-wip e6f8555 — ezquake PLIST TODO

ezquake: remove, imported to pkgsrc/games
DeltaFile
+0-51ezquake/Makefile
+0-10ezquake/COMMIT_MSG
+0-8ezquake/distinfo
+0-6ezquake/DESCR
+0-4ezquake/TODO
+0-2ezquake/PLIST
+0-811 files not shown
+0-827 files

LLVM/project 522c33e — llvm/include/llvm/ExecutionEngine/Orc Core.h

[ORC] Avoid -Wlifetime-safety false positive in addGenerator (#242264)

Return the reference from inside the locked lambda instead of binding it
to the moved-from unique_ptr parameter. NFC.

Co-authored-by: Gabor Horvath <gaborh at apple.com>
DeltaFile
+2-3llvm/include/llvm/ExecutionEngine/Orc/Core.h
+2-31 files

OpenBSD/src 9WdOsdw — usr.bin/tmux window-copy.c

   Use repeat counts for prompt motions, GitHub issue 5890 from Alex
   Castillo.
VersionDeltaFile
1.445+7-3usr.bin/tmux/window-copy.c
+7-31 files

LLVM/project b1c38d9 — clang/include/clang/CodeGen CGFunctionInfo.h, clang/include/clang/Options Options.td

[Clang][ABI][X86] Fix arg extension incompatibility with platform psABI (#236450)

This resolves a long-standing incompatibility between the argument
passing ABI used by Clang and the platform psABI, primarily for x86-64
SysV targets. The psABI specifies that the caller does not need to
extend small integers, and the callee can make no assumptions about the
high bits. However, Clang instead extended small integers in the caller,
and assumed that the extension is present in the callee.

The platforms affected by this change are:
* x86-32 and x86-64 targets using the SysV ABI, except Darwin and
PlayStation. For Darwin/Playstation, the Clang ABI is now the platform
ABI. (The x86-64 SysV ABI is nowadays very explicit about high bits
being unspecified. On x86-32 SysV this is specified "by omission".)
* x86-32 Windows. I don't believe this has any ABI spec worth
mentioning, but the emergent MSVC behavior seems to be that it performs
extensions in the callee, i.e. does not assume that the high bits are
extended. (This is inherited from the previous version of the patch, so
I'm mostly trusting that it's correct.)

    [69 lines not shown]
DeltaFile
+64-3llvm/unittests/ABI/X86TargetInfoTest.cpp
+63-0clang/test/CodeGen/X86/integer_argument_passing.c
+44-6clang/lib/CodeGen/Targets/X86.cpp
+44-0clang/include/clang/Options/Options.td
+20-16clang/test/CodeGen/transparent-union-type.c
+31-4clang/include/clang/CodeGen/CGFunctionInfo.h
+266-2957 files not shown
+597-19963 files

NetBSD/pkgsrc-wip 414bd63 — ezquake Makefile

ezquake: pkglint -F
DeltaFile
+1-1ezquake/Makefile
+1-11 files

LLVM/project 0d8ff58 — llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV rvp-shift-splat-legalization.ll

[RISCV][P-ext] Legalize splat shift amounts during vector lowering (#242996)

Vector legalization can create splat BUILD_VECTOR shift amounts with
illegal scalar operand types. Use `DAG.getSplatValue` with
`LegalTypes=true` to obtain a legal scalar before creating packed shift
nodes.

Fixes #242983
DeltaFile
+289-0llvm/test/CodeGen/RISCV/rvp-shift-splat-legalization.ll
+1-5llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+290-52 files

LLVM/project 0b5ba69 — libc/src/unistd/linux CMakeLists.txt fork.cpp, utils/bazel/llvm-project-overlay/libc/src/__support/OSUtil/linux/syscall_wrappers BUILD.bazel

[libc] Implement fork with the clone3 syscall
DeltaFile
+18-15libc/src/unistd/linux/fork.cpp
+16-0utils/bazel/llvm-project-overlay/libc/src/__support/OSUtil/linux/syscall_wrappers/BUILD.bazel
+8-7libc/src/unistd/linux/CMakeLists.txt
+1-1utils/bazel/llvm-project-overlay/libc/src/unistd/BUILD.bazel
+43-234 files

LLVM/project 11d533e — bolt/lib/Passes RISCVLongJmpPass.cpp, bolt/test/RISCV split-functions-shared-stub.s split-functions-stub-placement.s

[BOLT][RISCV] Preserve hot fallthrough paths when placing cold jump stubs (#236726)

RISC-V long-jump stubs for cross-fragment edges are currently inserted
immediately after their source blocks, which can interrupt hot
fallthrough paths and force hot execution to branch over cold stubs.

Place stubs for zero-count edges at the end of the source fragment when
the source has a fallthrough successor in the same fragment and a
conservative distance bound fits within the conditional branch range.
This follows BOLT's existing AArch64 strategy of keeping cold
trampolines out of hot paths whenever branch reach permits.
DeltaFile
+87-16bolt/lib/Passes/RISCVLongJmpPass.cpp
+77-0bolt/test/RISCV/split-functions-stub-placement.s
+66-0bolt/test/RISCV/split-functions-shared-stub.s
+230-163 files

LLVM/project 146a6fb — libc/src/__support/OSUtil/linux/syscall_wrappers CMakeLists.txt gettid.h, libc/src/unistd/linux CMakeLists.txt fork.cpp

[libc] Move the fork gettid call into a syscall wrapper (#242606)

Move the uncached gettid syscall used by fork() to refresh the child TID
into linux_syscalls::gettid. Register the wrapper in CMake and Bazel.
DeltaFile
+31-0libc/src/__support/OSUtil/linux/syscall_wrappers/gettid.h
+15-0utils/bazel/llvm-project-overlay/libc/src/__support/OSUtil/linux/syscall_wrappers/BUILD.bazel
+12-0libc/src/__support/OSUtil/linux/syscall_wrappers/CMakeLists.txt
+3-2libc/src/unistd/linux/fork.cpp
+1-0utils/bazel/llvm-project-overlay/libc/src/unistd/BUILD.bazel
+1-0libc/src/unistd/linux/CMakeLists.txt
+63-26 files

LLVM/project 325afb7 — llvm/include/llvm/Analysis LazyValueInfo.h, llvm/lib/Analysis LazyValueInfo.cpp

[DebugInfo] Invalidate debug info of users when an icmp predicate cha… (#238019)

…nges

Fixes https://github.com/llvm/llvm-project/issues/218620

When an `icmp` predicate changes, future calculations using that value
could change. Any debug records relying on the results of those
calculations would then be incorrect.
`CorrelatedValuePropagation` goes through the user chain to see what the
range of values could be, which lets it decide if it can make this
optimisation. This PR changes that so that the debug records of those
users are also collected as it goes through the chain. Then, if the
optimisation is taken, we invalidate those debug records to prevent
incorrect values from being reported.
DeltaFile
+42-0llvm/test/Transforms/CorrelatedValuePropagation/icmp-stou-predicate.ll
+14-5llvm/lib/Analysis/LazyValueInfo.cpp
+11-4llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
+3-2llvm/include/llvm/Analysis/LazyValueInfo.h
+70-114 files

HardenedBSD/src 563c2f2 — sys/dev/sound/pci emu10k1.c cmi.c

sound: Remove stale midi module dependencies

midi(4) stopped being a module in 45bb10e0ed5a ("sound: Stop building
midi as a module"), so snd_cmi(4) and snd_emu10k1(4) fail to load
because they still depend on it.

Fixes:          45bb10e0ed5a ("sound: Stop building midi as a module")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 day
DeltaFile
+0-1sys/dev/sound/pci/emu10k1.c
+0-1sys/dev/sound/pci/cmi.c
+0-22 files

FreeBSD/src 563c2f2 — sys/dev/sound/pci emu10k1.c cmi.c

sound: Remove stale midi module dependencies

midi(4) stopped being a module in 45bb10e0ed5a ("sound: Stop building
midi as a module"), so snd_cmi(4) and snd_emu10k1(4) fail to load
because they still depend on it.

Fixes:          45bb10e0ed5a ("sound: Stop building midi as a module")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 day
DeltaFile
+0-1sys/dev/sound/pci/emu10k1.c
+0-1sys/dev/sound/pci/cmi.c
+0-22 files

HardenedBSD/src c8341e6 — lib/msun/man iseqsig.3, lib/msun/src s_iseqsigf.c s_iseqsigl.c

libm: Implement iseqsig()

C23 adds iseqsig(), the signaling counterpart of ==, which
raises FE_INVALID on any NaN rather than only on signaling
ones (as per §7.12.17.7).  The helpers raise it explicitly
instead of relying on relational operators, which the
compiler may emit as quiet comparisons, and the macro
dispatches on float_t so that wider-evaluated arguments
are not narrowed (§F.10.14.1).

Reviewed by:    kargl, fuz
Approved by:    fuz (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D60642
DeltaFile
+191-0lib/msun/tests/iseqsig_test.c
+56-0lib/msun/man/iseqsig.3
+36-0lib/msun/src/math.h
+23-0lib/msun/src/s_iseqsig.c
+18-0lib/msun/src/s_iseqsigf.c
+18-0lib/msun/src/s_iseqsigl.c
+342-05 files not shown
+355-311 files

FreeBSD/src c8341e6 — lib/msun/man iseqsig.3, lib/msun/src s_iseqsigl.c s_iseqsigf.c

libm: Implement iseqsig()

C23 adds iseqsig(), the signaling counterpart of ==, which
raises FE_INVALID on any NaN rather than only on signaling
ones (as per §7.12.17.7).  The helpers raise it explicitly
instead of relying on relational operators, which the
compiler may emit as quiet comparisons, and the macro
dispatches on float_t so that wider-evaluated arguments
are not narrowed (§F.10.14.1).

Reviewed by:    kargl, fuz
Approved by:    fuz (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D60642
DeltaFile
+191-0lib/msun/tests/iseqsig_test.c
+56-0lib/msun/man/iseqsig.3
+36-0lib/msun/src/math.h
+23-0lib/msun/src/s_iseqsig.c
+18-0lib/msun/src/s_iseqsigl.c
+18-0lib/msun/src/s_iseqsigf.c
+342-05 files not shown
+355-311 files

LLVM/project 563eb6b — llvm/test/Transforms/LoopVectorize float-induction.ll, llvm/test/Transforms/LoopVectorize/X86 uint64_to_fp64-cost-model.ll

[LV] Pre-commit tests for FP derived IV index conversion (NFC) (#240741)

Add a test for an FP induction with a trip count above INT32_MAX, which
is currently miscompiled because the iteration index is converted with
sitofp. Also add an X86 cost test for converting an i64 index of an FP
derived IV.

The fix is in #240743.

Assisted-by: Claude Code
DeltaFile
+166-0llvm/test/Transforms/LoopVectorize/float-induction.ll
+28-0llvm/test/Transforms/LoopVectorize/X86/uint64_to_fp64-cost-model.ll
+194-02 files

OpenBSD/ports eb4PIlP — security/py-asyncssh distinfo Makefile, security/py-asyncssh/patches patch-asyncssh_crypto_umac_py

   update to py3-asyncssh-2.24.1
   add patch from PR to avoid umac crashes if nettle 4.x is present
VersionDeltaFile
1.5.4.1+6-4security/py-asyncssh/Makefile
1.4.4.1+2-2security/py-asyncssh/distinfo
1.3.4.1+3-0security/py-asyncssh/pkg/PLIST
1.1.2.1+0-0security/py-asyncssh/patches/patch-asyncssh_crypto_umac_py
+11-64 files

OpenBSD/ports dqATgwx — security/py-asyncssh distinfo Makefile, security/py-asyncssh/patches patch-asyncssh_crypto_umac_py

   update to py3-asyncssh-2.24.1
   add patch from PR to avoid umac crashes if nettle 4.x is present
VersionDeltaFile
1.1+82-0security/py-asyncssh/patches/patch-asyncssh_crypto_umac_py
1.6+6-4security/py-asyncssh/Makefile
1.5+2-2security/py-asyncssh/distinfo
1.4+3-0security/py-asyncssh/pkg/PLIST
+93-64 files

OpenBSD/src GbMBvcz — sys/net if_trunk.c

   stop checking for if_type == IFT_IEEE8023ADLAG everywhere.

   trunk no longer overwrites the if_type on ports, so it's not going
   to be IFT_IEEE8023ADLAG.

   in particular this fixes packet reception on trunk interfaces.

   found by and fixed tested by landry@
VersionDeltaFile
1.168+2-7sys/net/if_trunk.c
+2-71 files

LLVM/project 5637411 — clang/include/clang/CIR LoweringHelpers.h, clang/lib/CIR/Lowering LoweringHelpers.cpp

[CIR] Use memory types for bool aggregate constants (#236082)

CIR lowers scalar bool values to `i1`, but bool objects use byte-sized
storage. For example, a `bool[3]` becomes `!llvm.array<3 x i8>`, so its
dense initializer must use `tensor<3xi8>` rather than `tensor<3xi1>`.

Thread the converted element type and module-scoped data layout through
aggregate constant lowering so bool arrays and record members use the
memory type selected by `convertTypeForMemory`. This keeps constant
attributes consistent with their LLVM container types and retains bool's
`i1` value representation.

---------

Co-authored-by: Steffen Larsen <sholstla at amd.com>
DeltaFile
+63-0clang/test/CIR/Lowering/const-array-bulk-lowering-fallbacks.cir
+31-22clang/lib/CIR/Lowering/LoweringHelpers.cpp
+39-0clang/test/CIR/CodeGen/bool-aggregate-storage.cpp
+11-14clang/include/clang/CIR/LoweringHelpers.h
+1-1clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+145-375 files