LLVM/project eeef5a4 — clang-tools-extra/clangd/refactor/tweaks DefineOutline.cpp, clang-tools-extra/clangd/unittests/tweaks DefineOutlineTests.cpp

[clangd] Drop attributes from definitions generated by DefineOutline (#242635)

When DefineOutline moves a function body out of line, it no longer
copies the attributes to the generated definition. They stay on the
declaration, where the definition inherits them from.

Example: Applied to
```
struct A { [[nodiscard]] int foo() { return 0; } };
```
Before:
```
struct A { [[nodiscard]] int foo(); };
[[nodiscard]] int A::foo() { return 0; }
```
Now:
```
struct A { [[nodiscard]] int foo(); };
int A::foo() { return 0; }

    [22 lines not shown]
DeltaFile
+322-1clang-tools-extra/clangd/unittests/tweaks/DefineOutlineTests.cpp
+163-23clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
+4-0clang-tools-extra/docs/ReleaseNotes.md
+489-243 files

LLVM/project 4bf1058 — mlir/lib/Conversion/TosaToLinalg TosaToLinalg.cpp, mlir/test/Conversion/TosaToLinalg tosa-to-linalg.mlir

[mlir][tosa] Fix Rescale mixed constant lowering (#241992)

## Summary

Fix `tosa.rescale` lowering when exactly one of the multiplier or shift
operands is constant. Extract each constant operand’s values
independently so the lowering doesn’t create an empty tensor for the
constant input.

Add regression tests for both mixed constant/dynamic cases, covering
scalar and per-channel operands. Add an assertion to catch a constant
operand being passed to the lowering helper without values.

Fixes #238236

AI Usage Disclaimer: Copilot tool was used to generate tests in
`mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir`. I've reviewed
to the best of my ability.
DeltaFile
+55-7mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
+15-15mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
+70-222 files

LLVM/project 78b32bf — llvm/lib/Target/Mips MipsDSPInstrInfo.td, llvm/test/CodeGen/Mips dsp-vec-bitcast.ll

[Mips] Fix DSP bitcasts between v2i16 and v4i8

v2i16 and v4i8 are both legal DSP vector types in the DSPR register
class, but MipsDSPInstrInfo.td only had bitconvert patterns between each
of them and i32/f32, so a bitcast between the two vector types failed to
select.

The bitcast is a no-op: both types are loaded and stored as a 32-bit GPR
word with element 0 at the lowest address on either endianness. Add the
two missing patterns, plus a test covering both directions on both byte
orders.

Fixes #245155
DeltaFile
+66-0llvm/test/CodeGen/Mips/dsp-vec-bitcast.ll
+2-0llvm/lib/Target/Mips/MipsDSPInstrInfo.td
+68-02 files

LLVM/project b579a24 — llvm/lib/Object RelocationResolver.cpp, llvm/lib/Target/Sparc SparcTargetObjectFile.cpp

[SPARC] Use a DTP-relative offset for the DWARF location of TLS variables (#244842)

The SPARC target did not override getDebugThreadLocalSymbol, so the
DW_OP_const4u/DW_OP_const8u operand in the location of a thread-local
variable was emitted as a plain address (R_SPARC_32/R_SPARC_UA64)
instead of the variable's offset within the module's TLS block. gdb
then could not read thread-local variables in programs built with clang.

Emit %r_tls_dtpoff32/%r_tls_dtpoff64, as GCC does, which become
R_SPARC_TLS_DTPOFF32/R_SPARC_TLS_DTPOFF64. Accept these specifiers in
.word/.xword in the assembler, mark the referenced symbol STT_TLS like
GNU as, and teach the RelocationResolver about the relocations so
llvm-dwarfdump does not warn about them.

Fixes #244635

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+61-0llvm/test/DebugInfo/Sparc/tls.ll
+54-0llvm/test/MC/Sparc/Relocations/tls-dtpoff.s
+13-0llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
+10-0llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
+7-1llvm/lib/Object/RelocationResolver.cpp
+4-0llvm/lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp
+149-11 files not shown
+151-17 files

LLVM/project 6f3c64b — llvm/lib/Target/Sparc/AsmParser SparcAsmParser.cpp, llvm/test/MC/Sparc sparc-asm-errors.s

[Sparc][MC] Report unknown register names as invalid register names (#245150)

When the name after '%' is neither a register nor a relocation
specifier, the parser always reported "invalid relocation specifier",
even for things like "%r100" or "%f33" that were clearly meant to be
registers.

Make matchSparcAsmModifiers return ParseStatus and only treat the name
as a relocation specifier when it is followed by '('. Otherwise report
"invalid register name" in the caller, right after trying to match a
register name.

Also report an error for the TLS relocation specifiers that are only
valid as the trailing relocation operand, instead of failing without
one.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+18-15llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
+19-4llvm/test/MC/Sparc/sparc-asm-errors.s
+37-192 files

LLVM/project d32896b — llvm/lib/Transforms/Scalar ScalarOptions.td LoopInterchange.cpp, llvm/test/Transforms/LoopInterchange reduction2mem-limitation.ll reduction2mem.ll

[LoopInterchange] Hoist Safe instruction to inner loop's PreHeader (#236078)

Currently for one of motivating examples in bwaves benchmark, where
address calculation is emitted near to store in reduction loops exit
block.
To enable reduction2memory in thiscase, we need to hoist the address
calculation to inner loop pre header so it becomes available to perform
the load.
This gives 5-6% performance gain for bwaves.
DeltaFile
+91-0llvm/test/Transforms/LoopInterchange/reduction2mem.ll
+64-10llvm/test/Transforms/LoopInterchange/reduction2mem-limitation.ll
+55-11llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+2-0llvm/lib/Transforms/Scalar/ScalarOptions.td
+212-214 files

LLVM/project 7e3b0bf — llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/AArch64 fast-two-sum-operand-order.ll

[SLP]Keep fast-two-sum operands in one column on reorder

Look-ahead paired b of s = a + b; e = s - b with a of the other lane,
so each product was vectorized twice plus shuffles (libc sincos on
AArch64: 4 vector fmuls instead of 2). Operands, used with the lane
root by the same binary users, stay in one column.

Assisted-by: Cursor

Pull-request: https://github.com/llvm/llvm-project/pull/243142
Reviewers: RKSimon, bababuck
Reviewed-by: bababuck
DeltaFile
+68-16llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+6-24llvm/test/Transforms/SLPVectorizer/AArch64/fast-two-sum-operand-order.ll
+7-11llvm/test/Transforms/SLPVectorizer/X86/fast-two-sum-operand-order-second-pass.ll
+81-513 files

LLVM/project 9c93bc2 — llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64/GlobalISel arm64-fallback-scalable-gep.ll

[AArch64][GlobalISel] Fall back to SelectionDAG for GEPs with scalable element types (#234057)

This code Fixes #233165 

The IRTranslator file couldn't translate the getelementptr function for
gaining access to the elements of an array due to the function
converting the scalable stride(TypeSize) to an uint64_t which causes an
error.

As a solution for this problem, I changed the
AArch64TargetLowering::fallBackToDAGISel file in order to check for the
getelementptr's source element type and in the case of the scalable
stride data type, falls back to the SelectionDAG which can deal with the
scalable stride element.

A test is added under llvm/test/CodeGen/AArch64/GlobalISel/.

The issue was found with an LLM-based testing tool, and I used Claude to
help reduce it and locate the cause.
DeltaFile
+10-0llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback-scalable-gep.ll
+5-0llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+15-02 files

LLVM/project 877a252 — libcxxabi/src private_typeinfo.h private_typeinfo.cpp

[libc++abi] Only store a single dst_ptr
DeltaFile
+12-16libcxxabi/src/private_typeinfo.cpp
+2-4libcxxabi/src/private_typeinfo.h
+14-202 files

LLVM/project ba58070 — llvm/lib/Transforms/Vectorize SLPVectorizer.cpp

[SLP] NFC: make candidate state ownership explicit

Separate the state for the currently owned SLP graph from the graph state
used by dependency analysis, costing and emission. Keep these in private
CandidateState and SharedGraphState members of BoUpSLP.

Centralize candidate reset after scheduler invalidation, clear shared
observers before destroying graph entries, and verify ownership under
EXPENSIVE_CHECKS. Preserve existing reset boundaries and vectorization
behavior.

Assisted-by: codex
DeltaFile
+1,620-1,297llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+1,620-1,2971 files

LLVM/project 7282cb9 — llvm/lib/Target/LoongArch LoongArchISelLowering.cpp

[LoongArch] Use INSERT_SUBREG for PseudoXVINSGR2VR into an undefined vector. NFC

When inserting an element into the low half of an undefined LASX vector,
the insert is done on the low 128 bits and the result was widened with
SUBREG_TO_REG. That means that the instruction defining the low 128 bits
also defined the upper 128 bits, which is not the case. Insert the result
into the undefined source vector with INSERT_SUBREG instead, which keeps
its upper 128 bits undefined.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+2-1llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+2-11 files

LLVM/project 3c34fcd — utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[bazel][mlir] Port 8ac298779c25: Partition NVVM dialect ops (#245187)
DeltaFile
+66-15utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+66-151 files

LLVM/project 28126a5 — lld/MachO Relocations.h InputFiles.cpp, lld/test/MachO indirect-symtab.s arm64-stubs.s

[lld][MachO] Pool relocation storage per input section

Compilers split input sections into many subsections, and each subsection currently grows its own relocation vector. In a Chromium link, that means 3.41 million small allocations for 51.3 million relocations. Allocation dominates parallel relocation parsing: glibc grows worker arenas with `mprotect`, and the workers contend on the process's `mmap_lock`.

## Design

I allocate one relocation array per input Section and let its subsections borrow slices of it. Chromium then needs 82,210 arrays. The arrays come from a thread-local bump allocator, which this PR adds to `lld/Common`: the existing thread-local allocators are typed and construct and destroy their elements, which a buffer filled by placement does not want.

Compilers emit relocations by descending address, so each subsection's relocations arrive one after another. `ld -r` output may not be sorted: the parser checks the order as it goes, and on the first out-of-order relocation it sorts the section's relocations and parses them again, holding back diagnostics until it can no longer start over. A slice that later passes append to moves to a buffer of its own.

The parser fills each array from the back, so relocations end up in ascending address order, both across subsections and within each one. A SUBTRACTOR still precedes its paired UNSIGNED. Upstream stores each subsection's relocations in descending order, and the thunk pass walks them in reverse to visit branches by ascending address. With ascending storage, the relocation scan and the thunk pass both read a section's relocations front to back, and the thunk pass becomes a forward loop.

Passes that act on relocations in storage order now do so in ascending address order within a subsection. GOT, stub and binding entries are therefore created in source order, as are undefined-symbol diagnostics and `-why_live` output. The affected tests are updated; only the order of entries changes.

## Measurements

Both tables compare this PR, merged into `main` at 950baabb7fdf, against that commit. They give means and cbdr 95% confidence intervals over 30 interleaved paired rounds at the default thread count.

Linux (AMD Ryzen 7 7700):

    [37 lines not shown]
DeltaFile
+146-22lld/test/MachO/unsorted-relocations.yaml
+90-41lld/MachO/InputFiles.cpp
+71-0lld/MachO/Relocations.h
+14-3lld/test/MachO/invalid/invalid-relocation-pcrel.yaml
+7-7lld/test/MachO/arm64-stubs.s
+6-6lld/test/MachO/indirect-symtab.s
+334-7920 files not shown
+395-13426 files

LLVM/project aec9b25 — utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[bazel][mlir] Port b6f08ad4d767: Add OpenACCToLLVMIRTranslation (#245188)
DeltaFile
+25-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+25-01 files

LLVM/project 9b88baa — utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[bazel][mlir] Port 5cd26bf84b59: Pass -attrdefs-registration-name for BuiltinLocation (#245186)
DeltaFile
+8-2utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+8-21 files

LLVM/project c5091c7 — utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[bazel][mlir] Port 574f15e2ac88: Add :GPUOpsTdFiles to OpenAccOpsTdFiles (#245185)
DeltaFile
+1-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+1-01 files

LLVM/project 4225810 — llvm/include/llvm/Analysis TargetTransformInfo.h, llvm/lib/Target/AMDGPU AMDGPUTargetTransformInfo.cpp

[AMDGPU] Check afn only on the fdiv lanes
DeltaFile
+3-3llvm/include/llvm/Analysis/TargetTransformInfo.h
+2-2llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+5-52 files

LLVM/project 12107a7 — mlir/docs/DefiningDialects AttributesAndTypes.md, mlir/test/lib/Dialect/Test TestOps.td TestAttrDefs.td

rebase
DeltaFile
+36-34mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
+13-16mlir/test/lib/Dialect/Test/TestAttrDefs.td
+11-12mlir/test/lib/Dialect/Test/TestOps.td
+7-6mlir/test/mlir-tblgen/attr-type-partitions.td
+4-2mlir/docs/DefiningDialects/AttributesAndTypes.md
+71-705 files

NetBSD/pkgsrc pT8FZII — doc TODO CHANGES-2026

   doc: Updated chat/unrealircd to 6.2.7.1
VersionDeltaFile
1.28451+1-2doc/TODO
1.8316+2-1doc/CHANGES-2026
+3-32 files

NetBSD/pkgsrc WC0R1Cx — chat/unrealircd options.mk distinfo, chat/unrealircd/patches patch-include_h.h patch-configure

   unrealircd: update to 6.2.7.1.

   Update using unrealircd6, but updated to latest version.
   Version 5.x is unsupported since July 2023.

   Changes: too many to list here, but 6.2.7.1 in particular
   is a security release.
VersionDeltaFile
1.21+67-6chat/unrealircd/PLIST
1.104+17-31chat/unrealircd/Makefile
1.35+6-10chat/unrealircd/distinfo
1.1+14-0chat/unrealircd/patches/patch-configure
1.19+1-10chat/unrealircd/options.mk
1.2+4-4chat/unrealircd/patches/patch-include_h.h
+109-616 files not shown
+116-6812 files

LLVM/project 55c7817 — llvm/lib/Target/AMDGPU AMDGPUTargetTransformInfo.cpp, llvm/lib/Transforms/Vectorize SLPVectorizer.cpp

[SLP][AMDGPU] Apply reviewer suggestions
DeltaFile
+22-15llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+16-8llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+16-7llvm/test/Transforms/SLPVectorizer/AMDGPU/fmul-fusion-copyable-lane.ll
+54-303 files

LLVM/project 9087402 — llvm/lib/Target/AMDGPU AMDGPUTargetTransformInfo.cpp, llvm/lib/Transforms/Vectorize SLPVectorizer.cpp

[SLP][AMDGPU] Apply more reviewer suggestions
DeltaFile
+17-24llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+8-12llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+25-362 files

LLVM/project ce3ea7f — llvm/include/llvm/CodeGen BasicTTIImpl.h, llvm/lib/Target/AArch64 AArch64TargetTransformInfo.cpp

[TTI] Pass TLibInfo to the getArithmeticInstrCost implementations
DeltaFile
+6-6llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+5-3llvm/include/llvm/CodeGen/BasicTTIImpl.h
+3-3llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
+3-3llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
+3-2llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+2-2llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+22-1921 files not shown
+46-2927 files

LLVM/project 1e42b1c — llvm/include/llvm/CodeGen BasicTTIImpl.h

[TTI] Pass the scalars in the scalarized getArithmeticInstrCost
DeltaFile
+1-1llvm/include/llvm/CodeGen/BasicTTIImpl.h
+1-11 files

LLVM/project 0654984 — llvm/lib/Target/AMDGPU AMDGPUTargetTransformInfo.cpp, llvm/lib/Target/Hexagon HexagonTargetTransformInfo.cpp

[TTI][SLP] Pass the scalars of the lanes to getArithmeticInstrCost

SLP prices a vector instruction with one scalar lane as the context. A
target that reads a property of the context, like the users of an fmul
that fuses into an fma, gives the whole vector the property of that lane.

Add the scalars of the lanes to getArithmeticInstrCost, like
getAltInstrCost does, and pass them from SLP. AMDGPU uses them for the
fmul fusion and the fdiv afn costs: the vector gets the cheaper cost only
if all lanes qualify.

Assisted-by: Claude Opus
DeltaFile
+30-12llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+21-7llvm/test/Transforms/SLPVectorizer/AMDGPU/fmul-fusion-ctx-mixed-lanes.ll
+14-7llvm/test/Transforms/SLPVectorizer/AMDGPU/fdiv-afn-ctx-lanes.ll
+7-6llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+5-4llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
+5-4llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
+82-4025 files not shown
+142-8931 files

LLVM/project 8028554 — llvm/test/Transforms/SLPVectorizer/AMDGPU fdiv-afn-ctx-lanes.ll

[SLP][NFC] Add an AMDGPU test for fdiv afn in an alternate node
DeltaFile
+44-1llvm/test/Transforms/SLPVectorizer/AMDGPU/fdiv-afn-ctx-lanes.ll
+44-11 files

LLVM/project 535b6b5 — llvm/lib/Target/LoongArch LoongArchLASXInstrInfo.td

Use lsx_to_lasx in the LASX cast_128 and insert_128 intrinsic patterns

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+9-9llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td
+9-91 files

LLVM/project 5916063 — lld/MachO Relocations.h InputFiles.cpp, lld/test/MachO undef-spell-corrector.s arm64-stubs.s

[lld][MachO] Pool relocation storage per input section

Compilers split input sections into many subsections, and each subsection currently grows its own relocation vector. In a Chromium link, that means 3.41 million small allocations for 51.3 million relocations. Allocation dominates parallel relocation parsing: glibc grows worker arenas with `mprotect`, and the workers contend on the process's `mmap_lock`.

## Design

I allocate one relocation array per input Section and let its subsections borrow slices of it. Chromium then needs 82,210 arrays. The arrays come from a thread-local bump allocator, which this PR adds to `lld/Common`: the existing thread-local allocators are typed and construct and destroy their elements, which a buffer filled by placement does not want.

Compilers emit relocations by descending address, so each subsection's relocations arrive one after another. `ld -r` output may not be sorted: the parser checks the order as it goes, and on the first out-of-order relocation it sorts the section's relocations and parses them again, holding back diagnostics until it can no longer start over. A slice that later passes append to moves to a buffer of its own.

The parser fills each array from the back, so relocations end up in ascending address order, both across subsections and within each one. A SUBTRACTOR still precedes its paired UNSIGNED. Upstream stores each subsection's relocations in descending order, and the thunk pass walks them in reverse to visit branches by ascending address. With ascending storage, the relocation scan and the thunk pass both read a section's relocations front to back, and the thunk pass becomes a forward loop.

Passes that act on relocations in storage order now do so in ascending address order within a subsection. GOT, stub and binding entries are therefore created in source order, as are undefined-symbol diagnostics and `-why_live` output. The affected tests are updated; only the order of entries changes.

## Measurements

Both tables compare this PR, merged into `main` at 950baabb7fdf, against that commit. They give means and cbdr 95% confidence intervals over 30 interleaved paired rounds at the default thread count.

Linux (AMD Ryzen 7 7700):

    [36 lines not shown]
DeltaFile
+146-22lld/test/MachO/unsorted-relocations.yaml
+90-41lld/MachO/InputFiles.cpp
+71-0lld/MachO/Relocations.h
+14-3lld/test/MachO/invalid/invalid-relocation-pcrel.yaml
+7-7lld/test/MachO/arm64-stubs.s
+6-6lld/test/MachO/undef-spell-corrector.s
+334-7920 files not shown
+396-13426 files

LLVM/project cf40f87 — llvm/lib/Target/Mips MipsSEISelLowering.cpp MipsMSAInstrInfo.td, llvm/test/CodeGen/Mips/msa arithmetic_float.ll 3rf_4rf.ll

[Mips] Fix `fma` argument swap bug (#245047)

The `llvm.fma` intrinsic computes `a*b + c`, the MIPS `fmadd`
instruction computes `a + b*c`.

- [MSA
docs](https://jnastarot.io/arch_index/pdf/MD00868-1D-MSA64-AFP-01.12.pdf#page=181)
- langref does not explicitly define the argument order, but [there is
this
comment](https://github.com/llvm/llvm-project/blob/1bd1774757f8fb19c0a06f84cbb53076b75eafbb/llvm/include/llvm/CodeGen/ISDOpcodes.h#L522-L523)
DeltaFile
+14-0llvm/test/CodeGen/Mips/msa/3rf_4rf.ll
+4-4llvm/test/CodeGen/Mips/msa/arithmetic_float.ll
+6-2llvm/lib/Target/Mips/MipsMSAInstrInfo.td
+4-2llvm/lib/Target/Mips/MipsSEISelLowering.cpp
+28-84 files

NetBSD/othersrc LOmjLLw — usr.bin/gooeymux Makefile tinygfx.h

   generalize titlebar things, add one for brightness control
VersionDeltaFile
1.1+219-0usr.bin/gooeymux/titlebar.c
1.14+4-21usr.bin/gooeymux/init.c
1.4+2-11usr.bin/gooeymux/window.c
1.8+4-1usr.bin/gooeymux/tinygfx.h
1.3+1-1usr.bin/gooeymux/Makefile
+230-345 files