LLVM/project bd6a0ebclang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp

[CIR] Auto-generate matchAndRewrite for one-to-one CIR-to-LLVM lowerings

When a CIR op specifies a non-empty `llvmOp` field, the lowering
emitter now generates the `matchAndRewrite` body that converts the
result type and forwards all operands to the corresponding LLVM op.
This removes 27 boilerplate lowering patterns from LowerToLLVM.cpp.

Ops needing custom logic (FMaxNumOp/FMinNumOp for FastmathFlags::nsz)
override `llvmOp = ""` to retain hand-written implementations.

Also fixes llvmOp names (TruncOp -> FTruncOp, FloorOp -> FFloorOp)
and adds a diagnostic rejecting conflicting llvmOp + custom constructor.
DeltaFile
+0-255clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+30-5clang/utils/TableGen/CIRLoweringEmitter.cpp
+6-2clang/include/clang/CIR/Dialect/IR/CIROps.td
+36-2623 files

FreeBSD/ports 146e4b6net Makefile

net/mtg: Connect to build

PR:             233908
Reported by:    antoine (via email)
Approved by:    blanket
Fixes:          d3068db9d8a2 (new port, MTPROTO proxy server for Telegram)
Sponsored by:   UNIS Labs
MFH:            2026Q2

(cherry picked from commit 2dd3636ba67c1e07c6aef2bbe9918dfabcc77556)
DeltaFile
+1-0net/Makefile
+1-01 files

FreeBSD/ports 2dd3636net Makefile

net/mtg: Connect to build

PR:             233908
Reported by:    antoine (via email)
Approved by:    blanket
Fixes:          d3068db9d8a2 (new port, MTPROTO proxy server for Telegram)
Sponsored by:   UNIS Labs
MFH:            2026Q2
DeltaFile
+1-0net/Makefile
+1-01 files

LLVM/project ff86be2mlir/lib/Dialect/MemRef/Transforms FlattenMemRefs.cpp, mlir/test/Dialect/MemRef flatten_memref.mlir

