LLVM/project 5d2330f — clang/lib/Sema SemaExpr.cpp, clang/test/Sema ms_predefined_expr.cpp

[clang] Properly adjust lambda decl context in predefined expressions (#246670)

Resolves #221564

The problem was introduced in #211811. It mistakenly assumes that when
the `DeclContext` of a lambda call operator is encountered, a
corresponding `LambdaScopeInfo` is present on the `Sema.FunctionScopes`
stack.
This assumption holds only during the definition of a lambda, and not if
the call operator is explicitly referenced after the lambda is defined:
```cpp
auto l = []() { return __func__; }; //this is fine
using L = decltype(l);
constexpr auto L::operator()() const { return __func__; } //no LambdaScopeInfo here
```
To fix this, the `DeclContext` in `getPredefinedExprDecl` is adjusted
only if it matches with the call operator of a `LambdaScopeInfo`
currently on the stack.
DeltaFile
+11-10clang/lib/Sema/SemaExpr.cpp
+7-0clang/test/Sema/ms_predefined_expr.cpp
+18-102 files

LLVM/project 82d17cc — llvm/lib/Transforms/Scalar ConstraintElimination.cpp, llvm/test/Transforms/ConstraintElimination large-constant-ints.ll

[ConstraintElim] Check for overflow when adding left-hand side coefficients (#246388)

`getRowForLessEqual` checked the right-hand side coefficients for
overflow but added the left-hand side ones with a plain `+=`, so a
variable that appears several times on the left could wrap and the
compare got folded wrongly. This uses `AddOverflow` and gives up on
overflow, like the right-hand side. On the issue's IR, `opt
-passes=constraint-elimination` folded the compare to `true` before and
leaves it alone now.

Fixes #245363

Assisted-by: Grok Bot (AI coding agent)
DeltaFile
+18-0llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll
+5-2llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+23-22 files

LLVM/project cd1b361 — llvm/test/Transforms/IRCE bad_expander.ll

[IRCE] Generate test checks (NFC) (#248919)
DeltaFile
+94-42llvm/test/Transforms/IRCE/bad_expander.ll
+94-421 files

LLVM/project 121b41f — clang/test/OpenMP amdgpu-unsafe-fp-atomics.cpp

fix test after rebase
DeltaFile
+8-8clang/test/OpenMP/amdgpu-unsafe-fp-atomics.cpp
+8-81 files

LLVM/project 0631bf8 — clang/lib/CodeGen CodeGenFunction.h CGAtomic.cpp, clang/test/OpenMP amdgpu-unsafe-fp-atomics.cpp target_atomic_device_scope.cpp

[OpenMP] Use device scope for atomic constructs on the device

OpenMP 6.0, 17.8.5 specifies that "The memscope clause determines the
binding thread set for an atomic region. If the memscope clause is not
present, the behavior is as if the memscope clause appeared on the
construct with the device scope-specifier."

Thread the sync scopes through codegen amd also add a release note
because this is changing existing behavior.
Existing behavior was overly cautios for OpenMP 5.2, too, though. The
atomic construct never specified the option of having system-level
scope. This only came with the memscope clause and it's "all"
scope-specifier.

Claude assisted with this patch.
DeltaFile
+130-0clang/test/OpenMP/target_atomic_device_scope.cpp
+24-9clang/lib/CodeGen/CGStmtOpenMP.cpp
+16-11clang/lib/CodeGen/CGAtomic.cpp
+12-10llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+8-8clang/test/OpenMP/amdgpu-unsafe-fp-atomics.cpp
+6-3clang/lib/CodeGen/CodeGenFunction.h
+196-413 files not shown
+206-459 files

LLVM/project 22259d7 — llvm/test/CodeGen/AMDGPU amdgcn.bitcast.320bit.ll amdgcn.bitcast.512bit.ll, llvm/test/CodeGen/NVPTX atomicrmw-elementwise-sm70.ll atomicrmw-elementwise-sm60.ll

Merge branch 'main' into users/reble/attributor/remove-aavaluesimplify
DeltaFile
+7,106-7,623llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+2,746-2,857llvm/test/CodeGen/X86/vector-interleaved-store-i16-stride-7.ll
+2,318-2,569llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+1,326-1,926llvm/test/CodeGen/NVPTX/atomicrmw-elementwise-sm70.ll
+1,326-1,926llvm/test/CodeGen/NVPTX/atomicrmw-elementwise-sm60.ll
+1,688-1,190llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.320bit.ll
+16,510-18,0912,457 files not shown
+112,537-52,4442,463 files

LLVM/project 73a8181 — clang/lib/CodeGen CGStmtOpenMP.cpp, clang/test/OpenMP amdgpu-unsafe-fp-atomics.cpp

[OpenMP][clang] Apply atomic options to atomic compare (#240421)

Thread denormal mode, fine-grained memory and remote memory options
through for atomic compare directivs.

Claude assisted with this patch.
DeltaFile
+61-0clang/test/OpenMP/amdgpu-unsafe-fp-atomics.cpp
+27-24llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+34-17llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
+15-23mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+9-2clang/lib/CodeGen/CGStmtOpenMP.cpp
+146-665 files

FreeBSD/ports d8ccb51 — devel/llvm-apple distinfo Makefile

devel/llvm-apple: upgrade to 6.4.3 and disable i386

I got a warning from portscout that it doesn’t build i386. We don’t
need i386 support, so we can drop it.

Differential Revision:  https://reviews.freebsd.org/D62420
DeltaFile
+0-23devel/llvm-apple/Makefile.RUNTIMES
+5-11devel/llvm-apple/Makefile
+3-3devel/llvm-apple/distinfo
+8-373 files

LLVM/project 02a308c — clang/lib/CodeGen ItaniumCXXABI.cpp, clang/test/CIR/CodeGen CIR-internal-linkage-typeinfo-name.cpp

[CodeGen] Added '*' to internal linkage types (#220864)

RTTI typename for internal-linkage types lacked '*', which broke
type_info::operator== and dynamic_cast with libstdc++

Fixes #34255
Fixes #79367
Fixes #59790

AI usage: Claude (reviewed test files)

---------

Co-authored-by: Jones, Matthew (DI SW SIM FRWK PLAT SIMFW HPC) <jones.matthew at siemens.com>
Co-authored-by: Nikolas Klauser <nikolasklauser at berlin.de>
Co-authored-by: Tom <tajames at zoho.com>
DeltaFile
+59-0libcxx/test/libcxx/language.support/support.rtti/type.info/type_info.comparison.internal_linkage.sh.cpp
+51-0clang/test/CIR/CodeGen/CIR-internal-linkage-typeinfo-name.cpp
+51-0clang/test/CodeGenCXX/internal-linkage-typeinfo-name.cpp
+24-26libcxx/test/libcxx/language.support/support.rtti/type.info/type_info.comparison.unmerged.sh.cpp
+31-0libcxx/test/libcxx/language.support/support.rtti/type.info/type_info.name.internal_linkage.pass.cpp
+13-6clang/lib/CodeGen/ItaniumCXXABI.cpp
+229-326 files not shown
+285-4612 files

LLVM/project 0c91293 — llvm/lib/Target/AMDGPU GCNVOPDUtils.cpp

[AMDGPU] Defer VOPD lookup in `checkVOPDRegConstraints` (NFC) (#248899)

The table lookup is relatively expensive so allow cheaper checks to run
first. The change improves compile-time by 1-2% on the motivating
compute shader.

Assisted-by: Claude Opus 5.5
DeltaFile
+45-24llvm/lib/Target/AMDGPU/GCNVOPDUtils.cpp
+45-241 files

LLVM/project c2a4b00 — clang/lib/CIR/Dialect/IR CIRDialect.cpp, clang/test/CIR/CodeGen complex-part-of-zero.cpp

[CIR] Fix crashes in the complex constant folders

The folders of `cir.complex.real`, `cir.complex.imag` and
`cir.complex.create` asserted on constants that the `cir.const` verifier
accepts.

`cir.complex.real` and `cir.complex.imag` cast a constant operand to
`#cir.const_complex`. A complex constant can also be `#cir.zero`,
`#cir.undef` or `#cir.poison`. CIRGen emits `#cir.zero` for a
value-initialized complex, so clang crashed on `__real__ CI()`. A part
of `#cir.zero` now folds to the zero of the element type. A part of
`#cir.undef` or `#cir.poison` folds to undef or poison, as the cast
folder does for its operand.

`cir.complex.create` built a `#cir.const_complex` from any two constant
parts. The attribute holds int or float literals only, so its verifier
failed on a part that is undef, poison or a global view. The folder now
leaves such a create alone.

Assisted-by: Claude Code (Fable 5.2).
DeltaFile
+55-23clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+72-0clang/test/CIR/Transforms/complex-real-fold.cir
+72-0clang/test/CIR/Transforms/complex-imag-fold.cir
+60-0clang/test/CIR/Transforms/complex-create-fold.cir
+32-0clang/test/CIR/CodeGen/complex-part-of-zero.cpp
+291-235 files

LLVM/project e0190b5 — libcxxabi/src private_typeinfo.cpp

[libc++abi] Iterate backwards over bases
DeltaFile
+16-18libcxxabi/src/private_typeinfo.cpp
+16-181 files

LLVM/project acd65f9 — lldb/source/Plugins/SymbolFile/PDB PDBASTParser.h PDBLocationToDWARFExpression.cpp, lldb/unittests/SymbolFile/PDB SymbolFilePDBTests.cpp

[lldb][PDB] Remove the DIA symbol file plugin (#247254)

I think it's time now. This PR removes `SymbolFilePDB` and associated
files. To my knowledge, there have been no major issues in the native
plugin that break the debugging experience.

This completes the RFC:
https://discourse.llvm.org/t/rfc-removing-the-dia-pdb-plugin-from-lldb/87827.
We initially set out to remove the plugin in 23, but didn't due to 22
still requiring a specific version of Python ([this
comment](https://discourse.llvm.org/t/rfc-removing-the-dia-pdb-plugin-from-lldb/87827/28)).

Quick refresher on why we're preferring the native plugin over DIA:
- DIA is only available on Windows, making remote debugging not possible
and for testing lldb itself, we can't run DIA tests that don't run the
target on Linux.
- DIA is a black-box. We don't know its implementation, so there is a
gap when debugging issues with it. Whereas the native plugin is fully
implemented in LLVM itself. This also means we LLVM/Clang and lldb

    [6 lines not shown]
DeltaFile
+0-2,134lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
+0-1,420lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
+0-642lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
+0-255lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
+0-181lldb/source/Plugins/SymbolFile/PDB/PDBLocationToDWARFExpression.cpp
+0-116lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.h
+0-4,74843 files not shown
+13-5,47249 files

LLVM/project 9ec4819 — llvm/test/MC/AMDGPU gfx13_asm_vbuffer_mubuf_err.s gfx13_asm_vbuffer_mubuf.s

Add gfx13 tests
DeltaFile
+9-0llvm/test/MC/AMDGPU/gfx13_asm_vbuffer_mubuf.s
+3-0llvm/test/MC/AMDGPU/gfx13_asm_vbuffer_mubuf_err.s
+12-02 files

FreeBSD/ports 3965990 — graphics/shaderc Makefile

graphics/shaderc: Unbreak after unflavorization of glslang

glslc and libshaderc_shared.so.1 try to link in libglslang.so and
libSPIRV.so, which are now installed along with their static parts. So
we need to add glslang to LIB_DEPENDS instead of BUILD_DEPENDS.

PR:             301481
Reported by:    Bruno Damour <bruno at ruomad.net>, dim
Tested by:      Bruno Damour <bruno at ruomad.net>, dim
Co-authored-by: Dimitry Andric <dim at FreeBSD.org>
DeltaFile
+3-3graphics/shaderc/Makefile
+3-31 files

FreeBSD/ports 7e124f2 — textproc/py-wtf-peewee distinfo Makefile

textproc/py-wtf-peewee: Update 3.0.6 => 3.2.1

Commit log: https://github.com/coleifer/wtf-peewee/compare/3.0.6...3.2.1

While here:
- Update maintainer address.
- Switch to USE_PYTHON=pep517.
- Add missing TEST_DEPENDS (py-markupsafe and py-sqlite3) and unittest.

PR:     301472
DeltaFile
+8-4textproc/py-wtf-peewee/Makefile
+3-3textproc/py-wtf-peewee/distinfo
+11-72 files

OPNSense/core 51deb65 — src/opnsense/mvc/app/views/OPNsense/Firewall alias.volt

Firewall: Alias: clicking an optgroup in the GeoIP selectpicker selects all countries of that region (#11394)
DeltaFile
+25-2src/opnsense/mvc/app/views/OPNsense/Firewall/alias.volt
+25-21 files

LLVM/project a14e387 — llvm/lib/CodeGen Rematerializer.cpp, llvm/unittests/CodeGen RematerializerTest.cpp

Make it work with remat of remat
DeltaFile
+8-1llvm/unittests/CodeGen/RematerializerTest.cpp
+3-2llvm/lib/CodeGen/Rematerializer.cpp
+11-32 files

LLVM/project 49693af — llvm/include/llvm/CodeGen Rematerializer.h, llvm/lib/CodeGen Rematerializer.cpp

[CodeGen][Rematerializer] Always rollback in the original region

This addresses a subtle issue in the rollbacker which would arise when
rematerizalizing between two adjacent rematerialization regions (i.e.,
the first region's end is the second region's start). When
rematerializing the last instruction of the first region at the
beginning of the second region and rolling back later, the re-created
register would end up in the second region instead of the first because
its re-insertion position was set incorrectly.

This is fixed by ensuring that a deleted register's re-insertion
position is always before all its rematerializations in the same block.
DeltaFile
+52-0llvm/unittests/CodeGen/RematerializerTest.cpp
+16-7llvm/lib/CodeGen/Rematerializer.cpp
+3-5llvm/include/llvm/CodeGen/Rematerializer.h
+71-123 files

LLVM/project db78189 — llvm/include/llvm/CodeGen Rematerializer.h, llvm/lib/CodeGen Rematerializer.cpp

[CodeGen][Rematerializer] Fix region boundary tracking logic (#245644)

This addresses a few edge-case/rare issues with keeping the bounds of
rematerialization regions valid and up-to-date as rematerializations
happen.

1. An upper region boundary deleted through dead-def elimination needs
to be pushed to the next valid instruction.
2. Updating any region boundary in any case may require updating
boundaries of other "touching" regions to keep them valid too. Issues
could typically happen when a rematerialization region's end would be
the beginning of the next one. Receding the beginning of the latter
region also requires receding the ending of the former region to keep
them non-overlapping.

Added unit-tests would crash without changes.
DeltaFile
+204-0llvm/unittests/CodeGen/RematerializerTest.cpp
+108-33llvm/lib/CodeGen/Rematerializer.cpp
+44-9llvm/include/llvm/CodeGen/Rematerializer.h
+356-423 files

LLVM/project de7c3fa — clang/lib/CIR/Dialect/IR CIRDialect.cpp, clang/test/CIR/CodeGen complex.cpp

[CIR] Fix crashes in the complex constant folders

The folders of `cir.complex.real`, `cir.complex.imag` and
`cir.complex.create` asserted on constants that the `cir.const` verifier
accepts.

`cir.complex.real` and `cir.complex.imag` cast a constant operand to
`#cir.const_complex`. A complex constant can also be `#cir.zero`,
`#cir.undef` or `#cir.poison`. CIRGen emits `#cir.zero` for a
value-initialized complex, so clang crashed on `__real__ CI()`. A part
of `#cir.zero` now folds to the zero of the element type. A part of
`#cir.undef` or `#cir.poison` folds to undef or poison, as the cast
folder does for its operand.

`cir.complex.create` built a `#cir.const_complex` from any two constant
parts. The attribute holds int or float literals only, so its verifier
failed on a part that is undef, poison or a global view. The folder now
leaves such a create alone.


    [9 lines not shown]
DeltaFile
+55-23clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+72-0clang/test/CIR/Transforms/complex-real-fold.cir
+72-0clang/test/CIR/Transforms/complex-imag-fold.cir
+60-0clang/test/CIR/Transforms/complex-create-fold.cir
+34-2clang/test/CIR/CodeGen/complex.cpp
+293-255 files

OPNSense/core abd526c — src/opnsense/mvc/app/library/OPNsense/Core FileObject.php, src/opnsense/mvc/app/models/OPNsense/Base BaseModel.php

mvc: separate model construction from cache publishing
DeltaFile
+23-14src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php
+16-5src/opnsense/mvc/app/library/OPNsense/Core/FileObject.php
+39-192 files

OpenBSD/src TWe41Gm — usr.bin/tmux prompt-history.c

   Clamp the prompt history index if the history has shrunk, GitHub issue
   5970 from Kuang-che Wu.
VersionDeltaFile
1.3+10-1usr.bin/tmux/prompt-history.c
+10-11 files

LLVM/project a4703a4 — llvm/lib/Analysis InstructionSimplify.cpp, llvm/test/Transforms/InstSimplify select-maxmin.ll

[InstSimplify] Drop annotations in select of min/max fold (#248870)

For the case where the inner min/max is returned, we need to drop
poison-generating annotations.

Fixes https://github.com/llvm/llvm-project/issues/246560.
DeltaFile
+18-0llvm/test/Transforms/InstSimplify/select-maxmin.ll
+7-6llvm/lib/Analysis/InstructionSimplify.cpp
+25-62 files

LLVM/project 4fe8fc8 — clang/include/clang/StaticAnalyzer/Core/PathSensitive SymbolManager.h, clang/lib/StaticAnalyzer/Core SValBuilder.cpp ExprEngine.cpp

[NFC][analyzer] Assert canonical step id in conjureSymbol (#247656)

The conjuration of symbols repsects the invariant that the CFG element,
stack frame and visit count data members of the `SymbolConjured` object
always contain the values that identify the _current_ analysis step.

The canoncal source of information about the current analysis step is
the `ExprEngine` singleton, which records the current CFG element and
stack frame, and can query visit counts from the `BlockCounter` of the
current `WorkList` of the `CoreEngine`. This information is now passed
to the constructor of `SymbolConjured` as parameters in long chains of
function calls, which is needlessly verbose and prone to
inconsistencies.

This commit asserts that symbols are always conjured with the
canonically correct values; and prepares the ground for follow-up
commits that can eliminate the complicated argument passing.

Recent commits ad462133ba34c2b52d5cccf52f848fb83a5626bb and

    [7 lines not shown]
DeltaFile
+37-2clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
+12-0clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+2-2clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
+51-43 files

OpenBSD/src wrQvCE3 — usr.bin/tmux cmd-confirm-before.c

   Continue the waiting item when a confirm-before prompt is freed, GitHub
   issue 5969 from Patrick Elsen.
VersionDeltaFile
1.65+19-7usr.bin/tmux/cmd-confirm-before.c
+19-71 files

LLVM/project eb106e0 — libcxxabi/src private_typeinfo.h private_typeinfo.cpp

[libc++abi] Pass flags in a register
DeltaFile
+52-84libcxxabi/src/private_typeinfo.cpp
+51-45libcxxabi/src/private_typeinfo.h
+103-1292 files

LLVM/project 141733b — libcxxabi/src private_typeinfo.h private_typeinfo.cpp

[libc++abi] Merge dst_type_might_be_derived_from_static_type into path_dst_ptr_to_static_ptr
DeltaFile
+17-32libcxxabi/src/private_typeinfo.cpp
+1-1libcxxabi/src/private_typeinfo.h
+18-332 files

NetBSD/pkgsrc Fadc8k3 — doc TODO

   doc/TODO: + arti-2.9.0, kstars-3.8.6, memtestplus-9.10.
VersionDeltaFile
1.28514+4-3doc/TODO
+4-31 files

OPNSense/core f7c07d4 — src/opnsense/mvc/app/views/OPNsense/Firewall alias.volt

With this little trick we can give the optgroup a backdrop during selection
DeltaFile
+1-1src/opnsense/mvc/app/views/OPNsense/Firewall/alias.volt
+1-11 files