LLVM/project 2f6c791 — mlir/include/mlir/Conversion/SCFToControlFlow SCFToControlFlowDialectInterface.h SCFToControlFlowDialectInterface.td, mlir/lib/Conversion/SCFToControlFlow SCFToControlFlow.cpp

[mlir][SCFToControlFlow] Remove dependency on the LLVM dialect (#238311)

SCFToControlFlow references LLVMDialect just to identify LLVM attributes
when propagating loop metadata. This introduces an unnecessary
dependency on the LLVM dialect implementation and further dependencies
transitively.

Identify attributes by dialect namespace instead, this will preserve
attribute propagation without having to reference LLVMDialect's type
identity. Also remove corresponding CMake and Bazel dependencies.
DeltaFile
+42-0mlir/include/mlir/Conversion/SCFToControlFlow/SCFToControlFlowDialectInterface.td
+17-20mlir/lib/Conversion/SCFToControlFlow/SCFToControlFlow.cpp
+22-1utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+18-0mlir/test/Conversion/SCFToControlFlow/convert-to-cfg.mlir
+17-0mlir/include/mlir/Conversion/SCFToControlFlow/SCFToControlFlowDialectInterface.h
+14-0mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+130-214 files not shown
+136-2210 files

LLVM/project f00f3c9 — llvm/lib/Target/LoongArch LoongArchMergeBaseOffset.cpp, llvm/test/CodeGen/LoongArch merge-base-offset-fold-large-offset.mir merge-base-offset.ll

[LoongArch] Compute exact offset value in foldLargeOffset() (#242943)

foldLargeOffset() reconstructed the offset additively with a mask of the
bits overwritten later, which is only valid for the canonical sequences
produced by LoongArchMatInt where every instruction writes a disjoint
bit field. Non-canonical chains reach the pass when part of the constant
is materialized in another basic block, e.g. ORI on top of ORI, or ORI
after SLLI.D, and the computed offset was wrong:

  ori 256; ori 1                 -> g+1         (expected g+257)
  lu12i.w+ori 0x678; ori 0xf     -> g+305418255 (expected g+305419903)
  ori 0xabc; slli.d 4; ori 0xf0  -> g+41200     (expected g+44016)

Collect the chain first, then evaluate it in program order with the
exact semantics of each instruction. The existing restrictions (single
non-debug use, no target flags, at most 4 instructions,
LU32I.D/LU52I.D/SLLI.D only with the pcala64 sequence) are kept.

Assisted-By: LLM
DeltaFile
+55-52llvm/lib/Target/LoongArch/LoongArchMergeBaseOffset.cpp
+18-18llvm/test/CodeGen/LoongArch/merge-base-offset.ll
+12-12llvm/test/CodeGen/LoongArch/merge-base-offset-fold-large-offset.mir
+85-823 files

LLVM/project 586a8ef — llvm/test/CodeGen/LoongArch merge-base-offset.ll merge-base-offset-fold-large-offset.mir

[LoongArch][NFC] Add tests for folding non-canonical large offset chains (#242942)

Add tests where the offset is partially materialized in another basic
block, so the offset chain seen by foldLargeOffset() is not in the
canonical form produced by LoongArchMatInt. The current output is wrong:

  ori_ori:          expected g+257,       got g+1
  ori_ori_overlap:  expected g+305419903, got g+305418255
  ori_slli_ori:     expected g+44016,     got g+41200 (large code model)

Assisted-By: LLM
DeltaFile
+140-0llvm/test/CodeGen/LoongArch/merge-base-offset-fold-large-offset.mir
+105-0llvm/test/CodeGen/LoongArch/merge-base-offset.ll
+245-02 files

LLVM/project 88734c3 — llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp

use isNotGFX9Plus
DeltaFile
+1-1llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+1-11 files

FreeBSD/src 933f5f6 — sys/vm swap_pager.c

swapoff: release vnode held since swapon

kern_swapon looks up the proposed swap path and aquires a vnode which is
held (unlocked) throughout the life of the swap device.  In the device
case (swapgeom) it was never released in the swapoff path.

Remove an incorrect comment about swapgeom_close being called from
biodone.  It is only called directly via swapoff(2) or at the end of the
shutdown path.

Reviewed by:    kib, markj
Reported by:    llm-postcr
MFC after:      3 days
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D61465
DeltaFile
+6-5sys/vm/swap_pager.c
+6-51 files

DragonFlyBSD/src b411147 — contrib/gcc-12 README.DRAGONFLY, contrib/gcc-12/gcc gcc-ar.cc

contrib/gcc-12: Patch gcc-ar.cc to find the liblto_plugin.so

We place all the tools and the LTO plugin in a common location:
/usr/libexec/gcc120, so need to patch gcc-ar.cc to search this location,
similar to the patch to gcc.cc.
DeltaFile
+4-0contrib/gcc-12/gcc/gcc-ar.cc
+1-0contrib/gcc-12/README.DRAGONFLY
+5-02 files

LLVM/project 14307b4 — llvm/test/CodeGen/AMDGPU true16-v2s-copy-subreg-phi.ll

[AMDGPU][NFC] Pre-commit test for true16 VGPR-to-SGPR copies of 16-bit subregs (#239230)

On gfx1250 (true16), a conditional f16 load whose value reaches a PHI
through a VGPR-to-SGPR copy is deleted: in the new test, the %ld block
ends up with only an implicit-def. Add the test with the current, wrong
output.

Co-Authored-By: Claude Opus 5.5 [noreply at anthropic.com](mailto:noreply at anthropic.com)
DeltaFile
+87-0llvm/test/CodeGen/AMDGPU/true16-v2s-copy-subreg-phi.ll
+87-01 files

FreeBSD/src 5233aac — usr.bin/top display.c

top: fix off-by-one in screenbuf

There is a heap overflow for screenbuf originating from
the top import to the tree. The i_process()/u_process() functions
write a terminating NUL one byte past each screenbuf line slot
when the line fills the slot, which is a 1-byte heap overflow on the last slot.

The display_resize() function allocates screen_width bytes per line.
i_process() and u_process() cut lines to screen_width characters and
then stpcpy() them into the slot, which writes screen_width + 1 bytes.
line_update() can do the same with *old = ch. For inner slots,
the NUL lands in byte 0 of the next slot. This can corrupt the saved
contents used when updating the next line. For the last slot, it writes
one byte past the end of screenbuf.

Fix by allocating (screen_width + 1) bytes per line and updating the
line offsets to fit the terminating NUL.

Reviewed by:    kib

    [3 lines not shown]
DeltaFile
+3-3usr.bin/top/display.c
+3-31 files

OpenBSD/ports F5dqfYQ — devel/py-configargparse Makefile distinfo

   update to py3-ConfigArgParse-1.9.0
VersionDeltaFile
1.9+2-2devel/py-configargparse/distinfo
1.26+1-1devel/py-configargparse/Makefile
+3-32 files

LLVM/project b65cd8b — llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp, llvm/test/CodeGen/AMDGPU amdgpu-codegenprepare-mul24-mad64.ll mad_u64_u32_mul24.ll

address review feedback
DeltaFile
+186-66llvm/test/CodeGen/AMDGPU/mad_u64_u32_mul24.ll
+100-27llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-mul24-mad64.ll
+4-0llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+290-933 files

LLVM/project 0358b63 — llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp, llvm/test/CodeGen/AMDGPU atomic_optimizations_local_pointer.ll atomic_optimizations_global_pointer.ll

[AMDGPU] Keep divergent i64 mul feeding an add for the mad64 fold
DeltaFile
+123-0llvm/test/CodeGen/AMDGPU/mad_u64_u32_mul24.ll
+84-0llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-mul24-mad64.ll
+24-30llvm/test/CodeGen/AMDGPU/idot4-test.ll
+20-4llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+9-9llvm/test/CodeGen/AMDGPU/atomic_optimizations_global_pointer.ll
+7-7llvm/test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll
+267-506 files

OpenBSD/ports 7hdmOBf — textproc/py-texttable distinfo Makefile

   update to py3-texttable-1.7.3
VersionDeltaFile
1.4+11-11textproc/py-texttable/Makefile
1.2+2-2textproc/py-texttable/distinfo
+13-132 files

OpenBSD/ports x9Jcir4 — security/py-cryptodome Makefile distinfo, security/py-cryptodome/pkg PLIST

   update to py3-cryptodome-4.5.0
VersionDeltaFile
1.36+17-0security/py-cryptodome/pkg/PLIST
1.33+2-2security/py-cryptodome/distinfo
1.57+1-1security/py-cryptodome/Makefile
+20-33 files

OpenBSD/ports GrmrZM7 — net/radcli distinfo Makefile, net/radcli/patches patch-lib_util_h patch-meson_build

   update to radcli-2.0.2

   disable tests which now want their own sendmsg wrapper that uses
   syscall(SYS_sendmsg, ...)
VersionDeltaFile
1.26+11-7net/radcli/Makefile
1.1+11-0net/radcli/patches/patch-meson_build
1.17+2-2net/radcli/distinfo
1.9+1-1net/radcli/patches/patch-lib_util_h
1.9+1-0net/radcli/pkg/PLIST
+26-105 files

DragonFlyBSD/src bbb535f — contrib/gcc-12 README.DELETED

contrib/gcc-12: Update README.DELETED
DeltaFile
+0-2contrib/gcc-12/README.DELETED
+0-21 files

DragonFlyBSD/src a6c33b7 — contrib/gcc-12/gcc gcc-ar.cc, contrib/gcc-12/gcc/doc lto-dump.1

Merge branch 'vendor/GCC120'
DeltaFile
+254-0contrib/gcc-12/gcc/gcc-ar.cc
+235-0contrib/gcc-12/gcc/doc/lto-dump.1
+489-02 files

DragonFlyBSD/src 286cc57 — contrib/gcc-12/gcc gcc-ar.cc, contrib/gcc-12/gcc/doc lto-dump.1

vendor/GCC120: Add back gcc-ar.cc and lto-dump.1

* gcc-ar.cc is required to build gcc-{ar,nm,ranlib} wrappers for LTO
  function.
* lto-dump.1 is the man page for the lto-dump utility to be installed.
DeltaFile
+254-0contrib/gcc-12/gcc/gcc-ar.cc
+235-0contrib/gcc-12/gcc/doc/lto-dump.1
+489-02 files

LLVM/project 7090701 — clang/lib/AST/ByteCode Pointer.h

[clang][bytecode][NFC] Remove unused `Pointer::compare()` (#242977)
DeltaFile
+0-14clang/lib/AST/ByteCode/Pointer.h
+0-141 files

LLVM/project db8781b — mlir/include/mlir/Dialect/SPIRV/IR SPIRVCooperativeMatrixOps.td, mlir/test/Dialect/SPIRV/IR khr-cooperative-matrix-ops.mlir

[mlir][SPIR-V] Require 32-bit stride in cooperative matrix load/store (#242971)

SPIRV-Tools now requires a 32-bit Stride, following the SPIRV-Registry
change

https://github.com/KhronosGroup/SPIRV-Tools/pull/7033,
https://github.com/KhronosGroup/SPIRV-Registry/pull/469

Analogue of https://github.com/llvm/llvm-project/pull/242648

Fix currently failing CI on the main branch
DeltaFile
+20-20mlir/test/Dialect/SPIRV/IR/khr-cooperative-matrix-ops.mlir
+8-6mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCooperativeMatrixOps.td
+6-6mlir/test/Target/SPIRV/khr-cooperative-matrix-ops.mlir
+34-323 files

LLVM/project d2d4c68 — libc/src/__support/OSUtil/linux/syscall_wrappers mmap.h, libc/test/src/sys/mman/linux mmap_test.cpp

[libc] Leave mmap offsets with the top bit set to the kernel (#239985)

The kernel reads the mmap offset as unsigned, and drivers use its top
bits
to tell mappings apart: KFD's doorbells sit at 0xebff000000000000.
Rejecting
negative offsets in libc made ROCr's doorbell mapping fail, and HIP then
died on its first dispatch. mmap2 keeps the check, as there the offset
is
divided before it reaches the kernel.

AI disclosure: this patch was written with Claude Code. I reviewed the
change.

Assisted-by: Claude
DeltaFile
+18-1libc/test/src/sys/mman/linux/mmap_test.cpp
+3-1libc/src/__support/OSUtil/linux/syscall_wrappers/mmap.h
+21-22 files

LLVM/project f11c747 — llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp

Inline nneg flag
DeltaFile
+3-5llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+3-51 files

OpenBSD/ports k1tz6Tz — security/py-pyotp Makefile distinfo, security/py-pyotp/pkg PLIST

   update to py3-pyotp-2.12.0
VersionDeltaFile
1.6+2-2security/py-pyotp/distinfo
1.7+3-0security/py-pyotp/pkg/PLIST
1.10+1-1security/py-pyotp/Makefile
+6-33 files

FreeBSD/ports be5f5da — security/hashcat Makefile

security/hashcat: fix build on powerpc64le

Build with MAINTAINER_MODE=1 so the bridges don't get -march=native.
Clang 21 rejects it on powerpc and packages shouldn't use it anyway.
DeltaFile
+2-2security/hashcat/Makefile
+2-21 files

FreeBSD/ports debd6c7 — lang/pocl Makefile, lang/pocl/files patch-lib_CL_pocl__threads__cpp.hh patch-lib_CL_pocl__threads__c.h

lang/pocl: backport fix for crashes with big work-groups

Worker threads were created with the default 2 MB stack, which is too
small for kernels that keep a lot of private data per work-item.
Programs like hashcat crash because of that.

Obtained from:  https://github.com/pocl/pocl/commit/0222df2be566a3e74816f6ba9856efae7d1a8d80
DeltaFile
+39-0lang/pocl/files/patch-lib_CL_pocl__threads.c
+37-0lang/pocl/files/patch-lib_CL_devices_pthread_pthread__scheduler.c
+31-0lang/pocl/files/patch-lib_CL_pocl__threads__c.h
+20-0lang/pocl/files/patch-lib_CL_pocl__threads__cpp.hh
+1-1lang/pocl/Makefile
+128-15 files

FreeBSD/ports 2abe63a — editors/gram Makefile distinfo, editors/gram/files patch-crates_fs_src_fs.rs patch-cargo-crates_minidump-writer-0.12.0_src_minidump__cpu.rs

editors/gram: fix build on powerpc64le

Pull in the upstream fix for KINFO_FILE_SIZE, which is only defined on
amd64 and i386. The vendored minidump-writer and crash-handler crates
also lack powerpc64 in their arch switches.

Approved by:    portmgr (blanket)
DeltaFile
+14-0editors/gram/files/patch-cargo-crates_crash-handler-0.7.0_src_linux_jmp.rs
+0-11editors/gram/files/patch-crates_fs_src_fs.rs
+11-0editors/gram/files/patch-cargo-crates_minidump-writer-0.12.0_src_minidump__cpu.rs
+3-1editors/gram/distinfo
+2-0editors/gram/Makefile
+30-125 files

FreeBSD/ports c37d4e2 — devel/simde Makefile, devel/simde/files patch-simde_simde-math.h

devel/simde: fix the roundeven fallback on powerpc64

clang turns __builtin_roundeven into a roundeven() call when there is no
native rounding instruction and our libm doesn't have it, so consumers
fail to link on powerpc64. Backport the glibc check from simde
6b772fe4e9a0 and cb5b957aa7db.

Approved by:    portmgr (blanket)
DeltaFile
+26-0devel/simde/files/patch-simde_simde-math.h
+1-0devel/simde/Makefile
+27-02 files

FreeBSD/ports 0abe2c0 — audio/surge-synthesizer-xt-lv2/files patch-libs_simde_simde_simde-math.h

audio/surge-synthesizer-xt-lv2: fix build on powerpc64

The bundled simde uses __builtin_roundevenf when there is no VSX and
clang turns it into a call to roundevenf, which our libm doesn't have.
Backport the glibc check from simde 6b772fe4e9a0 and cb5b957aa7db.

Approved by:    portmgr (blanket)
DeltaFile
+26-0audio/surge-synthesizer-xt-lv2/files/patch-libs_simde_simde_simde-math.h
+26-01 files

FreeBSD/ports 2c6722f — sysutils/mise/files patch-cargo-crates_sonic-simd-0.1.4_src_v256.rs patch-cargo-crates_sonic-simd-0.1.4_src_v512.rs

sysutils/mise: fix build and runtime on powerpc64

sonic-number refuses to build on big-endian and sonic-simd's portable
fallback puts the bitmask bits in the wrong order there, so sonic-rs
runs off the buffer on the first string it escapes. Backport the fix
from cloudwego/sonic-rs#265.
DeltaFile
+46-0sysutils/mise/files/patch-cargo-crates_sonic-number-0.1.3_src_swar.rs
+28-0sysutils/mise/files/patch-cargo-crates_sonic-simd-0.1.4_src_v128.rs
+20-0sysutils/mise/files/patch-cargo-crates_sonic-simd-0.1.4_src_bits.rs
+18-0sysutils/mise/files/patch-cargo-crates_sonic-simd-0.1.4_src_v256.rs
+18-0sysutils/mise/files/patch-cargo-crates_sonic-simd-0.1.4_src_v512.rs
+130-05 files

FreeBSD/ports f01c82c — www/waterfox Makefile

www/waterfox: fix build on powerpc64

The WASM sandbox isn't available on big-endian, so only pass
--with-wasi-sysroot and pull in the wasi dependencies on other
architectures, like www/firefox does.
DeltaFile
+8-5www/waterfox/Makefile
+8-51 files

FreeBSD/ports b6d5a17 — math/kalc/files patch-cargo-crates_gmp-mpfr-sys-1.6.5_gmp-6.3.0-c_longlong.h

math/kalc: fix build on powerpc64

The bundled GMP fails its own make check with clang 21: the PowerPC inline
asm only clobbers "cc", so clang keeps a carry in XER across it and
mpn_div_qr_1 comes out wrong. Declare "xer" too.
DeltaFile
+12-0math/kalc/files/patch-cargo-crates_gmp-mpfr-sys-1.6.5_gmp-6.3.0-c_longlong.h
+12-01 files