LLVM/project 2c600dellvm/lib/Target/AMDGPU SILowerSGPRSpills.cpp, llvm/test/CodeGen/AMDGPU wwm-regalloc-error.ll sgpr-spill-vmem-large-frame.mir

[AMDGPU] Support partial and empty WWM pools for SGPR spills

SGPR lane spilling currently treats the WWM VGPR pool as all-or-nothing. This
can fail compilation when the requested pool cannot be formed, even though
scratch spilling or a smaller spillable pool could make progress.

This PR lets ordinary SGPR spills fall back to scratch when the pool is empty
and lets WWM register allocation use a nonempty partial pool. It keeps the
full-pool requirement for strict WWM/WQM and explicit spill-carrier
preallocation.

The no-pool fallback is recorded in SIMachineFunctionInfo so frame lowering can
provide enough emergency scavenging slots. The state is also serialized to
preserve the behavior across MIR round trips.
DeltaFile
+219-0llvm/test/CodeGen/AMDGPU/wwm-regalloc-memory-fallback.ll
+95-49llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
+101-0llvm/test/CodeGen/AMDGPU/wwm-regalloc-preallocation-guard.mir
+50-0llvm/test/CodeGen/AMDGPU/wwm-regalloc-partial-pool.mir
+48-0llvm/test/CodeGen/AMDGPU/sgpr-spill-vmem-large-frame.mir
+0-29llvm/test/CodeGen/AMDGPU/wwm-regalloc-error.ll
+513-7812 files not shown
+563-8718 files

LLVM/project 4d79405mlir/lib/Transforms/Utils DialectConversion.cpp, mlir/test/Dialect/Arith emulate-wide-int-unsupported.mlir

