LLVM/project f3d4409mlir/include/mlir-c Diagnostics.h, mlir/lib/CAPI/IR Diagnostics.cpp

[mlir-c] Add mlirEmitWarning and mlirEmitRemark (#206542)

Adds C API entry points for emitting warning and remark diagnostics, complementing the existing `mlirEmitError`.

Assisted by: Claude
DeltaFile
+34-0mlir/test/CAPI/ir.c
+10-0mlir/include/mlir-c/Diagnostics.h
+8-0mlir/lib/CAPI/IR/Diagnostics.cpp
+52-03 files

FreeBSD/src 34f131fsys/dev/nvme nvme_ctrlr.c

nvme: bound the AER error log byte-swap by the fetched length

The Get Log Page request for the error log is clamped to
NVME_MAX_AER_LOG_SIZE, but the byte-swap loop iterated ELPE + 1
entries. A controller reporting more than 63 entries makes the loop
overrun the 4 KiB log page buffer.

Reviewed by:    ngie, imp, adrian
Differential Revision:  https://reviews.freebsd.org/D59626
DeltaFile
+1-1sys/dev/nvme/nvme_ctrlr.c
+1-11 files

HardenedBSD/src bd145d7sys/kern uipc_shm.c, sys/net sff8472.h

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+189-0tests/sys/netpfil/ipfw/unmapped.sh
+66-5tests/sys/kern/ktls_test.c
+22-1usr.bin/sdiff/sdiff.1
+7-7sys/net/sff8472.h
+2-7sys/kern/uipc_shm.c
+3-3sys/x86/x86/mp_x86.c
+289-2319 files not shown
+313-4325 files

HardenedBSD/src d542ed8sys/kern uipc_shm.c, sys/net sff8472.h

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+189-0tests/sys/netpfil/ipfw/unmapped.sh
+66-5tests/sys/kern/ktls_test.c
+22-1usr.bin/sdiff/sdiff.1
+7-7sys/net/sff8472.h
+2-7sys/kern/uipc_shm.c
+3-3sys/x86/x86/mp_x86.c
+289-2319 files not shown
+313-4325 files

FreeBSD/src ad57f21sys/dev/nvme nvme_private.h nvme_pci.c

nvme: do not touch INTMS/INTMC when configured for MSI-X

The single-vector MSI-X fallback installs the shared interrupt
handler, which masks interrupts through INTMS/INTMC around the
completion poll.
INTx and MSI are unaffected. Only MSI-X track the interrupt mode
and skip un/masking

Reviewed by:    ngie, imp, adrian
Differential Revision:  https://reviews.freebsd.org/D59637
DeltaFile
+5-2sys/dev/nvme/nvme_ctrlr.c
+1-0sys/dev/nvme/nvme_private.h
+1-0sys/dev/nvme/nvme_pci.c
+7-23 files

HardenedBSD/src e512435lib/libc/stdlib bsearch.3, lib/libc/string wmemchr.3

Merge remote-tracking branch 'rad/hardened/15-stable/main' into hardened/15-stable/pledge
DeltaFile
+134-0lib/libc/tests/stdlib/bsearch_s_test.c
+106-7lib/libc/stdlib/bsearch.3
+92-0lib/libc/tests/stdlib/bsearch_test.c
+56-20lib/libc/string/wmemchr.3
+58-0lib/libc/tests/stdlib/bsearch_b_test.c
+51-0lib/libc/tests/stdlib/test-search.h
+497-2743 files not shown
+836-10749 files

HardenedBSD/src fbcbb9asys/kern uipc_shm.c, sys/net sff8472.h

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+189-0tests/sys/netpfil/ipfw/unmapped.sh
+66-5tests/sys/kern/ktls_test.c
+22-1usr.bin/sdiff/sdiff.1
+7-7sys/net/sff8472.h
+2-7sys/kern/uipc_shm.c
+3-3sys/x86/x86/mp_x86.c
+289-2319 files not shown
+313-4325 files

LLVM/project 2481e34llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 sme-za-non-sibling-tailcall.ll sme-za-tailcall-fpdiff-align.ll

[AArch64][SME] Drop ZA marker on tail calls and lower as sibling calls

A tail call from a function with live ZA state was previously prevented
from being lowered as a sibling call to have a CALLSEQ_START to glue
INOUT_ZA_USE to. This led to bogus stack restores.

We now drop the INOUT_ZA_USE marker on tail calls and can thus lower as
sibling calls if needed to take advantage of the existing correct stack
restore behavior.

This is safe to do since tail calls use TCRETURN and the MachineSMEABI
pass requires live ZA state to stay live across returns anyway.
DeltaFile
+13-0llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+2-4llvm/test/CodeGen/AArch64/sme-za-tailcall-fpdiff-align.ll
+0-1llvm/test/CodeGen/AArch64/sme-za-non-sibling-tailcall.ll
+15-53 files

LLVM/project 9343035llvm/test/CodeGen/AArch64 sme-za-non-sibling-tailcall.ll

Add test showing wrong stack restore
DeltaFile
+55-0llvm/test/CodeGen/AArch64/sme-za-non-sibling-tailcall.ll
+55-01 files

LLVM/project d4afedallvm/include/llvm/ADT DepthFirstIterator.h

[ADT] Add back load bearing <vector> include (#225872)

This should fix the build failures reported in
https://lab.llvm.org/buildbot/#/builders/25/builds/19816, looks like
other places were relying on it transitively
DeltaFile
+1-0llvm/include/llvm/ADT/DepthFirstIterator.h
+1-01 files

LLVM/project 2c80b3dclang/test/Driver darwin-static-lib-universal.c

[Clang] Restrict darwin-static-lib-universal.c in cross-builds (#225447)

A new test was added in 841dbaab188ecfa756d4c946f33b58758d34d339 which
will fail when run on macOS if macOS is not set as the default target.
This has previously been solved in other tests by further restricting
the REQUIRES line to also check the target.
DeltaFile
+1-1clang/test/Driver/darwin-static-lib-universal.c
+1-11 files

LLVM/project 5eea521lldb/test/API/api/multithreaded TestMultithreaded.py

[lldb][Windows] skip TestMultithreaded.SBBreakpointCallbackCase.test_python_stop_hook (#225862)

The test is failing in pre-merge testing on Windows.
DeltaFile
+1-0lldb/test/API/api/multithreaded/TestMultithreaded.py
+1-01 files

LLVM/project 36e1dfdlldb/source/Plugins/SymbolFile/NativePDB SymbolFileNativePDB.cpp, lldb/test/Shell/SymbolFile/NativePDB public-symbol-offset-past-section-end.cpp

[lldb][NativePDB] don't assert when a public symbol sits past its section (#225734)

Fix an assertion failure in `SymbolFileNativePDB::AddSymbols` when a
public symbol's offset doesn't agree with its section's size (happens
with real-world PDBs after incremental linking). Instead of asserting,
we now log and skip the size estimate for that symbol.

Also adds a regression test that crafts such a PDB and checks lldb
doesn't crash.

This fixes crashes in swiftlang.
DeltaFile
+30-0lldb/test/Shell/SymbolFile/NativePDB/Inputs/corrupt-public-offset.py
+23-0lldb/test/Shell/SymbolFile/NativePDB/public-symbol-offset-past-section-end.cpp
+16-3lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+69-33 files

LLVM/project 877e3c8.github/workflows libc-overlay-tests.yml compiler-rt-libc-builtins-tests.yml

[Github] Update remaining libc workflows to Ubuntu 26.04 (#225850)

Some workflows that I missed when trying to do the upgrade previously.
DeltaFile
+2-2.github/workflows/libc-overlay-tests.yml
+3-1.github/workflows/compiler-rt-libc-builtins-tests.yml
+5-32 files

LLVM/project 99492a2llvm/lib/CodeGen PHIElimination.cpp, llvm/test/CodeGen/X86 phi-elimination-dead-def.mir

CodeGen: Mark dead PHI destination copies dead in the LiveIntervals path

When PHIElimination lowers a PHI whose destination is dead, it records a
dead def in LiveIntervals but did not set the dead flag on the lowered copy's
def operand. The LiveVariables path set this via addVirtualRegisterDead.

Avoids "Instruction ending live segment on dead slot has no dead flag" verifier
errors once LiveVariables is removed.

Co-authored-by: Claude (Opus 4.8) <noreply at anthropic.com>
DeltaFile
+57-0llvm/test/CodeGen/X86/phi-elimination-dead-def.mir
+5-0llvm/lib/CodeGen/PHIElimination.cpp
+62-02 files

LLVM/project 8913fccllvm/lib/Target/AMDGPU SIRegisterInfo.td, llvm/test/CodeGen/AMDGPU materialize-frame-index-sgpr.ll true16-fold.mir

Reapply "[AMDGPU] Remove definition of hi16 for scalar registers (#197467)" (#201552)

This reapplies #197467. The regression uncovered by this PR has been
fixed in #223653 and a test was added to verify that
`llvm/test/CodeGen/AMDGPU/issue197467-virt-reg-rewrite-failure.mir`.
DeltaFile
+66-54llvm/lib/Target/AMDGPU/SIRegisterInfo.td
+83-0llvm/test/CodeGen/AMDGPU/issue197467-virt-reg-rewrite-failure.mir
+0-57llvm/test/CodeGen/AMDGPU/peephole-fold-imm.mir
+16-16llvm/test/CodeGen/AMDGPU/set-gpr-idx-peephole.mir
+0-18llvm/test/CodeGen/AMDGPU/true16-fold.mir
+8-6llvm/test/CodeGen/AMDGPU/materialize-frame-index-sgpr.ll
+173-15113 files not shown
+199-18419 files

HardenedBSD/ports e5e695csecurity/openssl-pkcs11provider Makefile distinfo

security/openssl-pkcs11provider: Update to 1.3.0
DeltaFile
+3-3security/openssl-pkcs11provider/distinfo
+2-2security/openssl-pkcs11provider/Makefile
+5-52 files

FreeBSD/ports e5e695csecurity/openssl-pkcs11provider Makefile distinfo

security/openssl-pkcs11provider: Update to 1.3.0
DeltaFile
+3-3security/openssl-pkcs11provider/distinfo
+2-2security/openssl-pkcs11provider/Makefile
+5-52 files

LLVM/project 4f22636llvm/include/llvm/CodeGen SDPatternMatch.h, llvm/test/CodeGen/AArch64 abds.ll

[DAG] Don't detect flippable signs in MinMax matchers (#220527)

The Min/MaxLike pattern matchers are the only pattern matchers that use
computeKnownBits. They're used to match a smax as a umax if the operands
are known positive and so forth.

However in practice it has no affect on real-world codegen as correlated
value propagation already does this transform earlier in the pipeline,
including for all the tests changed in this PR:
https://llvm.godbolt.org/z/Pr4Ec1xrv

Nothing in the backends will emit a min/max that needs re-transformed in
this way as far as I'm aware.

Removing computeKnownBits from these matchers allows us to remove the
match context in #218372, and saves some compilation time at O3
https://llvm-compile-time-tracker.com/compare.php?from=2f2aa940de68abcdfe4959ddd3b9a0741a7c2a16&to=b771556fb2a7e9c2cb0c853a4a71ea9641e5ede0&stat=instructions:u
DeltaFile
+0-106llvm/unittests/CodeGen/SelectionDAGPatternMatchTest.cpp
+12-12llvm/test/CodeGen/AArch64/abds.ll
+4-16llvm/include/llvm/CodeGen/SDPatternMatch.h
+16-1343 files

LLVM/project 7a7e8bblld/ELF SyntheticSections.h SyntheticSections.cpp, lld/test/ELF ppc64-long-branch-rel14.s systemz-gotent-relax-align.s

[ELF] Retain relocation sections for GOT entries added by relaxOnce (#225594)

x86-64 and SystemZ relax GOTPCRELX/GOTENT and, in relaxOnce, revert
relaxations that turn out to be out of range or misaligned. The reverted
relocation needs a GOT entry, which in -pie/-shared needs a relative
relocation. If .rela.dyn (or .relr.dyn) was empty, it has already been
removed by removeUnusedSyntheticSections, triggering an assertion
failure.

Retain the section that will receive the relative relocations when
relaxOnce may add GOT entries, and recompute .dynamic in each iteration.
This also fixes a truncated .dynamic when PPC64 PI long-branch thunks
add the first relative relocations to .rela.dyn.

LLM-aided. Fixes #224011
DeltaFile
+17-12lld/test/ELF/x86-64-gotpc-relax-too-far-relr.s
+16-0lld/test/ELF/systemz-gotent-relax-align.s
+7-1lld/ELF/Writer.cpp
+5-1lld/test/ELF/ppc64-long-branch-rel14.s
+2-1lld/ELF/SyntheticSections.cpp
+2-0lld/ELF/SyntheticSections.h
+49-151 files not shown
+50-167 files

LLVM/project 9baa7efllvm/include/llvm/Support AutoConvert.h

Fix syntax of default parameters
DeltaFile
+3-3llvm/include/llvm/Support/AutoConvert.h
+3-31 files

LLVM/project 7c0029dclang/docs ReleaseNotes.md, clang/lib/AST Expr.cpp

[Clang] Fix integer promotion of bit-fields in statement expressions (#225597)

`Expr::getSourceBitField()` now looks through the final expression of a
statement expression to preserve the bit-field information. This allows
the existing integer promotion rules to correctly promote the bit-field
to `int`.

Also added a regression test for the issue.

Fixes #221542
DeltaFile
+15-0clang/test/Sema/stmtexprs.c
+7-0clang/lib/AST/Expr.cpp
+4-1clang/docs/ReleaseNotes.md
+26-13 files

LLVM/project bb28f52flang/lib/Semantics resolve-names.cpp, flang/test/Semantics enumeration-type-explicit-value.f90 enumeration-type-component-offset.f90

- Added additional tests to fully cover feature semantics.
- Corrected bug detected by those tests that allowed duplicate
  enumerator names.
DeltaFile
+52-0flang/test/Semantics/enumeration-type-misc.f90
+36-0flang/test/Semantics/enumeration-type-declarations.f90
+23-0flang/test/Semantics/enumeration-type-component-usage.f90
+21-0flang/test/Semantics/enumeration-type-component-offset.f90
+12-0flang/test/Semantics/enumeration-type-explicit-value.f90
+8-1flang/lib/Semantics/resolve-names.cpp
+152-16 files

LLVM/project 9c3693bflang/test/Lower io-implied-do-collapse.f90, llvm/lib/Target/SPIRV SPIRVNonSemanticDebugHandler.cpp

Merge branch 'main' into users/adams381/cir-callconv-nonbyval-param-noload
DeltaFile
+548-554llvm/test/CodeGen/X86/load-combine.ll
+575-0llvm/test/CodeGen/AMDGPU/arbitrary-fp-from-float-fp8-f16-hw.ll
+248-296llvm/test/CodeGen/MLRegAlloc/Inputs/reference-log-noml.txt
+482-54llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.cpp
+523-0flang/test/Lower/io-implied-do-collapse.f90
+389-0llvm/test/ExecutionEngine/JITLink/AArch64/ELF_relocations_be.s
+2,765-904224 files not shown
+8,548-1,824230 files

LLVM/project 6f8bca0llvm/lib/Target/DirectX DXILShaderFlags.cpp, llvm/test/CodeGen/DirectX/ShaderFlags typed-srv-load.ll typed-uav-load-additional-formats.ll

[DirectX] Set TypedUAVLoadAdditionalFormats on UAV texture loads (#225484)

Fixes https://github.com/llvm/llvm-project/issues/225147

This PR makes the `TypedUAVLoadAdditionalFormats` shader flag get set on
UAV texture loads.

Assisted by: GPT 5.6 Sol
DeltaFile
+30-0llvm/test/CodeGen/DirectX/ShaderFlags/typed-uav-load-additional-formats.ll
+10-0llvm/test/CodeGen/DirectX/ShaderFlags/typed-srv-load.ll
+3-1llvm/lib/Target/DirectX/DXILShaderFlags.cpp
+43-13 files

LLVM/project 680fb32llvm/test/CodeGen/X86 load-combine.ll

[X86] load-combine.ll - cleanup check prefixes and don't scrub stack math (#225762)

Ensure all stack addresses are visible
DeltaFile
+548-554llvm/test/CodeGen/X86/load-combine.ll
+548-5541 files

LLVM/project 59e62a9llvm/lib/ProfileData InstrProfWriter.cpp InstrProfReader.cpp, llvm/test/tools/llvm-profdata merge-filter.test text-zero-bitmap.test

[InstrProf] Disambiguate zero bitmaps in text profiles (#213906)
DeltaFile
+51-0llvm/test/tools/llvm-profdata/text-zero-bitmap.test
+6-2llvm/lib/ProfileData/InstrProfReader.cpp
+6-1llvm/test/tools/llvm-profdata/merge-filter.test
+6-0llvm/test/tools/llvm-profdata/Inputs/instr-remap.expected
+2-2llvm/lib/ProfileData/InstrProfWriter.cpp
+2-0llvm/test/tools/llvm-profdata/Inputs/cs.proftext
+73-52 files not shown
+77-58 files

FreeBSD/ports ed4b6bblang/ldc Makefile

lang/ldc: Add archivers/zstd ti LIB_DEPENDS

- Bump PORTREVISION

PR:             298648
Reported by:    Gerard Seibert <gerard_seibert __at_ outlook.com>
DeltaFile
+3-2lang/ldc/Makefile
+3-21 files

HardenedBSD/ports ed4b6bblang/ldc Makefile

lang/ldc: Add archivers/zstd ti LIB_DEPENDS

- Bump PORTREVISION

PR:             298648
Reported by:    Gerard Seibert <gerard_seibert __at_ outlook.com>
DeltaFile
+3-2lang/ldc/Makefile
+3-21 files

LLVM/project 50b8b5allvm/docs CommandLine.md, llvm/lib/Support CommandLine.cpp

[Support] Remove cl::DefaultOption (#225609)

https://reviews.llvm.org/D59746 added cl::DefaultOption so that the
built-in -h could be overridden by llvm-objdump and llvm-readobj, which
have since moved to OptTable. The remaining overrides just call
PrintHelpMessage, so remove them along with the flag. -h and --help
keep working in every tool.

LLM-aided
DeltaFile
+0-62llvm/unittests/Support/CommandLineTest.cpp
+2-24llvm/lib/Support/CommandLine.cpp
+0-10mlir/lib/Tools/mlir-query/MlirQueryMain.cpp
+0-9mlir/lib/Tools/mlir-reduce/MlirReduceMain.cpp
+0-8llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp
+0-8llvm/docs/CommandLine.md
+2-1217 files not shown
+3-15813 files