LLVM/project 1b5da53lldb/source/Plugins/Process/gdb-remote GDBRemoteCommunicationServerLLGS.cpp

[lldb-server] Fix GetMemoryRegionInfo syntax to include trailing `;` (#224319)

GDBRemoteCommunicationClient::GetMemoryRegionInfo parses fields of this
packet using `StringExtractor::GetNameColonValue`, which expects a `;`
even for the last field. The documentation of the packet doesn't
explicitly say so, but implies these fields should always be
;-terminated. As a result, before this patch, that field was not parsed
at all.
DeltaFile
+1-1lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
+1-11 files

LLVM/project 7f35f5flibcxx/test/std/containers/sequences/deque types.compile.pass.cpp types.pass.cpp, libcxx/test/std/containers/sequences/vector types.compile.pass.cpp types.pass.cpp

[libc++] Refactor container's types.pass.cpp tests (#223602)

Convert types.pass.cpp to compile-only tests because there is no runtime
component.

---------

Co-authored-by: Hristo Hristov <zingam at outlook.com>
Co-authored-by: A. Jiang <de34 at live.cn>
Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>
DeltaFile
+0-180libcxx/test/std/containers/views/mdspan/mdspan/types.pass.cpp
+179-0libcxx/test/std/containers/views/mdspan/mdspan/types.compile.pass.cpp
+0-112libcxx/test/std/containers/sequences/vector/types.pass.cpp
+0-111libcxx/test/std/containers/sequences/deque/types.pass.cpp
+110-0libcxx/test/std/containers/sequences/vector/types.compile.pass.cpp
+109-0libcxx/test/std/containers/sequences/deque/types.compile.pass.cpp
+398-40330 files not shown
+1,514-1,54936 files

LLVM/project 57fcb02clang/test/CodeGen builtin-clear-padding-codegen.c, clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/zvzip/policy/non-overloaded vunzipo.c vunzipe.c

enum

Created using spr 1.3.7
DeltaFile
+5,753-0llvm/lib/Target/Xtensa/XtensaS3DSPInstrInfo.td
+4,402-1,088clang/test/CodeGenCXX/builtin-clear-padding-codegen.cpp
+2,801-612clang/test/CodeGen/builtin-clear-padding-codegen.c
+145-1,729clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/zvzip/policy/overloaded/vunzipe.c
+145-1,729clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/zvzip/policy/non-overloaded/vunzipo.c
+145-1,729clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/zvzip/policy/non-overloaded/vunzipe.c
+13,391-6,8871,748 files not shown
+81,470-35,6601,754 files

LLVM/project 9d9c2efclang/test/CodeGen builtin-clear-padding-codegen.c, clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/zvzip/policy/non-overloaded vunzipo.c vunzipe.c

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+5,753-0llvm/lib/Target/Xtensa/XtensaS3DSPInstrInfo.td
+4,402-1,088clang/test/CodeGenCXX/builtin-clear-padding-codegen.cpp
+2,801-612clang/test/CodeGen/builtin-clear-padding-codegen.c
+145-1,729clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/zvzip/policy/overloaded/vunzipe.c
+145-1,729clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/zvzip/policy/non-overloaded/vunzipo.c
+145-1,729clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/zvzip/policy/non-overloaded/vunzipe.c
+13,391-6,8871,745 files not shown
+81,382-35,6261,751 files

LLVM/project c4c2755libcxx/include/__locale_dir num.h, libcxx/include/__locale_dir/support openbsd.h linux.h

fix format
DeltaFile
+9-6libcxx/include/__locale_dir/support/newlib.h
+4-6libcxx/include/__locale_dir/support/windows.h
+6-3libcxx/include/__locale_dir/support/linux.h
+6-3libcxx/include/__locale_dir/support/bsd_like.h
+2-4libcxx/include/__locale_dir/support/openbsd.h
+3-3libcxx/include/__locale_dir/num.h
+30-251 files not shown
+32-267 files

LLVM/project c5ab0d0libcxx/include/__locale_dir locale_base_api.h, libcxx/include/__locale_dir/support linux.h bsd_like.h

[libcxx][locale] Refactor strtonum functions using __str_to_float_c_locale<FloatT>
DeltaFile
+15-29libcxx/include/__locale_dir/support/aix.h
+20-5libcxx/include/__locale_dir/support/windows.h
+18-3libcxx/include/__locale_dir/support/openbsd.h
+14-6libcxx/include/__locale_dir/locale_base_api.h
+9-3libcxx/include/__locale_dir/support/linux.h
+9-3libcxx/include/__locale_dir/support/bsd_like.h
+85-494 files not shown
+110-6010 files

LLVM/project 8f2d8cfclang/include/clang/CIR/Dialect Passes.td, clang/lib/CIR/Dialect/Transforms CallConvLoweringPass.cpp

[CIR] Wire AMDGPU into the call-convention lowering pass
DeltaFile
+82-54clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+105-0clang/test/CIR/Transforms/abi-lowering/amdgpu-scalars.cir
+6-2clang/test/CIR/CodeGenHIP/amdgcn-buffer-rsrc-type.hip
+4-2clang/lib/CIR/Lowering/CIRPasses.cpp
+3-1clang/include/clang/CIR/Dialect/Passes.td
+1-1clang/test/CIR/Transforms/abi-lowering/x86_64-lang-addrspace-nyi.cir
+201-601 files not shown
+202-617 files

LLVM/project b132e04llvm/include/llvm/ABI TargetInfo.h, llvm/lib/ABI/Targets AMDGPU.cpp

support CoerceGenericPtrArgToGlobal
DeltaFile
+81-29llvm/lib/ABI/Targets/AMDGPU.cpp
+98-4llvm/unittests/ABI/AMDGPUTargetInfoTest.cpp
+3-1llvm/include/llvm/ABI/TargetInfo.h
+182-343 files

LLVM/project ead0cd1clang/include/clang/CIR/Dialect Passes.h Passes.td, clang/lib/CIR/Dialect/Transforms CallConvLoweringPass.cpp

[CIR] Wire AMDGPU into the call-convention lowering pass
DeltaFile
+82-54clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+105-0clang/test/CIR/Transforms/abi-lowering/amdgpu-scalars.cir
+6-2clang/test/CIR/CodeGenHIP/amdgcn-buffer-rsrc-type.hip
+4-2clang/lib/CIR/Lowering/CIRPasses.cpp
+3-1clang/include/clang/CIR/Dialect/Passes.td
+1-1clang/include/clang/CIR/Dialect/Passes.h
+201-601 files not shown
+202-617 files

LLVM/project 5de66c8llvm/include/llvm/ABI TargetInfo.h, llvm/lib/ABI/Targets AMDGPU.cpp

support CoerceGenericPtrArgToGlobal
DeltaFile
+81-28llvm/lib/ABI/Targets/AMDGPU.cpp
+98-4llvm/unittests/ABI/AMDGPUTargetInfoTest.cpp
+3-1llvm/include/llvm/ABI/TargetInfo.h
+182-333 files

LLVM/project 18ffe57llvm/include/llvm/ABI TargetInfo.h, llvm/lib/ABI TargetInfo.cpp

[ABI] Add AMDGPU target ABI classifier to the LLVM ABI library
DeltaFile
+274-0llvm/unittests/ABI/AMDGPUTargetInfoTest.cpp
+248-0llvm/lib/ABI/Targets/AMDGPU.cpp
+0-55llvm/lib/ABI/Targets/X86.cpp
+54-0llvm/lib/ABI/TargetInfo.cpp
+6-0llvm/include/llvm/ABI/TargetInfo.h
+1-0llvm/unittests/ABI/CMakeLists.txt
+583-551 files not shown
+584-557 files

LLVM/project d46351cllvm/lib/Analysis/models interactive_host.py, llvm/lib/CodeGen MLRegAllocPriorityAdvisor.cpp

[MLGO] Saturate out-of-range regalloc priority advice (#224062)

Converting the float advice to unsigned is undefined outside `[0, 2^32)`
interval

Negative advice wrapped to near UINT_MAX and flipped the priority order,
NaN or advice below 1.0 made every priority 0
DeltaFile
+49-14llvm/test/CodeGen/MLRegAlloc/Inputs/interactive_main.py
+23-1llvm/test/CodeGen/MLRegAlloc/interactive-mode.ll
+18-4llvm/lib/CodeGen/MLRegAllocPriorityAdvisor.cpp
+6-3llvm/lib/Analysis/models/interactive_host.py
+96-224 files

LLVM/project 1ddec11llvm/include/llvm/CodeGen Passes.h ResetMachineFunctionPass.h, llvm/include/llvm/Passes MachinePassRegistry.def

[CodeGen][NPM] Port ResetMachineFunction to NPM (#222886)

Assisted by: Opus 5
DeltaFile
+77-62llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
+41-0llvm/include/llvm/CodeGen/ResetMachineFunctionPass.h
+3-3llvm/test/CodeGen/AMDGPU/llc-pipeline-npm.ll
+2-1llvm/include/llvm/CodeGen/Passes.h
+1-1llvm/lib/CodeGen/TargetPassConfig.cpp
+1-1llvm/include/llvm/Passes/MachinePassRegistry.def
+125-683 files not shown
+128-689 files

LLVM/project 3d3dbe5llvm/lib/ExecutionEngine/Orc EPCGenericRTDyldMemoryManager.cpp

[ORC] Fix wrong callee in EPCGenericRTDyldMemoryManager dtor (#224493)

The destructor invoked the reserve wrapper with the release signature
when freeing FinalizedAllocs. Call the release wrapper instead.

No testcase. This was spotted by inspection, and this class is expected
to be deprecated shortly.
DeltaFile
+1-1llvm/lib/ExecutionEngine/Orc/EPCGenericRTDyldMemoryManager.cpp
+1-11 files

LLVM/project af80392clang/include/clang/Parse Parser.h, clang/lib/Parse ParseDecl.cpp ParseCXXInlineMethods.cpp

[BoundsSafety] Unify ParseLexedAttributeTokens (#206689)

This PR is a continuation of the previous [Unify ParseLexedAttribute
PR](https://github.com/llvm/llvm-project/pull/186033)
DeltaFile
+4-34clang/lib/Parse/ParseCXXInlineMethods.cpp
+14-12clang/lib/Parse/ParseDecl.cpp
+2-2clang/include/clang/Parse/Parser.h
+20-483 files

LLVM/project b2f2c6bclang-tools-extra/clang-tidy/misc StaticInitializationCycleCheck.cpp

[clang-tidy] Speed up misc-static-initialization-cycle (#224243)

Closes #224219
DeltaFile
+4-3clang-tools-extra/clang-tidy/misc/StaticInitializationCycleCheck.cpp
+4-31 files

LLVM/project 3c30abbllvm/test/Transforms/ThinLTOBitcodeWriter cfi-functions-hotness.ll

[NFC][ThinLTOBitcodeWriter] Add test for cfi.functions metadata hotness encoding (#223843)

Add pre-commit test coverage establishing the baseline cfi.functions
metadata linkage operand values before implementing hotness encoding.

PR Stack:
* https://github.com/llvm/llvm-project/pull/220776
* https://github.com/llvm/llvm-project/pull/221043
* https://github.com/llvm/llvm-project/pull/221044
* ➤ https://github.com/llvm/llvm-project/pull/223843
* https://github.com/llvm/llvm-project/pull/223846
* https://github.com/llvm/llvm-project/pull/223848
* https://github.com/llvm/llvm-project/pull/221046

Assisted-by: Gemini
DeltaFile
+111-0llvm/test/Transforms/ThinLTOBitcodeWriter/cfi-functions-hotness.ll
+111-01 files

LLVM/project 5d7bda4lldb/source/Plugins/SymbolFile/DWARF SymbolFileDWARF.cpp, lldb/unittests/SymbolFile/DWARF DWARFDIETest.cpp

[lldb] Turn GetDeclContextDIEContainingDIE into a worklist (NFC) (#224453)

Convert GetDeclContextDIEContainingDIE from a recursive to a worklist
approach, avoiding a stack frame per DIE for long chains. The behavior
remains the same.
DeltaFile
+291-0lldb/unittests/SymbolFile/DWARF/DWARFDIETest.cpp
+25-41lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+316-412 files

LLVM/project c9a08bdclang/lib/AST/ByteCode Interp.cpp

[clang][bytecode] Avoid some unnecessary diagnostic work (#224333)

We emit these diagnostics a lot, but we almost never see them. Try to
short-circuit these functions if nobody will see the diagnostics anyway.
DeltaFile
+5-0clang/lib/AST/ByteCode/Interp.cpp
+5-01 files

LLVM/project 0528425lld/MachO DriverUtils.cpp, lld/MinGW Driver.cpp

[lld] Use LLVM_CONSTRUCT_OPT_INFO. NFC (#224503)
DeltaFile
+1-18lld/wasm/Driver.cpp
+1-18lld/MinGW/Driver.cpp
+1-18lld/MachO/DriverUtils.cpp
+3-543 files

LLVM/project ac0c8ebclang/lib/Headers riscv_packed_simd.h, clang/test/CodeGen/RISCV rvp-intrinsics.c

[Clang][RISCV] Add packed subvector extract intrinsics (#224429)

Add the Packed Subvector Extract intrinsics:

- `__riscv_pget_i8x8_i8x4`
- `__riscv_pget_u8x8_u8x4`
- `__riscv_pget_i16x4_i16x2`
- `__riscv_pget_u16x4_u16x2`

Each extracts the 32-bit packed subvector selected by a constant index
(0 = low, 1 = high) from a 64-bit packed vector. The index is
range-checked with `__enable_if__`, as for the element extract
intrinsics.

This is header-only: the shuffle is selected without backend changes, so
no new IR intrinsics or builtins are required.
DeltaFile
+250-0clang/test/CodeGen/RISCV/rvp-intrinsics.c
+54-0cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
+25-0clang/lib/Headers/riscv_packed_simd.h
+329-03 files

LLVM/project d22a72cllvm/lib/Transforms/Utils RelLookupTableConverter.cpp, llvm/test/Transforms/RelLookupTableConverter/X86 relative_lookup_table.ll

[RelLookupTableConverter] Reject volatile loads (#224414)

The pass converts absolute pointer lookup tables to relative lookup
tables and replaces the table load with a call to `@llvm.load.relative`.

However, `@llvm.load.relative` is an intrinsic with `memory(argmem:
read)` and cannot represent volatile access semantics. Replacing a
volatile load with `@llvm.load.relative` drops volatile side effects.
DeltaFile
+18-0llvm/test/Transforms/RelLookupTableConverter/X86/relative_lookup_table.ll
+1-1llvm/lib/Transforms/Utils/RelLookupTableConverter.cpp
+19-12 files

LLVM/project 9215947clang/lib/Headers riscv_packed_simd.h, clang/test/CodeGen/RISCV rvp-intrinsics.c

[Clang][RISCV] Add scalar saturating add/sub, absolute value and rev intrinsics (#224377)

First batch of the P extension `Scalar Intrinsics` group, covering the
operations that map onto a single existing LLVM IR intrinsic
(llvm.sadd.sat, llvm.uadd.sat, llvm.ssub.sat, llvm.usub.sat, llvm.abs,
llvm.bitreverse) that the backend already selects, so no codegen changes
are needed.
DeltaFile
+126-0clang/test/CodeGen/RISCV/rvp-intrinsics.c
+48-0cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
+18-0clang/lib/Headers/riscv_packed_simd.h
+192-03 files

LLVM/project 90a8d09llvm/lib/Transforms/IPO SampleProfileProbe.cpp, llvm/test/Transforms/SampleProfile pseudo-probe-call-vs-invoke-hash.ll pseudo-probe-cyclic-normal-dest.ll

[CSSPGO] [Pseudo-Probe] Avoid infinite loop on cyclic invoke destinations (#221630)

SampleProfileProber::getOriginalTerminator() walks invoke normal
destinations (and ignored single-successor blocks) so the CFG hash stays
stable across call-to-invoke conversion. That walk assumes the chain is
acyclic.

Valid IR can have a self-looping invoke (normal dest == the invoke
block). The walk then never returns, and opt -passes=pseudo-probe hangs.

Example Testcase:
```cpp
void f1();
void test() {
  try {
    for (;;)
      f1();
  } catch (...) {}
}

    [4 lines not shown]
DeltaFile
+159-0llvm/test/Transforms/SampleProfile/pseudo-probe-cyclic-normal-dest.ll
+99-0llvm/test/Transforms/SampleProfile/pseudo-probe-call-vs-invoke-hash.ll
+67-9llvm/lib/Transforms/IPO/SampleProfileProbe.cpp
+325-93 files

LLVM/project 9732113flang/lib/Optimizer/Builder IntrinsicCall.cpp, flang/test/Fir box-elesize-canonicalize.fir

Merge branch 'main' into users/vitalybuka/spr/nfcthinltobitcodewriter-add-test-for-cfifunctions-metadata-hotness-encoding-2
DeltaFile
+234-28llvm/test/CodeGen/AMDGPU/lower-noalias-kernargs.ll
+53-50llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
+89-0flang/test/Lower/Intrinsics/transfer-rec-tail-pad.f90
+72-0flang/test/Fir/CUDA/cuda-constructor-2.f90
+56-9flang/lib/Optimizer/Builder/IntrinsicCall.cpp
+63-0flang/test/Fir/box-elesize-canonicalize.fir
+567-8738 files not shown
+988-27844 files

LLVM/project c36b84cllvm/lib/Target/AMDGPU AMDGPULowerKernelArguments.cpp, llvm/test/CodeGen/AMDGPU lower-noalias-kernargs.ll

[AMDGPU] Fix noalias metadata for calls that capture a pointer earlier (#219887)

A call could get `!noalias` against a kernel noalias argument even when
that argument was captured into a global earlier and the call can reach
it that way

Only calls that touch just their own argument pointees are actually safe
to mark this way
DeltaFile
+234-28llvm/test/CodeGen/AMDGPU/lower-noalias-kernargs.ll
+53-50llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
+287-782 files

LLVM/project 0465907mlir/lib/Dialect/XeGPU/Transforms XeGPUSgToLaneDistribute.cpp, mlir/test/Dialect/XeGPU sg-to-lane-distribute-unit.mlir

[mlir][xegpu] Fix lane-local classification for packed-lane-data reductions (#223077)

isReductionLaneLocal decided whether a subgroup vector.multi_reduction
reduces within a lane by comparing the result vector type against its
distributed type. This assumes the lane_layout along the non-reduction
dim is always larger than 1, which is not always true.

This PR fixes it by checking the source's lane_layout along the
reduction dimension is 1.

assisted-by-claude

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply at anthropic.com>
DeltaFile
+22-0mlir/test/Dialect/XeGPU/sg-to-lane-distribute-unit.mlir
+13-8mlir/lib/Dialect/XeGPU/Transforms/XeGPUSgToLaneDistribute.cpp
+35-82 files

LLVM/project 09046d9libc/test/src/mathvec sinf_test.cpp CMakeLists.txt

[libc] Fix sinf unit test failures (#224475)

https://github.com/llvm/llvm-project/pull/224339 suppressed the tests
but the executable still runs. This change further suppressed the
executable so lit didn't discover and run it.

Bot kept failing on the libc test:
https://lab.llvm.org/buildbot/#/builders/10/builds/36051

tested locally:
>Total Discovered Tests: 817
  Passed: 817 (100.00%)
DeltaFile
+22-19libc/test/src/mathvec/CMakeLists.txt
+0-5libc/test/src/mathvec/sinf_test.cpp
+22-242 files

LLVM/project 1b1e9d1llvm/lib/Object GOFFObjectFile.cpp

Recommit [GOFFObjectFile] replace snprintf with formatv (#224435) (#224489)

Recommit [GOFFObjectFile] replace snprintf with formatv (#224435)
DeltaFile
+2-3llvm/lib/Object/GOFFObjectFile.cpp
+2-31 files

LLVM/project 5fa7f81flang/docs ReleaseNotes.md, flang/lib/Optimizer/Builder IntrinsicCall.cpp

[flang] Fix RecordType sizes, TRANSFER lowering, and BIND(C) ABI on SystemZ/PPC64le (#220377)

### Summary

`fir::getTypeSizeAndAlignment` had two bugs in its `RecordType` branch:

1. **Packed records**: `isPacked()` was ignored. LLVM packed structs
advance by `getTypeAllocSize` per field (not `getTypeStoreSize`), so
each component occupies `alignTo(storeSize, ABIalign)` bytes with no
inter-field or tail padding, and the struct ABI alignment is 1. For
example, a packed `{i32, f64}` on x86-64 is 12 bytes, not 16.

2. **Tail padding**: the unpacked field loop returned the raw summed
size without the final `alignTo(size, align)`. For example, `{i32, i8}`
(sum = 5 bytes, align = 4) was returned as 5 bytes instead of the
correct allocation size 8 bytes.

### Changes


    [30 lines not shown]
DeltaFile
+89-0flang/test/Lower/Intrinsics/transfer-rec-tail-pad.f90
+72-0flang/test/Fir/CUDA/cuda-constructor-2.f90
+56-9flang/lib/Optimizer/Builder/IntrinsicCall.cpp
+63-0flang/test/Fir/box-elesize-canonicalize.fir
+54-0flang/docs/ReleaseNotes.md
+44-0flang/test/Fir/CUDA/cuda-shared-offset.mlir
+378-98 files not shown
+551-1614 files