LLVM/project b15f58cclang/docs ReleaseNotes.md, clang/lib/Sema SemaDecl.cpp

[clang][Sema] Fix false-positive -Wshadow for friend functions (#221249)

A friend function defined inline in a class body has no implicit `this`,
so a parameter with the same name as a field cannot actually shadow it.
`CheckShadow` only exempted static members and members with an explicit
object parameter, it never handled the case where the enclosing function
isn't a member function at all, which fell through to the generic
diagnostic. In this PR I extend the exemption to cover that case and
added the regression test.

In this PR, I used Claude to help navigate the codebase and explain key
functions.
Fixes #221190
DeltaFile
+23-0clang/test/SemaCXX/warn-shadow.cpp
+8-2clang/lib/Sema/SemaDecl.cpp
+4-0clang/docs/ReleaseNotes.md
+35-23 files

LLVM/project b249b47llvm/utils profcheck-xfail.txt

[Profcheck] Exclude two new tests (#223690)

Exclude these tests for now. We haven't gotten to AtomicExpand/ARM yet,
and the AggressiveInstCombine change is overlapping.
DeltaFile
+2-0llvm/utils/profcheck-xfail.txt
+2-01 files

LLVM/project 18b447bllvm/lib/Target/PowerPC PPCMIPeephole.cpp, llvm/test/CodeGen/PowerPC sext_elimination.mir fold-rlwinm.mir

PowerPC: Remove LiveVariables dependency from PPCMIPeephole

PPCMIPeephole only used LiveVariables to keep kill/dead flags valid after its
transforms, and made no real use of the analysis.

A later LiveVariables run recomputes those flags from scratch anyway, so
just clear possbly stale kill/dead flags on changed registers.

PPCMIPeephole was the only user of LiveVariables at this point in the
pipeline, so also drop the explicit LiveVariables run before
PPCTLSDynamicCallPass, whose comment references a > 10 year old build
bot failure.

Co-authored-by: Claude (Claude-Opus-4.8)
DeltaFile
+140-70llvm/test/CodeGen/PowerPC/convert-rr-to-ri-instrs.mir
+40-40llvm/test/CodeGen/PowerPC/fold-rot-and-peephole.mir
+57-13llvm/test/CodeGen/PowerPC/convert-ri-addi-to-ri.mir
+24-25llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
+30-17llvm/test/CodeGen/PowerPC/fold-rlwinm.mir
+28-14llvm/test/CodeGen/PowerPC/sext_elimination.mir
+319-17916 files not shown
+448-31922 files

LLVM/project 473ea07clang/test/CodeGenHLSL/resources Textures-Load.hlsl, flang/test/Lower/OpenACC acc-parallel-loop.f90

Rebase, address comments

Created using spr 1.3.7
DeltaFile
+1,376-202llvm/test/Transforms/LoopVectorize/predicated-inductions-vs-first-order-recurrences.ll
+752-318llvm/test/Analysis/CostModel/ARM/shuffle.ll
+552-0llvm/test/Analysis/LoopAccessAnalysis/zero-distance-mixed-width.ll
+294-161clang/test/CodeGenHLSL/resources/Textures-Load.hlsl
+448-0flang/test/Lower/OpenACC/acc-parallel-loop.f90
+288-119llvm/test/CodeGen/AArch64/intrinsic-cttz-elts-sve.ll
+3,710-800421 files not shown
+16,758-6,013427 files

LLVM/project 7a40d56llvm/lib/CodeGen RegisterPressure.cpp

Trim comment
DeltaFile
+3-5llvm/lib/CodeGen/RegisterPressure.cpp
+3-51 files

LLVM/project c9fbbd9llvm/test/CodeGen/X86 min-legal-vector-width.ll inline-asm-pr76416.ll

RegisterPressure: Remove dead defs correctly

When an instruction has overlapping register defs where only some carry the
dead flag (for example a dead super-register def alongside a live sub-register
def), the collector left the shared register units in both the live and dead def
sets. That produced a PressureDiff decrement with no matching increment and tripped
the "PSet overflow/underflow" assertion in getUpwardPressureDelta.

A register unit is dead if any def covering it is dead, regardless of operand
order. Reconcile by subtracting the dead defs from the live defs instead of the
reverse: removeRegLanes only clears the overlapping units, so a def keeps any
units a dead def does not cover.

Fixes #155807.
Fixes #149144.
Fixes #76416.
Fixes #205272.

Co-authored-by: XChy <xxs_chy at outlook.com>
Co-authored-by: Claude claude-opus-4.8 <noreply at anthropic.com>
DeltaFile
+233-216llvm/test/CodeGen/X86/masked-udiv.ll
+106-89llvm/test/CodeGen/X86/vector-idiv-strictfp.ll
+72-60llvm/test/CodeGen/X86/vector-idiv-udiv-512.ll
+42-40llvm/test/CodeGen/X86/udiv_fix_sat.ll
+75-0llvm/test/CodeGen/X86/inline-asm-pr76416.ll
+35-35llvm/test/CodeGen/X86/min-legal-vector-width.ll
+563-4409 files not shown
+708-47215 files

NetBSD/pkgsrc-wip 30b5c39tinygo go-modules.mk distinfo, tinygo/patches patch-go.mod patch-GNUmakefile

tinygo: update to 0.42.0

- Support for Go 1.27 and LLVM 22
- Runtime panics (divide-by-zero, nil dereference, map and channel
  failures) are now recoverable, so recover() works as expected
- Compiler generates type-specific hash and equal functions
- Many GC, scheduler, and timer fixes for more solid concurrent code
- Dynamic USB endpoint registration on RP2, SAMD21/51, and nRF52840
- Big ESP32 step forward: interrupts, ADC, flash XIP, and the new
  ESP32-C6
- New targets: STM32H7, the Puya PY32F family, and UEFI
- New boards: ESP32-S3-BOX-3, M5Stack Stamp-S3A, and Pimoroni
  Badger 2350
DeltaFile
+757-68tinygo/PLIST
+250-57tinygo/distinfo
+75-12tinygo/go-modules.mk
+23-10tinygo/patches/patch-go.sum
+0-25tinygo/patches/patch-GNUmakefile
+12-7tinygo/patches/patch-go.mod
+1,117-1793 files not shown
+1,156-1879 files

LLVM/project eccf6a1llvm/include/llvm/Analysis ScalarEvolution.h, llvm/lib/Analysis ScalarEvolution.cpp

[SCEV] Return a SCEVUse from getAddRecExpr and propagate use flags. (#221606)

Same as https://github.com/llvm/llvm-project/pull/220007 but for
getAddRecExpr:

Pass both expression and use specific flags to getAddRecExpr and 
propagate the use flags, if valid conservatively. That is, the final expression
forms an AddRec with the same operands. For example, it is not valid to
propagate the use flags if other (sub-)expressions have been inlined.

It also includes a few mechanical changes, to update users that still
expected const SCEV *.

PR: https://github.com/llvm/llvm-project/pull/221606
DeltaFile
+102-0llvm/unittests/Analysis/ScalarEvolutionTest.cpp
+23-12llvm/lib/Analysis/ScalarEvolution.cpp
+6-6llvm/include/llvm/Analysis/ScalarEvolution.h
+2-1llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
+133-194 files

LLVM/project 637ead9mlir/lib/Dialect/Linalg/Transforms Generalization.cpp

[MLIR][Linalg] Fix ASAN bug from #222959 (#223683)
DeltaFile
+9-3mlir/lib/Dialect/Linalg/Transforms/Generalization.cpp
+9-31 files

LLVM/project bc26ee7llvm/lib/Target/AMDGPU GCNHazardRecognizer.cpp, llvm/test/CodeGen/AMDGPU mai-hazards-gfx90a.mir mai-hazards-gfx942.mir

review
DeltaFile
+128-0llvm/test/CodeGen/AMDGPU/mai-hazards-gfx942.mir
+11-7llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+9-0llvm/test/CodeGen/AMDGPU/mai-hazards-gfx90a.mir
+148-73 files

LLVM/project a67d3dallvm/lib/Target/AMDGPU GCNHazardRecognizer.h GCNHazardRecognizer.cpp

Review: fix naming and minor changes
DeltaFile
+18-18llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+5-5llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h
+23-232 files

LLVM/project 344a8e2llvm/lib/Target/AMDGPU GCNHazardRecognizer.cpp

review: address suggestions
DeltaFile
+11-9llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+11-91 files

LLVM/project 96fc618llvm/lib/Target/AMDGPU GCNHazardRecognizer.cpp, llvm/test/CodeGen/AMDGPU mai-hazards-gfx942.mir

[AMDGPU] Add wait states between different MFMAs sharing an accumulator
DeltaFile
+30-0llvm/test/CodeGen/AMDGPU/mai-hazards-gfx942.mir
+18-0llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+48-02 files

LLVM/project c9d7b9ellvm/lib/Target/AMDGPU GCNHazardRecognizer.h GCNHazardRecognizer.cpp

[AMDGPU][NFC] Move MFMA overlapped src2/C wait states into a helper
DeltaFile
+63-66llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+5-0llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h
+68-662 files

FreeBSD/ports 2a26bc2devel/linuxapi pkg-plist distinfo

devel/linuxapi: Update to g20260915
DeltaFile
+5-2devel/linuxapi/Makefile
+3-3devel/linuxapi/distinfo
+1-0devel/linuxapi/pkg-plist
+9-53 files

LLVM/project be1ca5fllvm/lib/Target/ARM ARMInstrThumb.td ARMInstrInfo.td, llvm/test/CodeGen/ARM setjmp_longjmp.ll

[ARM] Fix Int_eh_sjlj_longjmp instruction size (#223639)

These pseudos expand to one more instruction on non-darwin/windows
platforms.

See: https://github.com/llvm/llvm-project/blob/88107b203b9e02a2d6ce87bf8ba0d98cb6ff53ec/llvm/lib/Target/ARM/ARMAsmPrinter.cpp#L2738-L2764
DeltaFile
+6-0llvm/test/CodeGen/ARM/setjmp_longjmp.ll
+2-2llvm/unittests/Target/ARM/InstSizes.cpp
+2-2llvm/lib/Target/ARM/ARMInstrThumb.td
+2-2llvm/lib/Target/ARM/ARMInstrInfo.td
+4-0llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+16-65 files

LLVM/project 01979b5llvm/include/llvm/CodeGen SlotIndexes.h, llvm/lib/CodeGen SlotIndexes.cpp

AMDGPU: Maintain LiveIntervals when removing blocks in SILowerControlFlow

removeMBBifRedundant removed a redundant block's instructions from the
LiveIntervals maps but not the block itself, leaving a stale idx2MBBMap entry
that crashed getMBBFromIndex in the verifier.

Add SlotIndexes::removeMBBFromMaps to drop the erased block's slot range, and
recompute the intervals that spanned it.

Co-authored-by: Claude claude-opus-4.8 <noreply at anthropic.com>
DeltaFile
+95-0llvm/test/CodeGen/AMDGPU/si-lower-control-flow-remove-redundant-block-liveintervals.mir
+24-0llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
+23-0llvm/lib/CodeGen/SlotIndexes.cpp
+5-0llvm/include/llvm/CodeGen/SlotIndexes.h
+147-04 files

LLVM/project 52efc8fllvm/lib/CodeGen SlotIndexes.cpp, llvm/lib/Target/AMDGPU SILowerControlFlow.cpp

Review comments
DeltaFile
+3-11llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
+1-1llvm/lib/CodeGen/SlotIndexes.cpp
+4-122 files

FreeBSD/ports bc787f8math/hs-Agda Makefile distinfo, math/hs-Agda/files patch-__cabal__deps_tasty-1.5.3_tasty.cabal

math/hs-Agda: Update 2.8.0 => 2.8.0.2

* Add WWW for Hackage package
* Remove BROKEN_i386 stance as lang/ghc* is already 64-bit only

Approved by:            haskell@ (alven@)
DeltaFile
+123-149math/hs-Agda/distinfo
+4-99math/hs-Agda/Makefile
+0-11math/hs-Agda/files/patch-__cabal__deps_tasty-1.5.3_tasty.cabal
+127-2593 files

LLVM/project d16a0fcllvm/lib/Target/AMDGPU GCNHazardRecognizer.cpp

review: address suggestions
DeltaFile
+11-9llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+11-91 files

LLVM/project 39e537fclang/test/CodeGen builtins-arm64.c

clang: Fix a test assuming single digit metadata numbers
DeltaFile
+6-6clang/test/CodeGen/builtins-arm64.c
+6-61 files

FreeBSD/ports 94ded80audio/libcoverart Makefile

audio/libcoverart: Mark deprecated

PR:             298440
Approved by:    jhale (maintainer)

(cherry picked from commit fd37c532af0d3c51d0b877f02f63bf2a24f7b38d)
DeltaFile
+4-1audio/libcoverart/Makefile
+4-11 files

LLVM/project 8963be5llvm/lib/Target/AMDGPU AMDGPUTargetTransformInfo.cpp, llvm/test/Analysis/CostModel/AMDGPU fptoui.ll fptosi.ll

[AMDGPU] Model the cost of the expanded integer to/from floating point casts

No instruction converts to or from a 64 bit integer, and narrow vector
lanes are converted one at a time. Price these expansions by the FP64
rate, sdwa and 16 bit instruction support, and price i33 to i63 like
i64 and bf16 like f32 plus rounding.

Assisted-by: Claude Code Opus 5
DeltaFile
+322-218llvm/test/Analysis/CostModel/AMDGPU/cast.ll
+212-117llvm/test/Analysis/CostModel/AMDGPU/expanded-int-fp-casts.ll
+107-0llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+66-38llvm/test/Analysis/CostModel/AMDGPU/fptoui.ll
+66-38llvm/test/Analysis/CostModel/AMDGPU/fptosi.ll
+773-4115 files

LLVM/project 9362acallvm/test/Analysis/CostModel/AMDGPU fptoui.ll fptosi.ll

[NFC][AMDGPU] Add cost tests for integer to/from floating point casts (#223571)

Cover i48, i64, i128, bf16, fp128 and narrow vector lanes across FP64
rates, 16 bit instructions, sdwa and both cost kinds.

Assisted-by: Claude Code Opus 5
DeltaFile
+277-0llvm/test/Analysis/CostModel/AMDGPU/expanded-int-fp-casts.ll
+266-0llvm/test/Analysis/CostModel/AMDGPU/cast.ll
+25-0llvm/test/Analysis/CostModel/AMDGPU/fptoui.ll
+25-0llvm/test/Analysis/CostModel/AMDGPU/fptosi.ll
+593-04 files

LLVM/project ecb8a5ellvm/lib/Target/AMDGPU AMDGPUSwLowerLDS.cpp

[NFC][AMDGPU] Fix two code quality issues in AMDGPUSwLowerLDS

- NumStaticLDS is always a positive number, so it was always true
- Potential `Changed = true` was dropped in the loop
DeltaFile
+35-41llvm/lib/Target/AMDGPU/AMDGPUSwLowerLDS.cpp
+35-411 files

FreeBSD/ports 1cde890databases/py-harlequin-postgres Makefile distinfo

databases/py-harlequin-postgres: Update to 1.5.0

ChangeLog:

1. https://github.com/tconbeer/harlequin-postgres/releases/tag/v1.5.0

Reported by:    Ted Conbeer <notifications at github.com>
DeltaFile
+3-3databases/py-harlequin-postgres/distinfo
+1-1databases/py-harlequin-postgres/Makefile
+4-42 files

OpenBSD/ports FFLzp48www/mozilla-firefox Makefile distinfo, www/mozilla-firefox/patches patch-toolkit_components_downloads_DownloadIntegration_sys_mjs patch-third_party_angle_angle_common_gn_moz_build

   www/mozilla-firefox: MFC update to 156.0.

   see https://www.firefox.com/en-US/firefox/156.0/releasenotes/
   fixes https://www.mozilla.org/fr/security/advisories/mfsa2026-90/
VersionDeltaFile
1.1.10.2+3-3www/mozilla-firefox/patches/patch-security_manager_ssl_nsNSSIOLayer_cpp
1.1.6.6+2-2www/mozilla-firefox/patches/patch-security_nss_lib_nss_nss_h
1.397.2.20+2-2www/mozilla-firefox/distinfo
1.13.2.3+1-1www/mozilla-firefox/patches/patch-toolkit_components_downloads_DownloadIntegration_sys_mjs
1.1.2.2+1-1www/mozilla-firefox/patches/patch-third_party_angle_angle_common_gn_moz_build
1.680.2.22+1-1www/mozilla-firefox/Makefile
+10-106 files

OpenBSD/ports 6cCOroLwww/firefox-esr Makefile distinfo

   www/firefox-esr: update to 140.16.0.

   see https://www.firefox.com/en-US/firefox/140.16.0/releasenotes/
   fixes https://www.mozilla.org/en-US/security/advisories/mfsa2026-92/
VersionDeltaFile
1.180.2.7+4-4www/firefox-esr/distinfo
1.270.2.7+2-2www/firefox-esr/Makefile
+6-62 files

OpenBSD/ports Eh8qWKrwww/firefox-esr Makefile distinfo, www/firefox-esr-i18n Makefile.inc distinfo

   www/firefox-esr: update to 153.3.0.

   see https://www.firefox.com/en-US/firefox/153.3.0/releasenotes/
   fixes https://www.mozilla.org/en-US/security/advisories/mfsa2026-93/
VersionDeltaFile
1.184+162-162www/firefox-esr-i18n/distinfo
1.189+4-4www/firefox-esr/distinfo
1.280+2-3www/firefox-esr/Makefile
1.196+1-1www/firefox-esr-i18n/Makefile.inc
+169-1704 files

OpenBSD/ports 0bt97Uxwww/firefox-i18n distinfo, www/mozilla-firefox Makefile distinfo

   www/mozilla-firefox: update to 156.0.

   see https://www.firefox.com/en-US/firefox/156.0/releasenotes/
   fixes https://www.mozilla.org/fr/security/advisories/mfsa2026-90/
VersionDeltaFile
1.407+164-164www/firefox-i18n/distinfo
1.421+4-4www/mozilla-firefox/distinfo
1.709+3-4www/mozilla-firefox/Makefile
1.17+1-1www/mozilla-firefox/patches/patch-toolkit_components_downloads_DownloadIntegration_sys_mjs
1.2+1-1www/mozilla-firefox/patches/patch-third_party_angle_angle_common_gn_moz_build
1.17+1-1www/mozilla-firefox/patches/patch-config_makefiles_rust_mk
+174-1751 files not shown
+175-1767 files