LLVM/project a946310 — clang/lib/CodeGen CodeGenFunction.h CGExpr.cpp, clang/test/CodeGen attr-counted-by-align-value.c

[Clang][counted_by] Keep the align_value assumption on the bounds-checked load

With -fsanitize=array-bounds, a subscript of a 'counted_by' pointer field
loads the pointer directly from the field's l-value, so that the bounds
check can reuse the field's address instead of re-evaluating the base.
That load bypassed ScalarExprEmitter, which is where the 'align_value'
assumption for a loaded l-value is emitted. Enabling array-bounds
therefore silently dropped the llvm.assume alignment bundle and, with
-fsanitize=alignment, the alignment-assumption check as well.

Move EmitLValueAlignmentAssumption from ScalarExprEmitter into
CodeGenFunction, so that the direct-load path can share it, and call it
on the loaded pointer.

Assisted-by: Claude Opus 5.5
DeltaFile
+2-36clang/lib/CodeGen/CGExprScalar.cpp
+35-0clang/lib/CodeGen/CodeGenFunction.cpp
+27-0clang/test/CodeGen/attr-counted-by-align-value.c
+8-3clang/lib/CodeGen/CGExpr.cpp
+6-0clang/lib/CodeGen/CodeGenFunction.h
+78-395 files

LLVM/project 2fbd0c7 — mlir/lib/Interfaces CMakeLists.txt