[MLIR][MemRef] Fix AllocOp/AllocaOp flattening domination violation (#188980)

The generic MemRefRewritePattern handles AllocOp/AllocaOp by calling
getFlattenMemrefAndOffset with the op's own result as the source memref.
This inserts ExtractStridedMetadataOp and ReinterpretCastOp that consume
op.result before the alloc op itself in the block. After
replaceOpWithNewOp, op.result is RAUW'd to the new ReinterpretCastOp
result, leaving those earlier ops with forward references — a domination
violation caught by MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS.

Replace the AllocOp/AllocaOp cases in MemRefRewritePattern with a
dedicated AllocLikeFlattenPattern that never touches op.result until the
final replaceOpWithNewOp:
- sizes come from op.getMixedSizes() (operands, not the result)
- strides come from getStridesAndOffset on the MemRefType
- the flat allocation size is computed via
getLinearizedMemRefOffsetAndSize plus the static base offset so the
buffer covers [0, offset+extent)
- castAllocResult is simplified to take the pre-computed sizes and

    [10 lines not shown]
DeltaFile
+97-34mlir/lib/Dialect/MemRef/Transforms/FlattenMemRefs.cpp
+73-0mlir/test/Dialect/MemRef/flatten_memref.mlir
+170-342 files

FreeBSD/ports 680479cnet-mgmt/etherape pkg-plist Makefile, net-mgmt/etherape/files patch-src_names_names.c patch-src_names_eth__resolv.c

net-mgmt/etherape: Update 0.9.20 => 0.9.21, take maintainership

Changelog:
* GooCanvas was unsupported and getting really old, replaced by
  GtkDrawingArea.
* --final-export is primarily meant to be used from other tools as a way
  to get statistics data from a replay. As such, --final-export exits
  automatically after the file replay ends and the dump is written.
* Compatibility Warnings:
  - removed GooCanvas dependency, drawing now done with plain Gtk.
  - new behavior for --final-export: exit after saving the XML dump.
* Changes summary:
  - Updated german translation, thanks to Christoph Brinkhaus.
  - Fix for german translation, thanks to Ronald W. Henderson.
  - Fix for gcc 15, thanks to Petr Gajdos.
  - Assorted refactorings and small modernizations, including autotools.

Improve port:
- Replace PORTVERSION with DISTVERSION.

    [14 lines not shown]
DeltaFile
+34-34net-mgmt/etherape/pkg-plist
+12-16net-mgmt/etherape/Makefile
+3-3net-mgmt/etherape/distinfo
+2-2net-mgmt/etherape/files/patch-src_names_names.c
+2-2net-mgmt/etherape/files/patch-src_names_eth__resolv.c
+53-575 files

OPNSense/core e5effd4src/opnsense/scripts/captiveportal/lib arp.py

captive portal / hostwatch: output safety when list_hosts.py or decoding fails

arp.py seems to throw an exception an unpredictable times. Since
the most likely culprit is list_hosts.py, capture both
stderr of list_hosts and the exception value of the caller.

In any case, we reuse the old known ARP state to not kill
the CP background process
DeltaFile
+22-7src/opnsense/scripts/captiveportal/lib/arp.py
+22-71 files

OpenBSD/ports VFF0VoQcad/prusaslicer Makefile

   Sync WANTLIB.
VersionDeltaFile
1.30+3-3cad/prusaslicer/Makefile
+3-31 files

FreeBSD/ports dcf8f42net-mgmt/etherape pkg-plist Makefile, net-mgmt/etherape/files patch-src_names_names.c patch-src_names_eth__resolv.c

net-mgmt/etherape: Update 0.9.20 => 0.9.21, take maintainership

Changelog:
* GooCanvas was unsupported and getting really old, replaced by
  GtkDrawingArea.
* --final-export is primarily meant to be used from other tools as a way
  to get statistics data from a replay. As such, --final-export exits
  automatically after the file replay ends and the dump is written.
* Compatibility Warnings:
  - removed GooCanvas dependency, drawing now done with plain Gtk.
  - new behavior for --final-export: exit after saving the XML dump.
* Changes summary:
  - Updated german translation, thanks to Christoph Brinkhaus.
  - Fix for german translation, thanks to Ronald W. Henderson.
  - Fix for gcc 15, thanks to Petr Gajdos.
  - Assorted refactorings and small modernizations, including autotools.

Improve port:
- Replace PORTVERSION with DISTVERSION.

    [12 lines not shown]
DeltaFile
+34-34net-mgmt/etherape/pkg-plist
+12-16net-mgmt/etherape/Makefile
+3-3net-mgmt/etherape/distinfo
+2-2net-mgmt/etherape/files/patch-src_names_names.c
+2-2net-mgmt/etherape/files/patch-src_names_eth__resolv.c
+53-575 files

NetBSD/src gJx1LMtlib/libc/gen readdir.c

   Don't try to preserve errno twice for readdir_r(), even outside
   the mutex protection in the _REENTRANT case.
VersionDeltaFile
1.28+2-11lib/libc/gen/readdir.c
+2-111 files

LLVM/project 7c1d91cbolt/runtime instr.cpp

[BOLT] Move extern "C" out of unnamed namespace (#190282)

GCC 15 changes how it interprets extern "C" in unnamed namespaces and
gives the variable internal linkage.
DeltaFile
+2-2bolt/runtime/instr.cpp
+2-21 files

OPNSense/core 58c9b62src/opnsense/scripts/captiveportal/lib arp.py, src/opnsense/scripts/interfaces list_hosts.py

captive portal / hostwatch: output safety when list_hosts.py or decoding fails, capture possible exceptions in list_hosts.py as well
DeltaFile
+22-7src/opnsense/scripts/captiveportal/lib/arp.py
+2-0src/opnsense/scripts/interfaces/list_hosts.py
+24-72 files

FreeBSD/ports 9293718textproc/highlight distinfo Makefile

textproc/highlight: Update to 4.19

Changelog:
https://gitlab.com/saalen/highlight/-/blob/master/ChangeLog.adoc#user-content-highlight-4-19

PR:             294194
Approved by:    fluffy (mentor)
DeltaFile
+3-3textproc/highlight/distinfo
+2-2textproc/highlight/Makefile
+5-52 files

NetBSD/pkgsrc-wip 278eeb2lxqt-wayland-session distinfo, lxqt-wayland-session/patches patch-startlxqtwayland.in

lxqt-wayland-session: fix patch
DeltaFile
+1-1lxqt-wayland-session/distinfo
+1-1lxqt-wayland-session/patches/patch-startlxqtwayland.in
+2-22 files

NetBSD/src BJFtAyYusr.bin/audiocfg dtmf.c audiodev.c

   Make audiocfg test play real dial sequence with number from AUDIOCFG_DIAL.
VersionDeltaFile
1.5+139-14usr.bin/audiocfg/dtmf.c
1.16+10-4usr.bin/audiocfg/audiodev.c
1.9+4-3usr.bin/audiocfg/audiocfg.1
1.2+4-3usr.bin/audiocfg/dtmf.h
+157-244 files

OpenBSD/src rUyeNv5usr.bin/tmux input.c tty-keys.c

   Increase b64_pton buffer to allow for Base64 without padding, from
   Michal Majchrowicz.
VersionDeltaFile
1.256+2-2usr.bin/tmux/input.c
1.204+2-2usr.bin/tmux/tty-keys.c
+4-42 files

FreeBSD/src e56858fcontrib/netbsd-tests/lib/libc/gen/posix_spawn t_fileactions.c

posix_spawn test: switch to POSIX spelling for addchdir and addfchdir

Reviewed by:    dim
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56222
DeltaFile
+2-2contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c
+2-21 files

FreeBSD/src b7b485elib/libc/gen posix_spawn.3

posix_spawn_file_action_addopen.3: ignoring close failure is now approved

Reviewed by:    dim
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Differential revision:  https://reviews.freebsd.org/D56222
DeltaFile
+4-2lib/libc/gen/posix_spawn.3
+4-21 files

FreeBSD/src 7caa711. ObsoleteFiles.inc, include spawn.h

posix_spawn: actions chdir and fchdir are now required by POSIX

Drop the _np suffix.

Reviewed by:    dim
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56222
DeltaFile
+17-12lib/libc/gen/posix_spawn_file_actions_addopen.3
+5-0lib/libc/gen/posix_spawn.c
+4-0include/spawn.h
+2-2lib/libc/gen/Makefile.inc
+2-2lib/libc/gen/posix_spawn.3
+4-0ObsoleteFiles.inc
+34-161 files not shown
+36-167 files

LLVM/project d725513mlir/lib/Dialect/Affine/Analysis Utils.cpp, mlir/test/Dialect/SCF foreach-thread-canonicalization.mlir

[MLIR][Affine] Fix null operands in simplifyConstrainedMinMaxOp (#189246)

`mlir::affine::simplifyConstrainedMinMaxOp` called
`canonicalizeMapAndOperands` with `newOperands` that could contain null
`Value()`s. These nulls came from
`unpackOptionalValues(constraints.getMaybeValues(), newOperands)` where
internal constraint variables added by `appendDimVar` (for `dimOp`,
`dimOpBound`, and `resultDimStart*`) have no associated SSA values.

Passing null Values to `canonicalizeMapAndOperands` risks undefined
behavior:
- `seenDims.find(null_value)` in the DenseMap causes all null operands
to collide at the same key, producing incorrect dim remapping.
- Any null operand that remains referenced in the result map would
propagate as a null Value into `AffineValueMap`, crashing callers that
try to use those operands to create ops.

Fix: Before calling `canonicalizeMapAndOperands`, filter null operands
from `newOperands` by replacing their dim/symbol positions in `newMap`

    [6 lines not shown]
DeltaFile
+52-1mlir/test/Dialect/SCF/foreach-thread-canonicalization.mlir
+41-0mlir/lib/Dialect/Affine/Analysis/Utils.cpp
+93-12 files

LLVM/project a7bf249mlir/lib/Interfaces/Utils InferIntRangeCommon.cpp, mlir/test/Dialect/Affine int-range-interface.mlir

[mlir][IntRangeAnalysis] Fix assertion in inferAffineExpr for mod with range crossing modulus boundary (#188842)

The "small range with constant divisor" optimization in
`inferAffineExpr` for `AffineExprKind::Mod` assumed that if the dividend
range span (`lhsMax - lhsMin`) is less than the divisor, then the mod
results form a contiguous range. This is not always true, as the range
can straddle a modulus boundary.

For example, `[14, 17] mod 8`:
- Span is 3 < 8, so the old condition passed
- But `14%8=6` and `17%8=1` (wraps at 16)
- `umin=6, umax=1` → assertion `umin.ule(umax)` fails

The fix adds a same-quotient check (`lhsMin/rhs == lhsMax/rhs`) to
ensure both endpoints fall within the same modular period. When they
don't, we fall back to the conservative `[0, divisor-1]` range.

Assisted-by: Cursor (Claude)

Signed-off-by: Yu-Zhewen <zhewenyu at amd.com>
DeltaFile
+12-0mlir/test/Dialect/Affine/int-range-interface.mlir
+7-5mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp
+19-52 files

NetBSD/pkgsrc-wip 6acb232lxqt-wayland-session distinfo Makefile, lxqt-wayland-session/patches patch-startlxqtwayland.in patch-CMakeLists.txt

lxqt-wayland-session: fix startlxqtwayland
DeltaFile
+97-0lxqt-wayland-session/patches/patch-startlxqtwayland.in
+2-1lxqt-wayland-session/distinfo
+1-1lxqt-wayland-session/patches/patch-CMakeLists.txt
+1-0lxqt-wayland-session/Makefile
+101-24 files

FreeBSD/ports 729f1fanet/rustconn distinfo Makefile.crates

net/rustconn: Update to 0.10.9

ChangeLog:      https://github.com/totoshko88/RustConn/releases/tag/v0.10.9
Reported by:    "github-actions[bot]" <notifications at github.com>
DeltaFile
+101-103net/rustconn/distinfo
+49-50net/rustconn/Makefile.crates
+1-1net/rustconn/Makefile
+151-1543 files

NetBSD/pkgsrc Ur7G4Qfdoc CHANGES-2026

   doc: Updated devel/jj to 0.40.0
VersionDeltaFile
1.2082+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc 2HgH9CIdevel/jj distinfo cargo-depends.mk

   jj: update to 0.40.0.

   ## [0.40.0] - 2026-04-01

   ### New features

   * New `diff_lines_added()` and `diff_lines_removed()` revset functions for
     matching content on only one side of a diff.

   * The `end` parameter in the `String.substr(start, end)` templating method is
     now optional. If not given, `substr()` returns from `start` to the end of the
     string.

   * `WorkspaceRef` templates now provide a `.root()` method to show the absolute
     path to each workspace root.

   * The `jj arrange` TUI now includes immediate parents and children. They are not
     selectable and are dimmed by default.


    [24 lines not shown]
VersionDeltaFile
1.33+259-223devel/jj/distinfo
1.32+85-73devel/jj/cargo-depends.mk
1.39+2-2devel/jj/Makefile
+346-2983 files

NetBSD/pkgsrc XT4RFOndoc CHANGES-2026

   doc: Updated devel/jj-docs to 0.40.0
VersionDeltaFile
1.2081+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc dyyPTvjdevel/jj-docs distinfo Makefile

   jj-docs: update to 0.40.0.

   Match jj.
VersionDeltaFile
1.7+4-4devel/jj-docs/distinfo
1.7+2-2devel/jj-docs/Makefile
+6-62 files

LLVM/project c80443cclang/include/clang/StaticAnalyzer/Core/PathSensitive CoreEngine.h ExprEngine.h, clang/lib/StaticAnalyzer/Core ExprEngine.cpp CoreEngine.cpp

[NFC][analyzer] Eliminate SwitchNodeBuilder (#188096)

This commit removes the class `SwitchNodeBuilder` because it just
obscured the logic of switch handling by hiding some parts of it in
another source file.
DeltaFile
+31-11clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+0-23clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
+0-18clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
+11-1clang/test/Analysis/switch-basics.c
+0-1clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
+42-545 files

OpenBSD/src 38ScMztregress/lib/libssl/unit ssl_versions.c

   Fix min vs max in failure output.
VersionDeltaFile
1.21+3-3regress/lib/libssl/unit/ssl_versions.c
+3-31 files

FreeBSD/ports 60ea5dbmisc/py-mcp distinfo Makefile

misc/py-mcp: Update to 1.27.0

ChangeLog:      https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.27.0
Reported by:    Max Isbey <notifications at github.com>
DeltaFile
+3-3misc/py-mcp/distinfo
+1-1misc/py-mcp/Makefile
+4-42 files

FreeBSD/ports ea4b8e4misc/ggml Makefile distinfo

misc/ggml: update 0.9.8 → 0.9.11

PR:             294215 (fix for SIGILL)
DeltaFile
+5-4misc/ggml/Makefile
+3-3misc/ggml/distinfo
+8-72 files