[mlir] Add missing materialization function diag for dialect convertion (#207689)

This Patch adds more precise diagnostics for when a pass is missing a
target/source materialization function, making it easier to locate the
issue in the pass.
DeltaFile
+18-6mlir/lib/Transforms/Utils/DialectConversion.cpp
+6-6mlir/test/Transforms/test-legalize-type-conversion.mlir
+1-1mlir/test/python/rewrite.py
+1-1mlir/test/Dialect/Arith/emulate-wide-int-unsupported.mlir
+26-144 files

LLVM/project b3fe562clang/test/Sema block-misc.c gh183974.c

[Clang][test] Relocate __block regression test to block-misc.c NFC (#213710)
DeltaFile
+0-5clang/test/Sema/gh183974.c
+1-0clang/test/Sema/block-misc.c
+1-52 files

LLVM/project b24c9b6clang/docs ClangFormatStyleOptions.md ClangFormat.md, clang/docs/tools dump_format_style.py

fix link word wrapping
DeltaFile
+26-9clang/docs/tools/dump_format_style.py
+9-5clang/docs/ClangFormat.md
+0-1clang/docs/ClangFormatStyleOptions.md
+35-153 files

LLVM/project 033d086clang/docs ClangFormat.md ClangFormatStyleOptions.md, clang/docs/tools dump_format_help.py dump_format_style.py

[docs][clang-format] Migrate generated clang-format docs to markdown

The challenge here is that the documentation is generated from Doxygen
comments in headers, `Format.h` and `IncludeStyle.h`.

First, the generator was updated to generate markdown constructs, and
then the Doxygen comments were also modified to use markdown constructs.
Mostly this means using single backticks instead of double backticks,
which is the Doxygen-native way of expressing code font blocks anyway,
so that's good.

To validate, I built the Sphinx docs and the doxygen, and I confirmed
that the generator script is idempotent, meaning it doesn't change the
markdown output. When I add a new option to clang-format, it shows up in
the help text block, so it works.

Before/after validation links:
| Source file | Before HTML | After HTML |
| --- | --- | --- |

    [4 lines not shown]
DeltaFile
+5,424-5,444clang/docs/ClangFormatStyleOptions.md
+401-400clang/include/clang/Format/Format.h
+236-259clang/docs/ClangFormat.md
+87-27clang/docs/tools/dump_format_style.py
+34-33clang/include/clang/Tooling/Inclusions/IncludeStyle.h
+3-11clang/docs/tools/dump_format_help.py
+6,185-6,1746 files

FreeBSD/src 3a6bf8alib/libifconfig libifconfig_sfp.h libifconfig_sfp.c, sbin/ifconfig sfp.c

ifconfig: Improve CMIS parsing of breakout configs

This fixes a bug where we do not report all lanes when
a NIC configures a breakout.  Eg, we reported all 4
lanes when a NIC configured the optics as 1x400g, but
only printed the first lane's strength when configured as
4x100g.

Fix this by actually parsing the active lane count, rather
than pulling it from the default descriptor.

While here, optionally print page 10h when -vvvv is
specified. This aids in determining how a breakout is configured.
I put it under an extra level of verbosity, as I don't want
to let things get out of hand printing CMIS pages.

Sponsored by: Netflix
Reviewed by: kib, sumit.saxena_broadcom.com
Differential Revision: https://reviews.freebsd.org/D58263
DeltaFile
+37-9lib/libifconfig/libifconfig_sfp.c
+5-0sbin/ifconfig/sfp.c
+2-1lib/libifconfig/libifconfig_sfp.h
+44-103 files

LLVM/project 86f5613clang/lib/Format CMakeLists.txt

Apply suggestions from code review

Co-authored-by: owenca <owenpiano at gmail.com>
Co-authored-by: Reid Kleckner <rkleckner at nvidia.com>
DeltaFile
+2-2clang/lib/Format/CMakeLists.txt
+2-21 files

LLVM/project e3d5041llvm/lib/Target/AMDGPU SIInstructions.td AMDGPUAssignIdxToM0.cpp, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-copy.ll as-vgpr-basic.ll

Address review: subarch triples, required pass mixin, legalizer predicates, redundant VALU
DeltaFile
+10-11llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+4-4llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-gpr-idx-mode.ll
+3-2llvm/lib/Target/AMDGPU/AMDGPUAssignIdxToM0.cpp
+1-3llvm/lib/Target/AMDGPU/SIInstructions.td
+2-2llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-copy.ll
+2-2llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-basic.ll
+22-246 files not shown
+34-3512 files

FreeBSD/src 6880edblibexec/rtld-elf rtld.c

rtld: fix indentation of multiline conditional

Fixes:          7e2f38311e62 ("rtld-elf/rtld.c: apply clang-format")
Sponsored by:   Innovate UK
DeltaFile
+2-2libexec/rtld-elf/rtld.c
+2-21 files

LLVM/project 073f2a2llvm/test/Transforms/SLPVectorizer/RISCV external.ll

[SLP] Add additional test for deferred rematerialization (#213400)

More tests for #211680.

Also cleaned up some commented out code that slipped through with the
old test.

New test stresses the scheduling updates.
DeltaFile
+102-39llvm/test/Transforms/SLPVectorizer/RISCV/external.ll
+102-391 files

FreeBSD/ports c8a6d8ax11/sddm Makefile, x11/sddm/files patch-src_common_VirtualTerminal.cpp patch-src_helper_UserSession.cpp

x11/sddm: Wayland session fixes

PR:             286592, 296052
DeltaFile
+84-0x11/sddm/files/patch-src_helper_UserSession.cpp
+0-20x11/sddm/files/patch-src_common_VirtualTerminal.cpp
+1-1x11/sddm/Makefile
+85-213 files

LLVM/project 5ab6b42clang/docs ClangTransformerTutorial.md ClangRepl.md

[docs] Rewrite selected Clang docs to Markdown (#210843)

Tracking issue: #201242
See the [migration guide] for more information. 

[migration guide]:
https://llvm.org/docs/SphinxQuickstartTemplate.html#markdown-migration-guidelines
This is a stacked PR based on #210842 , which will be a standalone
commit that
renames *.rst -> *.md before this PR lands for history preservation
purposes.

This was prepared with rst2myst plus LLM-assisted cleanup. I paged
through all the generated HTML looking for migration artifacts, and all
of the differences I could find appear to be formatting error
corrections.
DeltaFile
+2,000-2,021clang/docs/InternalsManual.md
+436-446clang/docs/LibASTImporter.md
+349-318clang/docs/ClangOffloadBundler.md
+325-336clang/docs/LibASTMatchersTutorial.md
+272-309clang/docs/ClangRepl.md
+187-207clang/docs/ClangTransformerTutorial.md
+3,569-3,63712 files not shown
+4,635-4,83918 files

LLVM/project 9cb3a6elld/ELF Driver.cpp, lld/test/ELF aarch64-feature-bti.s riscv-feature-zicfiss.s

[ELF] Quote the value in "unknown -z" diagnostics (#213572)

To make stray whitespace more visible (see #212523)
```
$ echo end > tmp.f90 &&  flang -fuse-ld=lld  -Wl,"-z execstack" tmp.f90
ld.lld: warning: unknown -z value:  execstack
```

Drop the colon (colon is typically used without quotes in lld/ELF
diagnostics).

Change ErrAlways to Err so that --noinhibit-exec downgrades the errors
to warnings. Read --noinhibit-exec before readConfigs, as Err depends on
it.
DeltaFile
+10-10lld/ELF/Driver.cpp
+5-3lld/test/ELF/aarch64-feature-gcs.s
+2-2lld/test/ELF/riscv-feature-zicfiss.s
+2-2lld/test/ELF/riscv-feature-zicfilp-unlabeled.s
+2-2lld/test/ELF/driver.test
+1-1lld/test/ELF/aarch64-feature-bti.s
+22-208 files not shown
+30-2814 files

LLVM/project 6f15201llvm/lib/Target/AMDGPU SIISelLowering.cpp AMDGPUInstructionSelector.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.ballot.i32.wave64.err.ll

Revert "Reland "[AMDGPU] Fix llvm.amdgcn.ballot with return width != wavefron…"

This reverts commit fe41b737af5229a22313ac18b760fa5984c4afb1.
DeltaFile
+0-15llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ballot.i32.wave64.err.ll
+2-9llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+0-9llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+2-333 files

LLVM/project 1789918llvm/include/llvm/ProfileData InstrProf.h InstrProfWriter.h, llvm/lib/ProfileData InstrProf.cpp

[llvm-profdata] Reject merging single-byte-coverage with count profiles (#213177)

llvm-profdata merge previously silently merged single-byte-coverage
profiles with count profiles. We should reject this, because
SingleByteCoverage will always be set to true in the merged profile, and
mess up the PGO pipeline.

mergeProfileKind now errors with cannot merge single-byte-coverage
profiles with count (non-coverage) profiles when exactly one side has
InstrProfKind::SingleByteCoverage set.

Note: Used AI to generate the code

---------

Co-authored-by: Sharon Xu <sharonxu at fb.com>
DeltaFile
+19-1llvm/test/tools/llvm-profdata/merge-incompatible.test
+8-1llvm/include/llvm/ProfileData/InstrProfWriter.h
+1-6llvm/tools/llvm-profdata/llvm-profdata.cpp
+4-0llvm/lib/ProfileData/InstrProf.cpp
+1-0llvm/include/llvm/ProfileData/InstrProf.h
+33-85 files

OpenBSD/ports 4xOZXW2sysutils/salt/3008/patches patch-salt_modules_openbsd_sysctl_py patch-salt_modules_openbsdrcctl_service_py, sysutils/salt/3008/pkg PLIST

   import salt-3008.2;

   this is now a separate port because of the 'The great Salt module migration'

   https://salt.tips/the-great-salt-module-migration/

   ok aja@
VersionDeltaFile
1.1+3,223-0sysutils/salt/3008/pkg/PLIST
1.1+414-0sysutils/salt/3008/patches/patch-salt_modules_openbsdpkg_py
1.1+402-0sysutils/salt/3008/patches/patch-salt_modules_vmctl_py
1.1+334-0sysutils/salt/3008/patches/patch-salt_modules_openbsdservice_py
1.1+293-0sysutils/salt/3008/patches/patch-salt_modules_openbsdrcctl_service_py
1.1+149-0sysutils/salt/3008/patches/patch-salt_modules_openbsd_sysctl_py
+4,815-036 files not shown
+4,984-042 files

LLVM/project 2a00912clang/docs LibASTMatchers.md ClangTransformerTutorial.md

Address review comments, mostly to do with wrapping

- use list-table
- reflow egregious instances
- apply some backticks.
DeltaFile
+125-42clang/docs/ClangOffloadBundler.md
+67-48clang/docs/InternalsManual.md
+12-15clang/docs/LibASTMatchersTutorial.md
+9-2clang/docs/ClangRepl.md
+3-3clang/docs/ClangTransformerTutorial.md
+0-2clang/docs/LibASTMatchers.md
+216-1126 files

LLVM/project 8e9b520clang/docs ClangTransformerTutorial.md InternalsManual.md

[docs] Clean up migrated Clang InternalsManual markup

Replace migrated blockquote markup in InternalsManual.md with MyST definition lists where the surrounding text is semantically a term-and-definition list.
DeltaFile
+108-108clang/docs/InternalsManual.md
+1-1clang/docs/ClangTransformerTutorial.md
+109-1092 files

LLVM/project 7d6fda7clang/docs LibASTMatchersTutorial.md InternalsManual.md

[docs] Finish MyST migration for selected docs
DeltaFile
+88-137clang/docs/ClangOffloadBundler.md
+15-18clang/docs/ClangRepl.md
+14-14clang/docs/LibASTImporter.md
+11-11clang/docs/RAVFrontendAction.md
+4-4clang/docs/InternalsManual.md
+3-3clang/docs/LibASTMatchersTutorial.md
+135-1877 files not shown
+145-20413 files

LLVM/project cdf72b6clang/docs ClangTransformerTutorial.md ClangRepl.md

[docs] Convert selected rst docs with rst2myst
DeltaFile
+1,992-2,032clang/docs/InternalsManual.md
+436-446clang/docs/LibASTImporter.md
+321-329clang/docs/LibASTMatchersTutorial.md
+290-293clang/docs/ClangOffloadBundler.md
+260-301clang/docs/ClangRepl.md
+188-208clang/docs/ClangTransformerTutorial.md
+3,487-3,60912 files not shown
+4,555-4,80418 files

LLVM/project cc30c65clang/docs LibASTImporter.rst LibASTImporter.md

[docs] Rename selected Clang docs to Markdown (#210842)

Tracking issue: #201242
See the [migration guide] for more information. 

[migration guide]:
https://llvm.org/docs/SphinxQuickstartTemplate.html#markdown-migration-guidelines

This is the initial straight rename commit. It will probably break the
docs build, but it has to be a separate PR for blame preservation
purposes.
DeltaFile
+0-3,941clang/docs/InternalsManual.rst
+3,941-0clang/docs/InternalsManual.md
+0-658clang/docs/ClangRepl.rst
+658-0clang/docs/ClangRepl.md
+0-613clang/docs/LibASTImporter.rst
+613-0clang/docs/LibASTImporter.md
+5,212-5,21230 files not shown
+9,110-9,11036 files

OpenZFS/src 845cd96tests/runfiles linux.run, tests/zfs-tests/tests Makefile.am

ZTS: add coverage for the MMP claim on a degraded mirror

Add mmp_degraded_import, which verifies the uberblock claim requires a
write only to those mirror legs the pool configuration still expects to
be present.  A healthy mirror is claimed, a mirror with an offlined leg
is claimed and imports degraded, and a mirror with a leg this host
cannot open, and which the configuration does not mark absent, is
refused.  The degraded and unreachable cases repeat on a three-way
mirror, where the number of legs the configuration expects and the
number this host can reach come apart.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Michael Heller <michael.heller at gmail.com>
Closes #18855
DeltaFile
+163-0tests/zfs-tests/tests/functional/mmp/mmp_degraded_import.ksh
+1-0tests/zfs-tests/tests/Makefile.am
+1-0tests/runfiles/linux.run
+165-03 files

OpenZFS/src 8cdd9b2module/zfs mmp.c

mmp: do not require writes to mirror legs the config marks absent

The MMP uberblock claim requires one good write per configured leaf of
each top-level vdev.  For a mirror it required two writes
unconditionally (MIN(MAX(children, 1), 2)), so a mirror with a leg that
is persistently offline, faulted, or removed could produce only one good
write and the activity-check claim failed with EIO.  A degraded mirror
could therefore not be imported with multihost=on, blocking HA failover.

Count only the legs the pool config still expects to be present, and
require a write to every one of them.  A leg taken out of service is
recorded persistently in the config and is seen the same way by every
host, so it is not required.  A leg merely unreachable from the
importing host keeps none of those states and stays required, so a host
that can see only some of the legs of an otherwise healthy mirror still
fails the claim and cannot split the pool.

The previous cap of two writes was a compromise made because requiring
every child was too strict for wide mirrors, in particular where a leg

    [9 lines not shown]
DeltaFile
+28-4module/zfs/mmp.c
+28-41 files

OpenBSD/ports oM8A0Bvsysutils/salt distinfo

   remove distinfo as well
VersionDeltaFile
1.77+0-0sysutils/salt/distinfo
+0-01 files

OpenBSD/ports zDPXqcesysutils/salt Makefile.inc Makefile, sysutils/salt/3007/patches patch-salt_scripts_py patch-salt_modules_vmctl_py

   split the salt port per major version

   version 3008 will bring huge changes so keep the older 3007 version
   around as well
VersionDeltaFile
1.1+5,249-0sysutils/salt/3007/pkg/PLIST
1.203+3-95sysutils/salt/Makefile
1.1+95-0sysutils/salt/Makefile.inc
1.1+73-0sysutils/salt/3007/patches/patch-salt_utils_pycrypto_py
1.1+45-0sysutils/salt/3007/patches/patch-salt_modules_vmctl_py
1.1+33-0sysutils/salt/3007/patches/patch-salt_scripts_py
+5,498-9532 files not shown
+5,678-9538 files

LLVM/project 621f550flang/include/flang/Parser parse-tree.h, flang/lib/Parser openmp-parsers.cpp

[flang][OpenMP] Version-dependent parsing of map-type-modifier (#213473)

Up until 5.2, ALWAYS, CLOSE, and PRESENT were keywords of the
map-type-modifier. Starting from 6.0 they all became their own
single-keyword modifiers. This allowed specifying them together,
unlike in the past where map-type-modifier was unique.

To avoid using a single representation of the modifiers, and be
able to validate them through non-conditional properties, the
AST was rewritten back to the older form in canonicalization
when the spec version was set to 5.2 or earlier.

Now that the parser is version-aware, it can generate the desired
AST from the start.

Additionally, extract the OMPX_HOLD modifier out of the map-type-
modifier into its own AST node regardless of version.
DeltaFile
+62-19flang/lib/Parser/openmp-parsers.cpp
+1-45flang/lib/Semantics/canonicalize-omp.cpp
+7-7flang/test/Parser/OpenMP/map-modifiers-v60.f90
+4-4flang/test/Parser/OpenMP/map-modifiers.f90
+8-0flang/test/Semantics/OpenMP/map-modifiers.f90
+1-2flang/include/flang/Parser/parse-tree.h
+83-771 files not shown
+83-787 files

LLVM/project 8014bffflang/include/flang/Parser parsing.h user-state.h, flang/lib/Frontend FrontendAction.cpp ParserActions.cpp

[flang] Pass LangOptions to parser via UserState (#213472)

This will help deal with syntax changes across different versions of
OpenMP. There are certain cases where being able to generate different
AST for the same source code depending on the version of the OpenMP
spec makes semantic analysis easier.

---------

Co-authored-by: Michael Kruse <llvm-project at meinersbur.de>
DeltaFile
+8-0flang/include/flang/Parser/user-state.h
+4-2flang/lib/Parser/parsing.cpp
+4-2flang/lib/Frontend/ParserActions.cpp
+3-1flang/include/flang/Parser/parsing.h
+2-1flang/lib/Frontend/FrontendAction.cpp
+1-1flang/tools/f18-parse-demo/f18-parse-demo.cpp
+22-72 files not shown
+24-98 files

LLVM/project ab130aallvm/include/llvm/CodeGen/GlobalISel LegalizerInfo.h, llvm/lib/CodeGen/GlobalISel LegalityPredicates.cpp LegalizerInfo.cpp

[GlobalISel] Add immediates to `LegalizerQuery` (#211101)

Expands `LegalityQuery` to include instruction immediates in the query.

This allows instructions with immediates to be handled more fully with
legalization rules/predicates (e.g. `G_SEXT_INREG` based on its sext
width) rather than having to resort to custom legalizer logic.

Split from #198979
DeltaFile
+72-0llvm/unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp
+12-18llvm/lib/Target/WebAssembly/GISel/WebAssemblyLegalizerInfo.cpp
+18-12llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
+12-17llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+21-0llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
+14-2llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
+149-494 files not shown
+171-5910 files

OpenBSD/ports 7TKEoiQdevel/zizmor Makefile crates.inc

   Update to zizmor 1.29.0

   https://github.com/zizmorcore/zizmor/releases/tag/v1.29.0
VersionDeltaFile
1.8+72-62devel/zizmor/distinfo
1.7+35-30devel/zizmor/crates.inc
1.11+2-2devel/zizmor/Makefile
+109-943 files

pkgng/pkgng 2282f1dlibpkg pkg_repo.c

pkg_repo: Fix incompatible pointer

Fix incompatible variable pointer which causes compile to fail in Linux
systems.

Fix variable clevel_buf that was 'char **'' which is corrected type to 'char *'
DeltaFile
+1-1libpkg/pkg_repo.c
+1-11 files