[mlir] Added missing cmake dependency. (#233628)
DeltaFile
+1-0mlir/lib/Interfaces/CMakeLists.txt
+1-01 files

LLVM/project d22d801 — mlir/lib/Dialect/Arith/Transforms IntRangeOptimizations.cpp, mlir/test/Dialect/Arith int-range-narrowing.mlir

[mlir][arith] Drop invalid overflow flags when narrowing (#233324)

Preserve `nsw` only when narrowing preserves signed operand and result
values, and `nuw` only when it preserves unsigned values. Flags proven
at the original width may otherwise introduce poison after narrowing.

Add concrete regression cases for `addi`, `subi`, `muli`, and `shli`,
covering both overflow flags and retention of valid flags.

Assisted-by: Codex
DeltaFile
+162-0mlir/test/Dialect/Arith/int-range-narrowing.mlir
+13-0mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp
+175-02 files

LLVM/project a7d1c52 — mlir/lib/Dialect/Arith/IR ArithOps.cpp, mlir/test/Dialect/Arith canonicalize.mlir

[mlir][arith] Fix integer-to-float comparison canonicalization

Reject conversions that can produce NaN or saturate, and formats
that cannot represent zero or signed inputs. Preserve safe rewrites
when the integer range fits the floating-point exponent range.

Handle unconditional cmpf predicates without reaching an unreachable
case. Add regression coverage for exotic formats and rounding limits.

Validation used existing binaries; no rebuild was performed.
DeltaFile
+193-0mlir/test/Dialect/Arith/canonicalize.mlir
+31-1mlir/lib/Dialect/Arith/IR/ArithOps.cpp
+224-12 files

LLVM/project fa21a15 — clang/test/CodeGen opt-record-remarks-section.c, llvm/lib/CodeGen/AsmPrinter AsmPrinter.cpp

[llvm] Absolutize the remarks filename using LLVMContext's VFS (#233483)

This builds on top of https://github.com/llvm/llvm-project/pull/232879
to replace two calls to `sys::fs::make_absolute()` (that trigger IO
sandbox violations) with a centralized call to
`vfs::FileSystem::makeAbsolute()`.

rdar://184781402
DeltaFile
+26-0clang/test/CodeGen/opt-record-remarks-section.c
+11-0llvm/lib/IR/LLVMRemarkStreamer.cpp
+5-5llvm/lib/Remarks/YAMLRemarkSerializer.cpp
+2-1llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+44-64 files

LLVM/project 0c9e965 — clang/include/clang/CIR/Dialect/IR CIROps.td, clang/include/clang/CIR/Interfaces CIRLoopOpInterface.td

[CIR] Implement 'flattening' for loop hints (#233567)

The loop hints need to be propagated to the branches that jump back to
the 'beginning' of an iteration. This patch adds the loop-hints to the
br/brcond operations, and makes sure they are propagated during
flattening.

Additionally, EHABI Lowering work needed to happen to make sure the
original branch's loop_hints are rebuilt with the cir.br. There wasn't a
good way to test this that I could find, so it is purely for
completeness.

This is the 2nd in a set of 3 patches, the previous made sure the
frontend lowered to CIR, the next will make sure we lower properly to
LLVM-IR.
DeltaFile
+442-48clang/test/CIR/CodeGen/loop-hints.cpp
+38-19clang/lib/CIR/Dialect/Transforms/FlattenCFG.cpp
+15-5clang/include/clang/CIR/Dialect/IR/CIROps.td
+10-0clang/include/clang/CIR/Interfaces/CIRLoopOpInterface.td
+4-4clang/test/CIR/Transforms/flatten-loop-cleanup.cir
+4-1clang/lib/CIR/Dialect/Transforms/EHABILowering.cpp
+513-776 files

FreeBSD/ports ce97aa4 — games/etlegacy Makefile distinfo

games/etlegacy: Update to 2.86.2
DeltaFile
+7-7games/etlegacy/distinfo
+2-2games/etlegacy/Makefile
+9-92 files

LLVM/project 17e88c8 — lldb/bindings/python python.swig, lldb/docs doxygen.cfg.in

[lldb][docs] Share formatting links between Doxygen and Sphinx

Define a documentation alias that expands to an absolute URL in Doxygen
and a Sphinx doc reference in generated Python docstrings. This keeps
links clickable in both outputs without absolute self-link warnings.

LLM-aided
DeltaFile
+5-0lldb/bindings/python/python.swig
+2-1lldb/docs/doxygen.cfg.in
+1-1lldb/include/lldb/API/SBThread.h
+1-1lldb/include/lldb/API/SBFrame.h
+1-1lldb/include/lldb/API/SBFormat.h
+10-45 files

NetBSD/pkgsrc exP3lkg — lang/librep distinfo, lang/librep/patches patch-configure.ac patch-configure

   librep: note upstream version of some build fixes

   (There actually is an upstream still, it just hasn't released anything
   since 2017, and its main archive site is no longer functioning. Their
   patching here is basically the same as what was already committed.)
VersionDeltaFile
1.27+3-3lang/librep/distinfo
1.2+2-1lang/librep/patches/patch-configure.ac
1.2+2-1lang/librep/patches/patch-configure
+7-53 files

LLVM/project dd9c088 — llvm/test/CodeGen/AArch64/GlobalISel combine-simplify-demanded-bits.mir combine-simplify-demanded-bits-debug.mir

[llvm][GlobalIsel] Require asserts for new GlobalIsel tests (#233602)

https://github.com/llvm/llvm-project/pull/198808 missed adding this,
breaking some release buildbots. Other similar tests require assertions,
so just follow suit.

See https://lab.llvm.org/buildbot/#/builders/11/builds/51564
DeltaFile
+1-0llvm/test/CodeGen/AArch64/GlobalISel/combine-simplify-demanded-bits.mir
+1-0llvm/test/CodeGen/AArch64/GlobalISel/combine-simplify-demanded-bits-debug.mir
+2-02 files

FreeBSD/ports 7a70f66 — net-im/signal-desktop Makefile

net-im/signal-desktop: Bump port revision after electron44 update (dc082ed575e1)
DeltaFile
+1-1net-im/signal-desktop/Makefile
+1-11 files

FreeBSD/ports dc082ed — devel/electron44/files patch-electron_spec_api-desktop-capturer.spec.ts patch-electron_spec_api-browser-window.spec.ts, devel/electron44/files/packagejsons yarn.lock

devel/electron44: Update to 44.9.0

Changelog:
- https://github.com/electron/electron/releases/tag/v44.8.0
- https://github.com/electron/electron/releases/tag/v44.9.0

Reported by:    GitHub (watch releases)
DeltaFile
+3-119devel/electron44/files/packagejsons/yarn.lock
+41-41devel/electron44/files/patch-electron_spec_api-app.spec.ts
+31-31devel/electron44/files/patch-third__party_electron__node_deps_uv_unofficial.gni
+28-28devel/electron44/files/patch-third__party_electron__node_deps_cares_unofficial.gni
+27-27devel/electron44/files/patch-electron_spec_api-browser-window.spec.ts
+21-21devel/electron44/files/patch-electron_spec_api-desktop-capturer.spec.ts
+151-26743 files not shown
+361-49149 files

LLVM/project b91e6c5 — llvm/utils/release github-upload-release.py

github-upload-release: Update script to work with draft releases (#229909)

The API endpoint for getting a release does not work for draft releases,
so we need to fetch all the releases instead and manually search for the
one to update.
DeltaFile
+17-3llvm/utils/release/github-upload-release.py
+17-31 files

LLVM/project a1fa72e — llvm/include/llvm/Support SourceMgrDiagnosticVerifier.h, llvm/lib/Support CMakeLists.txt SourceMgrDiagnosticVerifier.cpp

[Support] Extract SourceMgrDiagnosticVerifier from MLIR's verifier handler. NFC (#227565)

Move the SourceMgr-based `expected-(error|warning|remark|note)` diagnostic
parsing and matching logic out of `mlir/lib/IR/Diagnostics.cpp` into a
reusable `llvm::SourceMgrDiagnosticVerifier` class in `LLVMSupport` so that
non-MLIR tools (such as `llvm-mc -verify`) can share the same
implementation.

`mlir::SourceMgrDiagnosticVerifierHandler` is now a thin MLIR-specific
adapter around `llvm::SourceMgrDiagnosticVerifier`.

Assisted-by: AI tooling
Pull-Request: https://github.com/llvm/llvm-project/pull/227565
DeltaFile
+17-270mlir/lib/IR/Diagnostics.cpp
+255-0llvm/lib/Support/SourceMgrDiagnosticVerifier.cpp
+144-0llvm/include/llvm/Support/SourceMgrDiagnosticVerifier.h
+1-0llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
+1-0llvm/lib/Support/CMakeLists.txt
+418-2705 files

LLVM/project 64af651 — lldb/include/lldb/API SBThread.h SBFrame.h

[lldb][docs] Preserve URLs in API header comments

Keep absolute URLs in comments shared with Doxygen, which does not
interpret Sphinx doc roles.

LLM-aided
DeltaFile
+1-1lldb/include/lldb/API/SBThread.h
+1-1lldb/include/lldb/API/SBFrame.h
+1-1lldb/include/lldb/API/SBFormat.h
+3-33 files

LLVM/project 759ba87 — llvm/test/CodeGen/AMDGPU clmul.ll amdgcn.bitcast.1024bit.ll, llvm/test/CodeGen/NVPTX atomicrmw-elementwise-sm90.ll atomicrmw-elementwise-sm70.ll

Merge main into LLDB documentation link changes

LLM-aided
DeltaFile
+31,848-0llvm/test/CodeGen/NVPTX/atomicrmw-elementwise-sm60.ll
+31,310-0llvm/test/CodeGen/NVPTX/atomicrmw-elementwise-sm70.ll
+22,710-0llvm/test/CodeGen/NVPTX/atomicrmw-elementwise-sm90.ll
+10,540-10,356llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+5,611-5,555llvm/test/CodeGen/RISCV/clmul.ll
+2,843-3,915llvm/test/CodeGen/AMDGPU/clmul.ll
+104,862-19,8267,143 files not shown
+474,029-202,5297,149 files

NetBSD/pkgsrc HT0aJFx — x11/rep-gtk2 Makefile

   rep-gtk2: fix builds with GCC >= 14
VersionDeltaFile
1.67+4-1x11/rep-gtk2/Makefile
+4-11 files

NetBSD/pkgsrc mAMPKg2 — security/openssl builtin.mk

   openssl: minor spelling, grammar, style tweaks in comments
VersionDeltaFile
1.53+9-6security/openssl/builtin.mk
+9-61 files

OpenZFS/src a0c443a — module/os/linux/spl spl-kmem-cache.c

Linux: avoid waking kswapd when growing vmem slabs

Since Linux 7.0, vm_area_alloc_pages() first tries to back a vmalloc
area with pages of order up to ilog2(nr_pages).  Those attempts clear
__GFP_DIRECT_RECLAIM but keep __GFP_KSWAPD_RECLAIM, so every failed
attempt wakes kswapd even though the order-0 fallback succeeds.

SPL slabs of the zio_buf_comb caches are 1-8 MiB (obj_per_slab x
object size), so their growth requests orders 8-10.  On a host whose
free memory is fragmented these attempts fail continuously during
I/O, kswapd reclaims the ARC (down to arc_c_min) and then swaps
anonymous memory, while tens of GiB stay free.

Slabs are grown asynchronously from spl_cache_grow_work(), which can
sleep and reclaim directly.  Clear __GFP_KSWAPD_RECLAIM for these
allocations.  The high-order attempts then fail quietly, and the
order-0 path keeps direct reclaim and retries, so a grow cannot fail
where it would not have failed before.


    [4 lines not shown]
DeltaFile
+14-1module/os/linux/spl/spl-kmem-cache.c
+14-11 files

LLVM/project 841a3c5 — llvm/lib/DebugInfo/CodeView TypeRecordMapping.cpp, llvm/test/DebugInfo/COFF types-data-members.ll

[DebugInfo][CodeView] Fix VFTableShape slot decoding order (#233442)

While working on something else (something like
[MCCAS](https://llvm.org/devmtg/2024-10/slides/techtalk/Rastogi-Fine-grained-compilation-caching-using-llvm-cas.pdf)
for CodeView) I noticed that:
1. The LF_VTSHAPE type record is `TypeRecordMapping` got its
deserialization wrong (this PR)
2. In the usual Codgen path in Clang we get through a
serialize/deserialize/reserialize cycle for each CodeView record (fix
here https://github.com/llvm/llvm-project/pull/233609)

This PR fixes the first issue. In VFTableShapeRecord deserialization
(read), the high and low nibbles were reversed. Writing got it right.

Added a unit test because that's the simplest and more direct thing we
could do.

Also checked against the latest MSVC to ensure we do the right thing.
DeltaFile
+59-0llvm/unittests/DebugInfo/CodeView/TypeRecordMappingTest.cpp
+2-2llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp
+1-1llvm/test/DebugInfo/COFF/types-data-members.ll
+1-0llvm/unittests/DebugInfo/CodeView/CMakeLists.txt
+63-34 files

NetBSD/pkgsrc lcc5A7h — x11/rep-gtk2 Makefile

   rep-gtk2: use https for the HOMEPAGE
VersionDeltaFile
1.66+2-2x11/rep-gtk2/Makefile
+2-21 files

NetBSD/pkgsrc JQTJJQG — lang/librep Makefile

   librep: use https for the HOMEPAGE
VersionDeltaFile
1.73+2-2lang/librep/Makefile
+2-21 files

NetBSD/pkgsrc TnNQnpO — wm/sawfish Makefile

   sawfish: update to a somehwat more current home page
VersionDeltaFile
1.123+2-2wm/sawfish/Makefile
+2-21 files

LLVM/project bb44b90 — llvm/test/Transforms/SLPVectorizer semanticly-same.ll

[SLP] Add new test for LShr/UDiv conversions with Alt opcodes (#233590)

Tests courtesy of @alexey-bataev for #181731.
DeltaFile
+52-0llvm/test/Transforms/SLPVectorizer/semanticly-same.ll
+52-01 files

NetBSD/pkgsrc X9Jm3Wr — lang/librep Makefile

   librep: undo previous change, the site may still be relevant
VersionDeltaFile
1.72+2-2lang/librep/Makefile
+2-21 files

LLVM/project 32353d4 — flang/lib/Optimizer/Transforms LoopInvariantCodeMotion.cpp, flang/test/Transforms licm-hoisted-location.fir

[flang][debug] Clear the source line of operations hoisted by LICM (#233584)

Fixes #233484.

When `flang-licm` hoists a loop-invariant operation, the operation keeps
the location of the statement it was written in. Because the hoist point
precedes the loop, the line table then claims that statement begins in
the loop setup code, and a breakpoint placed on the statement binds
there rather than in the loop body. At that address the variables the
statement reads are not live yet, so they print as `<optimized out>` in
gdb.

This patch clears the line and column of a hoisted operation, keeping
the file. LLVM does the same to instructions it hoists or sinks, so that
one does not keep reporting a line it no longer belongs to.
DeltaFile
+87-0flang/test/Transforms/licm-hoisted-location.fir
+24-0flang/lib/Optimizer/Transforms/LoopInvariantCodeMotion.cpp
+111-02 files

NetBSD/pkgsrc lZXsmfk — lang/librep Makefile

   librep: comment out HOMEPAGE, it is not relevant now
VersionDeltaFile
1.71+2-2lang/librep/Makefile
+2-21 files

FreeBSD/ports 2cebb1b — graphics/openfx-misc Makefile distinfo

graphics/openfx-misc: update to 2.5.0

And update the maintainer.

PR:             283411
DeltaFile
+7-7graphics/openfx-misc/distinfo
+4-4graphics/openfx-misc/Makefile
+11-112 files

NetBSD/pkgsrc rAZuE1l — lang/librep Makefile distinfo, lang/librep/patches patch-src_sockets.c patch-intl_dcgettext.c

   librep: fix builds with GCC >= 14

   Tested on NetBSD 11.99.9 with GCC 14.4.0 and Fedora Linux 44 with GCC
   16.2.1. (Given the configure script was generated from a significantly
   older version of autoconf, and the upstream appears to be gone,
   patching is applied directly against it for the minimal diff, but an
   equivalent change to configure.ac is included, should it be useful to
   someone.)
VersionDeltaFile
1.1+54-0lang/librep/patches/patch-configure
1.1+48-0lang/librep/patches/patch-configure.ac
1.1+15-0lang/librep/patches/patch-intl_dcgettext.c
1.1+14-0lang/librep/patches/patch-src_sockets.c
1.26+5-1lang/librep/distinfo
1.70+3-1lang/librep/Makefile
+139-26 files

LLVM/project 25674b4 — llvm/lib/CodeGen ProcessImplicitDefs.cpp

ProcessImplicitDefs: Fix erasing instruction before debug printing it (#233594)
DeltaFile
+1-1llvm/lib/CodeGen/ProcessImplicitDefs.cpp
+1-11 files