LLVM/project 1936b4allvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp

[AMDGPU] Factor the AsmParser match-specificity comparison into a helper, NFC (#221987)

Extract the "keep the most specific match status" comparison in
matchAndEmitInstruction into an atLeastAsSpecific() lambda ranking
Match_MnemonicFail < Match_InvalidOperand < Match_MissingFeature. No
functional change.
DeltaFile
+15-7llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+15-71 files

LLVM/project c0a6b4bllvm/lib/CodeGen MachineInstr.cpp

[CodeGen] Avoid quadratic operand removal in MachineInstr::insert (#220165)

This optimizes MachineInstr::insert by copying trailing operands
first and then removing them from the end. This avoids repeatedly
shifting the remaining operands, reducing the operation from quadratic
to linear time without changing behavior.
DeltaFile
+3-9llvm/lib/CodeGen/MachineInstr.cpp
+3-91 files

LLVM/project 915c349.github new-prs-labeler.yml

[Github] Match backend:NVPTX files outside llvm/ (#221968)

The backend:NVPTX labeler rules are anchored to the llvm/ subtree (every
glob starts with llvm/**), so NVPTX/NVVM-related files elsewhere in the
tree never get the label. In particular, ClangIR's lowering under clang/
touches NVPTX code but the PR is not tagged backend:NVPTX.

This drops the llvm/ prefix so the patterns match anywhere in the tree.
DeltaFile
+8-8.github/new-prs-labeler.yml
+8-81 files

LLVM/project 8fdbba5libc/include unistd.yaml, libc/include/llvm-libc-macros/linux unistd-macros.h

[libc][unistd] Support _SC_GET(GR|PW)_R_SIZE_MAX in sysconf. (#222135)

* Add support for POSIX-specified `_SC_GETGR_R_SIZE_MAX` and
`_SC_GETPW_R_SIZE_MAX`
  constants used as arguments to `sysconf` function;
* Return -1 for these values - they provide "initial size" for
user-supplied buffers passed to `getgr*` and `getpw*`
functions, but there's no real maximum limit imposed by the LLVM-libc
implementation, and user might provide a
size they can, and rely on `ERANGE` return values if the chosen size
ended up being too small for pwd/group entries.
* Add unit test coverage, and update the unit test to use proxy headers
instead of system-provided `<unistd.h>`.
  Also, properly test errno values returned by `sysconf`.

This fixes one of the remaining blockers for building Clang against
LLVM-libc (https://github.com/llvm/llvm-project/issues/97191)
DeltaFile
+22-12libc/test/src/unistd/sysconf_test.cpp
+8-0libc/src/unistd/linux/sysconf.cpp
+4-1libc/test/src/unistd/CMakeLists.txt
+4-0libc/include/unistd.yaml
+2-0libc/include/llvm-libc-macros/linux/unistd-macros.h
+40-135 files

LLVM/project 1f388eallvm/test/Transforms/SLPVectorizer/AArch64 splat-gather-subtree-drop.ll

[SLP][NFC]Add a test with missed vectorization, NFC



Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/222141
DeltaFile
+144-0llvm/test/Transforms/SLPVectorizer/AArch64/splat-gather-subtree-drop.ll
+144-01 files

LLVM/project 6405091clang/docs CMakeLists.txt, clang/include/clang/Options ClangOptionDocs.td Options.td

[clang][docs] Reapply Markdown command line reference generation
DeltaFile
+33-32clang/include/clang/Options/Options.td
+39-26clang/utils/TableGen/ClangOptionDocEmitter.cpp
+12-13clang/include/clang/Options/ClangOptionDocs.td
+7-7clang/docs/CMakeLists.txt
+91-784 files

LLVM/project ac183e6clang/include/clang/Options FlangOptions.td, flang/docs FlangOptionsMan.td FlangOptionsDocs.td

[flang][docs] Support Markdown option documentation
DeltaFile
+42-51clang/include/clang/Options/FlangOptions.td
+15-15flang/docs/CMakeLists.txt
+11-12flang/docs/FlangOptionsDocs.td
+7-5flang/docs/FlangOptionsMan.td
+75-834 files

LLVM/project 1b6c365llvm/lib/Transforms/IPO OpenMPOpt.cpp, llvm/test/Transforms/OpenMP callback_parallel_regions.ll spmdization_no_guarding_two_reaching_kernels.ll

[OpenMPOpt] Ask the runtime how many of a block's threads can be workers

The custom state machine gates a thread on InitCB < BlockHwSize - WarpSize,
reconstructing the number of worker threads from the block size on the
assumption that the main thread occupies a whole warp above them. The DeviceRTL
already computes that number, in mapping::getMaxTeamThreads(), and its own
generic state machine gates on it in shouldEnterStateMachine(). Export it as
__kmpc_get_max_team_threads(IsSPMD) and call that instead, so the compiler's
state machine and the runtime's agree by construction rather than by arithmetic
that has to be kept in step with the launch geometry.

The entry point is handed the mode rather than reading it back from
mapping::isSPMDMode(), for the same reason shouldEnterStateMachine() takes it as
a parameter: IsSPMDMode lives in shared memory and only the initial thread
writes it, and in generic mode __kmpc_target_init() returns to the workers
without a barrier in between, so that write is not yet theirs to read at this
point. The compiler passes a constant, a custom state machine being built only
for a generic-mode kernel.


    [17 lines not shown]
DeltaFile
+32-64llvm/test/Transforms/OpenMP/spmdization.ll
+24-48llvm/test/Transforms/OpenMP/custom_state_machines.ll
+21-30llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+8-16llvm/test/Transforms/OpenMP/spmdization_indirect.ll
+6-12llvm/test/Transforms/OpenMP/spmdization_no_guarding_two_reaching_kernels.ll
+4-8llvm/test/Transforms/OpenMP/callback_parallel_regions.ll
+95-1784 files not shown
+109-18310 files

LLVM/project d5413dcclang CMakeLists.txt, llvm CMakeLists.txt

[CIR][CMake] Configure MLIR as a dependency-only project

ClangIR requires MLIR, but enabling CIR currently requires users to list MLIR
explicitly in LLVM_ENABLE_PROJECTS. That also attaches all MLIR build, install,
unit-test, and lit targets to the corresponding LLVM aggregates.

When Clang is selected and CLANG_ENABLE_CIR is enabled, append MLIR to the
effective LLVM_ENABLE_PROJECTS list. The common project setup compares that
list with the cached user selection, so an explicit MLIR selection retains its
normal behavior while an implicit selection is configured with EXCLUDE_FROM_ALL.

This makes MLIR targets available for CIR dependency resolution without adding
MLIR's aggregate targets. Keep the existing standalone ClangIR restriction and
do not configure MLIR when CIR is disabled.

Validation:
- Configured Clang with CIR and implicit MLIR test support.
- Configured Clang and MLIR explicitly with CIR and tests enabled.
- Configured Clang without CIR and verified that MLIR remains disabled.

    [4 lines not shown]
DeltaFile
+6-0llvm/CMakeLists.txt
+2-2clang/CMakeLists.txt
+8-22 files

LLVM/project 60e0f41clang CMakeLists.txt, llvm CMakeLists.txt

[CMake] Infer dependency-only projects from the cache

LLVM_ENABLE_PROJECTS historically treats projects enabled to satisfy another
project's dependency the same as projects selected by the user. Consequently,
implicit projects attach their complete build, install, and test suites to
LLVM's aggregate targets.

Keep the cache entry as the user-requested project roots and use the normal
LLVM_ENABLE_PROJECTS variable as the effective dependency closure. Projects in
the effective list but not the cache entry are configured with EXCLUDE_FROM_ALL.
Normalize the special all value before comparing the two sets.

This makes Flang's MLIR and Clang dependencies dependency-only without a second
project collection. It also applies the same rule to Clang when it is added for
LLDB. Forward the cached roots to cross-compilation and bootstrap configurations
so implicit projects do not become explicit in nested builds.

Let MLIR own its dependency-only test policy: configure test support libraries
for downstream consumers without creating MLIR unit tests or registering its

    [10 lines not shown]
DeltaFile
+19-7mlir/CMakeLists.txt
+18-4llvm/CMakeLists.txt
+12-2llvm/cmake/modules/AddLLVM.cmake
+4-1clang/CMakeLists.txt
+1-1llvm/cmake/modules/CrossCompile.cmake
+54-155 files

LLVM/project cc5c514lldb/unittests/Protocol ProtocolMCPServerTest.cpp, lldb/unittests/TestingSupport TestUtilities.h

[lldb] Fix -Wunused-template (#221815)

This warning was enabled by default in clang 23.1.0 (although reverted
for 23.1.1). These fixes still make sense to perform though. Template
definitions in headers should not use static, and others are completely
unused.
DeltaFile
+0-34lldb/unittests/Protocol/ProtocolMCPServerTest.cpp
+1-1lldb/unittests/TestingSupport/TestUtilities.h
+1-352 files

LLVM/project accc841llvm/lib/Target/AMDGPU AMDGPUReserveWWMRegs.cpp, llvm/test/CodeGen/AMDGPU rewrite-vgpr-mfma-to-agpr-reserved-wwm-vgpr.ll

[AMDGPU] Refresh RegisterClassInfo after reserving WWM registers (#221849)

AMDGPUReserveWWMRegs reserves the VGPRs the WWM allocator picked for SGPR
spill lanes and clears the per-lane VGPR mask, but updates neither
MachineRegisterInfo nor the shared RegisterClassInfo. RegAllocBase
re-freezes the reserved set, but owns its RegisterClassInfo by value, so
only its private copy is refreshed, and a later user of the analysis is
offered an allocation order that still lists the reserved register.

AMDGPURewriteAGPRCopyMFMA became such a user in #216510: its spill slot
elimination assigned that register, which asserts in VirtRegMap and, in a
build without assertions, silently clobbers the spilled SGPRs. #216510 was
reverted in #221749; this is a prerequisite for relanding it.

Update MRI and the analysis at the end of the pass, as SIPreAllocateWWMRegs
already does, after clearPerLaneVGPRAllocMask() since the mask is itself an
input to getReservedRegs().

AI-assisted.
DeltaFile
+379-0llvm/test/CodeGen/AMDGPU/rewrite-vgpr-mfma-to-agpr-reserved-wwm-vgpr.ll
+25-8llvm/lib/Target/AMDGPU/AMDGPUReserveWWMRegs.cpp
+404-82 files

LLVM/project 540f5acclang/lib/Headers/hlsl hlsl_alias_intrinsics.h, clang/test/CodeGenHLSL/builtins select.hlsl

[HLSL] Fix float type promotion to double of the select intrinsic (#222056)

fixes #222055

A previous pr replaced per vector 2-4 overloads with an all inclusive
vector template overload. These vector overloads needed to be guarded so
that vec1s go down the scalar overload path.

Assisted by Copilot MA-code-1.1-flash
DeltaFile
+22-2clang/test/CodeGenHLSL/builtins/select.hlsl
+9-6clang/lib/Headers/hlsl/hlsl_alias_intrinsics.h
+31-82 files

LLVM/project 9f52468clang/include/clang/Basic DiagnosticGroups.td DiagnosticDocs.td, clang/test/TableGen diag-docs-determinism.td DiagnosticDocs.inc

[clang][docs] Generate diagnostics reference as Markdown (#221361)

Generate Clang's diagnostics reference from MyST Markdown rather than
reStructuredText. Update diagnostic-group documentation to use native MyST
roles and references, and have the TableGen emitter produce MyST list tables
for diagnostic alternatives.

The new list-table emission code is more verbose, but it is conceptually
simpler, since it's just tracking nested indentation as it emits table cells.

Here's a sample of the table markdown output:
```
* - {warning}`warning:`&nbsp;{diagtext}`They say`&nbsp;
  - :::{list-table}
    :widths: auto

    * - {diagtext}`good`
    * - {diagtext}`bad`
    :::

    [21 lines not shown]
DeltaFile
+241-162clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
+105-51clang/test/TableGen/emit-diag-docs.td
+75-70clang/include/clang/Basic/DiagnosticDocs.td
+49-49clang/include/clang/Basic/DiagnosticGroups.td
+6-71clang/test/TableGen/DiagnosticDocs.inc
+33-0clang/test/TableGen/diag-docs-determinism.td
+509-4031 files not shown
+511-4057 files

LLVM/project 91e3c24mlir/include/mlir/Dialect/LLVMIR LLVMDialect.td, mlir/lib/Dialect/LLVMIR/IR LLVMDialect.cpp

[mlir][ABI] Add the nofreeobj param attr to the LLVM dialect

Since #218404 clang marks every indirect argument nofreeobj rather than
nofree.  LLVM allows it on returns too.

Assisted-by: Cursor / claude-opus-5
DeltaFile
+9-1mlir/test/Target/LLVMIR/Import/function-attributes.ll
+10-0mlir/test/Dialect/LLVMIR/parameter-attrs-invalid.mlir
+6-0mlir/test/Target/LLVMIR/llvmir.mlir
+2-0mlir/lib/Target/LLVMIR/AttrKindDetail.h
+1-0mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+1-0mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.td
+29-16 files

LLVM/project d298cacllvm/include/llvm/Support DataExtractor.h, llvm/lib/Support DataExtractor.cpp

[Support] Add DataExtractor::getSLEB128APSInt (#218801)

Add a APSInt variant of `getSLEB128`, supporting values greater than
int64_t.

The new `getSLEB128APSInt` can support values greater than `INT64_MAX`.
This functionality will be used by LLDB formatter bytecode.

Assisted-by: claude
DeltaFile
+61-0llvm/unittests/Support/DataExtractorTest.cpp
+34-0llvm/include/llvm/Support/DataExtractor.h
+31-0llvm/lib/Support/DataExtractor.cpp
+126-03 files

NetBSD/pkgsrc pgnXPLOx11/qt6-qtbase distinfo Makefile, x11/qt6-qtbase/patches patch-src_gui_image_qiconloader.cpp

   qt6-qtbase: fix regression in icon handling

   Don't consider fallbackThemeName() in themeName()
   https://codereview.qt-project.org/c/qt/qtbase/+/763319
   https://bugs.kde.org/show_bug.cgi?id=524657
VersionDeltaFile
1.1+18-0x11/qt6-qtbase/patches/patch-src_gui_image_qiconloader.cpp
1.77+2-2x11/qt6-qtbase/Makefile
1.35+2-1x11/qt6-qtbase/distinfo
+22-33 files

LLVM/project d4816e7flang/lib/Semantics check-data.cpp, flang/test/Semantics data27.f90

[flang] Fix crash with legacy DATA initializer for an invalid declaration (#221170)

For legacy DATA /initialization/, declarations weren't checked for
errors before construction, resulting in an assert crash. This PR fixes
this by adding a check.

Fixes #220846
DeltaFile
+7-0flang/test/Semantics/data27.f90
+1-1flang/lib/Semantics/check-data.cpp
+8-12 files

LLVM/project 733c1eclibc/src/__support/pwd flat_file_db.h, libc/src/pwd flat_file_db.h

[libc][NFC] Move flat-file database to src/__support/pwd (#221778)

Move FieldTokenizer and FlatFileDatabase from libc/src/pwd to
libc/src/__support/pwd so they can be reused across subsystems (such as
grp) without cross-directory dependencies.

* Move headers to libc/src/__support/pwd/
* Move unit tests to libc/test/src/__support/pwd/
* Update include paths and CMake dependencies in libc/src/pwd/

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+0-219libc/test/src/pwd/flat_file_db_test.cpp
+219-0libc/test/src/__support/pwd/flat_file_db_test.cpp
+0-217libc/src/pwd/flat_file_db.h
+217-0libc/src/__support/pwd/flat_file_db.h
+0-150libc/test/src/pwd/field_tokenizer_test.cpp
+150-0libc/test/src/__support/pwd/field_tokenizer_test.cpp
+586-58610 files not shown
+723-68716 files

LLVM/project 2e1eb8allvm/test/CodeGen/SystemZ zos-ppa1-name.ll zos-ppa1.ll

[SystemZ][z/OS] Correctly align the constant pool and the PPA1

Both should be half-word aligned. However, testing revealed that
both can end up on odd addresses, which leads to relocation errors.
Fix is to change the alignment.
DeltaFile
+19-0llvm/test/CodeGen/SystemZ/zos-align-constpool.ll
+6-6llvm/test/CodeGen/SystemZ/zos-stack-protector.ll
+5-5llvm/test/CodeGen/SystemZ/zos-prologue-epilog.ll
+4-4llvm/test/CodeGen/SystemZ/zos-ppa1.ll
+4-4llvm/test/CodeGen/SystemZ/zos-ppa1-argarea.ll
+1-1llvm/test/CodeGen/SystemZ/zos-ppa1-name.ll
+39-203 files not shown
+43-229 files

LLVM/project 43e82f2lldb/source/Commands CommandObjectType.cpp

[lldb] Remove ConstString from CommandObjectType interfaces (#218811)

CommandObjectType was creating ConstStrings type names, function names,
etc. before they needed to be. I'd like to remove ConstString from the
DataFormatter code entirely, so pushing the creation down as far as
possible first is a good first step.

The only remaining use (outside of function arguments) is
ScriptAddOptions. I need to understand it more before I can really
remove it.
DeltaFile
+55-58lldb/source/Commands/CommandObjectType.cpp
+55-581 files

FreeNAS/freenas 9858e14src/middlewared/middlewared/plugins network.py, src/middlewared/middlewared/plugins/interface sync.py bridge.py

Fail interface.commit when a bridge member cannot be added, and reject members that host a VM or container NIC in MACVLAN mode
DeltaFile
+45-11src/middlewared/middlewared/plugins/interface/bridge.py
+51-0tests/api2/test_interface_bridge_member_busy.py
+35-2src/middlewared/middlewared/plugins/network.py
+4-4src/middlewared/middlewared/plugins/interface/sync.py
+135-174 files

FreeBSD/ports edb2f38biology/p5-transdecoder Makefile

biology/p5-transdecoder: Change WWW for portscout

Portscount doesn't seem to find it's way past github.io pages, so
changed WWW to the main github project page.
DeltaFile
+1-1biology/p5-transdecoder/Makefile
+1-11 files

LLVM/project de2a0ddllvm/utils/gn/secondary/clang/lib/CodeGen BUILD.gn, llvm/utils/gn/secondary/clang/lib/CodeGenUtils BUILD.gn

[gn build] Port commits (#222125)

9853cb54d9d2
b182b415d9b2
b90c062f3f03
e91092685eab
4c986c23921d
DeltaFile
+10-0llvm/utils/gn/secondary/clang/lib/CodeGenUtils/BUILD.gn
+1-1llvm/utils/gn/secondary/llvm/unittests/ExecutionEngine/Orc/BUILD.gn
+1-0llvm/utils/gn/secondary/llvm/unittests/CodeGen/BUILD.gn
+1-0llvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/BUILD.gn
+1-0llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+1-0llvm/utils/gn/secondary/clang/lib/CodeGen/BUILD.gn
+15-16 files

FreeBSD/ports 052ca3fwww/code-server/files EXTENSIONS.md

www/code-server: Update EXTENSIONS.md

Add a section about switching the display language: language packs
must be installed through the Extensions view (the standalone CLI
does not register them), and the packs on Open VSX can lag behind
the bundled VS Code version.

Sponsored by:   Netzkommune GmbH
DeltaFile
+12-0www/code-server/files/EXTENSIONS.md
+12-01 files

LLVM/project cbbdbfcclang/test/Frontend optimization-remark-target-features-arm.c optimization-remark-target-features-aarch64.c, llvm/lib/CodeGen MachineFunction.cpp

[llc] add target-features optimization remark

In clang we have --print-enabled-extensions which will print the
AArch64 extensions enabled for a given TU. However, sometimes it is
useful to be able to print out the actual subtarget features for each
function, for debugging/testing purposes. Add an optimization remark
for that.
DeltaFile
+45-0llvm/test/CodeGen/AArch64/optimization-remark-target-features.ll
+30-0clang/test/Frontend/optimization-remark-target-features-aarch64.c
+30-0llvm/test/CodeGen/ARM/optimization-remark-target-features.ll
+19-0clang/test/Frontend/optimization-remark-target-features-arm.c
+17-0llvm/lib/CodeGen/MachineFunction.cpp
+1-1llvm/test/CodeGen/AArch64/prologue-epilogue-remarks.mir
+142-16 files

FreeBSD/ports 0756c83biology/p5-transdecoder pkg-plist distinfo

biology/p5-transdecoder: Update to 6.0.0

Add single entry point wrapper script and a couple new options
Changes: https://github.com/TransDecoder/TransDecoder/releases

Reported by:    Repology
DeltaFile
+5-3biology/p5-transdecoder/Makefile
+3-3biology/p5-transdecoder/distinfo
+1-0biology/p5-transdecoder/pkg-plist
+9-63 files

LLVM/project fee4360clang/include/clang/CIR/Dialect/IR CIRTypes.td, clang/lib/CIR/Dialect/Transforms CallConvLoweringPass.cpp

[CIR][NFC] Rewrite two comments based on reviewer feedback

Assisted-by: Cursor / claude-opus-5
DeltaFile
+4-10clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+3-7clang/include/clang/CIR/Dialect/IR/CIRTypes.td
+7-172 files

FreeNAS/freenas 6ed2575src/middlewared/middlewared/alembic/versions/26.0 2026-09-03_15-00_truenas_s3_service.py 2026-09-08_18-00_truenas_s3_object_ownership.py

Fold object_ownership into the S3 service migration

The column is added where the table is created rather than altered
onto it a revision later: neither has shipped, so the pair of
migrations only asks a fresh install to make and then rewrite a
column it has no rows in.
DeltaFile
+0-54src/middlewared/middlewared/alembic/versions/26.0/2026-09-08_18-00_truenas_s3_object_ownership.py
+1-0src/middlewared/middlewared/alembic/versions/26.0/2026-09-03_15-00_truenas_s3_service.py
+1-542 files

FreeNAS/freenas 60def41src/middlewared/middlewared/plugins network.py, src/middlewared/middlewared/plugins/interface sync.py bridge.py

Fail interface.commit when a bridge member cannot be added, and reject members that host a VM or container NIC in MACVLAN mode
DeltaFile
+45-11src/middlewared/middlewared/plugins/interface/bridge.py
+51-0src/middlewared/middlewared/pytest/unit/plugins/test_interface.py
+51-0tests/api2/test_interface_bridge_member_busy.py
+49-0src/middlewared/middlewared/pytest/unit/plugins/test_interface_bridge_sync.py
+35-2src/middlewared/middlewared/plugins/network.py
+4-4src/middlewared/middlewared/plugins/interface/sync.py
+235-176 files