LLVM/project 6cfdba4 — libc/include stdio.yaml, libc/src/stdio putc_unlocked.h

[libc][stdio] Implement putc_unlocked (#243329)

Implements `putc_unlocked` for Linux full builds.

Adds the entrypoint, internal header, stdio.yaml declaration, CMake
targets,
entrypoint entries for aarch64/riscv/x86_64, and three unit tests.

Part of #242485
DeltaFile
+116-0libc/test/src/stdio/putc_unlocked_test.cpp
+40-0libc/src/stdio/generic/putc_unlocked.cpp
+26-0libc/src/stdio/putc_unlocked.h
+21-0libc/test/src/stdio/CMakeLists.txt
+14-0libc/src/stdio/generic/CMakeLists.txt
+7-0libc/include/stdio.yaml
+224-04 files not shown
+228-010 files

LLVM/project a27fd6e — llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 sve-fixed-length-functions.ll vector-interleave-store.ll

Revert "[AArch64] Decompose store(insert(insert(..)) to separate stores. (#23…"

This reverts commit 68de95d0d271e79b7a84cae534716745513c2b8e.
DeltaFile
+144-128llvm/test/CodeGen/AArch64/scalarized-store.ll
+146-122llvm/test/CodeGen/AArch64/vector-lrint.ll
+146-122llvm/test/CodeGen/AArch64/vector-llrint.ll
+73-69llvm/test/CodeGen/AArch64/vector-interleave-store.ll
+0-83llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+18-18llvm/test/CodeGen/AArch64/sve-fixed-length-functions.ll
+527-5425 files not shown
+559-56311 files

LLVM/project 95a6f32 — llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 store-vector-insert-combine-loop.ll scalarized-store.ll

Convert to test-only hang reproducer

Created using spr 2.0.0-beta.2
DeltaFile
+0-61llvm/test/CodeGen/AArch64/scalarized-store.ll
+34-0llvm/test/CodeGen/AArch64/store-vector-insert-combine-loop.ll
+1-7llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+35-683 files

LLVM/project 0523bab — llvm/lib/Transforms/IPO GlobalDCE.cpp, llvm/test/Transforms/GlobalDCE preserve-function-analyses.ll

GlobalDCE: Only clear the analyses of deleted functions (#243713)

GlobalDCE reported no preserved analyses whenever it deleted anything,
which clears every cached function analysis in the module. Refine this
to only discard analyses of erased functions.

callgrind instructions, opt -O3: kimwitu++ k.bc -0.07%, where the
cleared TargetLibraryInfo had to be computed again for each function.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+17-3llvm/lib/Transforms/IPO/GlobalDCE.cpp
+19-0llvm/test/Transforms/GlobalDCE/preserve-function-analyses.ll
+36-32 files

LLVM/project c4a316d — lldb/unittests/SBTestingSupport SBTestUtilities.cpp

[lldb][test] Fix DebuggerSupportsLLVMTarget always returning false (#243716)

SBStructuredData::GetStringValue returns the size needed to hold the
string, which includes the terminating NUL. The StringRef built from
that size never compared equal to the target name, so the helper
reported every target as unsupported.
DeltaFile
+2-2lldb/unittests/SBTestingSupport/SBTestUtilities.cpp
+2-21 files

LLVM/project d959de9 — mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp, mlir/test/Target/LLVMIR openmp-llvm.mlir openmp-barrier-cancel.mlir

[Flang][OpenMP] Fix missing implicit barrier for empty sections constructs. (#241735)

This patch fixes a missing implicit barrier at the end of an empty
`!$omp sections` construct, where threads could previously proceed
without synchronization, violating OpenMP semantics.
The fix ensures that `convertOmpSections` emits the required implicit
barrier when `sectionCBs` is empty, unless the `nowait` clause is
specified.
DeltaFile
+22-0mlir/test/Target/LLVMIR/openmp-barrier-cancel.mlir
+15-0mlir/test/Target/LLVMIR/openmp-llvm.mlir
+10-4mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+47-43 files

LLVM/project 3c1e4b6 — clang/lib/CIR/Lowering CIRPasses.cpp, clang/test/CIR/CodeGenHIP cleanup-alloca-addrspace.hip

[CIR] Enable CallConvLowering for AMDGPU triples (#233822)

**Summary:**
- Map AMDGPU triples to the AMDGPU ABI target in the clang pipeline, so
`cir-call-conv-lowering` pass runs by default for AMDGPU device code.
- Add clang tests that check AMDGPU argument types, return types, C++
records and HIP kernel arguments against classic codegen.

Related to issue: https://github.com/llvm/llvm-project/issues/220471

Pre-requisite PRs: https://github.com/llvm/llvm-project/pull/240808
https://github.com/llvm/llvm-project/pull/241158

Assisted by: claude opus 5.5
DeltaFile
+380-0clang/test/CodeGen/AMDGPU/abi-classify-arg-types.c
+218-0clang/test/CodeGen/AMDGPU/abi-classify-return-types.c
+137-0clang/test/CodeGenHIP/amdgpu-kernel-args-abi.hip
+104-0clang/test/CodeGen/AMDGPU/abi-classify-cxx-records.cpp
+4-4clang/test/CIR/CodeGenHIP/cleanup-alloca-addrspace.hip
+3-2clang/lib/CIR/Lowering/CIRPasses.cpp
+846-61 files not shown
+848-87 files

LLVM/project 76698d1 — llvm/include/llvm/Transforms/IPO DeadArgumentElimination.h, llvm/lib/Transforms/IPO DeadArgumentElimination.cpp

DeadArgumentElimination: Only invalidate the analyses of changed functions (#243712)

DeadArgumentElimination reported no preserved analyses whenever it
changed anything, discarding all cached function analyses in the
module. Refine this to functions whose calls or argumenst are changed.

callgrind instructions, opt -O3: kimwitu++ k.bc -0.21%, sqlite3 -0.11%.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+27-4llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
+9-0llvm/include/llvm/Transforms/IPO/DeadArgumentElimination.h
+36-42 files

LLVM/project 23f3f6b — llvm/test/CodeGen/AMDGPU cross-block-use-is-not-abi-copy.ll expand-mov-b64-globaladdr.ll

[AMDGPU] Use SCC branches for uniform truncates to i1 (#241944)

A branch on a set low bit reaches isel as brcond (truncate x), either
from an IR trunc to i1 or from SimplifySetCC folding (and x, 1) != 0
into truncate x. The uniform truncate-to-i1 patterns already select to
S_CMP and produce SCC, but isCBranchSCC only accepted SETCC, so the
branch went through s_cselect, a lane mask and EXEC before branching on
VCC.

Also accept a one-use uniform truncate from i16, i32 or i64, the source
types the SCC-producing patterns in SIInstructions.td cover, so these
branches become s_bitcmp + s_cbranch_scc. Divergent truncates keep the
lane-mask path.

Assisted-by: Claude Opus 5.5
DeltaFile
+320-0llvm/test/CodeGen/AMDGPU/uniform-branch-truncate.ll
+18-30llvm/test/CodeGen/AMDGPU/trap-abis.ll
+9-27llvm/test/CodeGen/AMDGPU/mad-combine.ll
+2-8llvm/test/CodeGen/AMDGPU/true16-v2s-copy-subreg-phi.ll
+2-7llvm/test/CodeGen/AMDGPU/expand-mov-b64-globaladdr.ll
+2-6llvm/test/CodeGen/AMDGPU/cross-block-use-is-not-abi-copy.ll
+353-786 files not shown
+363-9512 files

LLVM/project 4e1cea4 — llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 scalarized-store.ll

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+61-0llvm/test/CodeGen/AArch64/scalarized-store.ll
+7-1llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+68-12 files

LLVM/project 6e71962 — llvm/lib/Transforms/IPO AlwaysInliner.cpp

AlwaysInliner: Preserve the function analysis manager proxy (#243711)

AlwaysInliner already updates the analyses of the functions it inlines
or deletes, but did not preserve FunctionAnalysisManagerModuleProxy,
which ends up clearing every cached function analysis in the module.

This doesn't make much difference in CTMark since few of the programs
use alwaysinline, with the exception of kimwitu++ k.bc (-0.50%).
always_inline is well overused in GPU code, so a sample of 441 ROCm
bitcode files show a -0.08% geomean improvement.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+3-1llvm/lib/Transforms/IPO/AlwaysInliner.cpp
+3-11 files

LLVM/project be0a882 — llvm/include/llvm/Analysis IR2Vec.h, llvm/test/Analysis/IR2Vec if-else.ll

[IR2Vec] Use the Label entity for branch targets (#243515)

The seed vocabulary has a trained Label vector, but branch targets used
Variable
DeltaFile
+28-27llvm/test/tools/llvm-ir2vec/entities.ll
+12-0llvm/test/tools/llvm-ir2vec/triplets.ll
+11-0llvm/test/Analysis/IR2Vec/if-else.ll
+8-2llvm/unittests/Analysis/IR2VecTest.cpp
+3-2llvm/include/llvm/Analysis/IR2Vec.h
+2-1llvm/test/Analysis/IR2Vec/Inputs/dummy_3D_nonzero_type_vocab.json
+64-327 files not shown
+72-3213 files

LLVM/project 7fc8ab8 — llvm/include/llvm/CodeGen MIR2Vec.h, llvm/lib/CodeGen MIR2Vec.cpp

[MIR2Vec] Fix the common operand index for MO_LaneMask (#243374)

CommonOperandNames has no MO_DbgInstrRef entry, so lookups for later
types used the wrong slot

Map each operand type to its vocabulary entry explicitly, so the index
no longer depends on enum order

Operand types without an entry get a zero embedding
DeltaFile
+33-19llvm/lib/CodeGen/MIR2Vec.cpp
+37-15llvm/include/llvm/CodeGen/MIR2Vec.h
+19-0llvm/unittests/CodeGen/MIR2VecTest.cpp
+19-0llvm/test/CodeGen/MIR2Vec/mir2vec-basic-symbolic.mir
+4-2llvm/test/CodeGen/MIR2Vec/Inputs/mir2vec_dummy_3D_vocab.json
+112-365 files

LLVM/project 8a64ed7 — clang/test/CodeGenCUDA device-dynamic-cast-void.cu, clang/test/CodeGenHipStdPar unsupported-exceptions.cpp

AMDGPU: Fix tests using legacy triples (#243636)
DeltaFile
+10-10clang/test/CodeGenHipStdPar/unsupported-exceptions.cpp
+3-3llvm/test/CodeGen/AMDGPU/amdgpu-uniform-intrinsic-combine-cmp.ll
+2-2llvm/test/MC/AMDGPU/buffer-op-lds-operand.s
+2-2clang/test/CodeGenOpenCL/amdgpu-debug-info-variable-expression.cl
+1-1llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizer-combiner-sbfx-knownbits.mir
+1-1clang/test/CodeGenCUDA/device-dynamic-cast-void.cu
+19-191 files not shown
+20-207 files

LLVM/project 9511f5a — llvm/lib/Transforms/IPO GlobalDCE.cpp

Simplify comment
DeltaFile
+1-3llvm/lib/Transforms/IPO/GlobalDCE.cpp
+1-31 files

LLVM/project a1d3516 — llvm/lib/Transforms/IPO GlobalDCE.cpp, llvm/test/Transforms/GlobalDCE preserve-function-analyses.ll

GlobalDCE: Only clear the analyses of deleted functions

GlobalDCE reported no preserved analyses whenever it deleted anything,
which clears every cached function analysis in the module. Refine this
to only discard analyses of erased functions.

callgrind instructions, opt -O3: kimwitu++ k.bc -0.07%, where the cleared
TargetLibraryInfo had to be computed again for each function.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+19-3llvm/lib/Transforms/IPO/GlobalDCE.cpp
+19-0llvm/test/Transforms/GlobalDCE/preserve-function-analyses.ll
+38-32 files

LLVM/project e93fb57 — libc/src/__support/FPUtil PolyEval.h polyeval.h, libc/src/__support/math tanhf16.h tanhf.h

[libc][math][NFC] Rename PolyEval.h to polyeval.h. (#243339)

Rename src/__support/FPUtil/PolyEval.h to polyeval.h to match lowercase
snake_case header naming, and update includes, CMake, and Bazel rules.
DeltaFile
+0-89libc/src/__support/FPUtil/PolyEval.h
+89-0libc/src/__support/FPUtil/polyeval.h
+1-1utils/bazel/llvm-project-overlay/libc/src/__support/FPUtil/BUILD.bazel
+1-1libc/src/__support/math/tanhf16.h
+1-1libc/src/__support/math/tanhf.h
+1-1libc/src/__support/math/tanf_double_eval.h
+93-9360 files not shown
+153-15366 files

LLVM/project 591f3d1 — libc/src/__support/FPUtil CMakeLists.txt polyeval.h, libc/test/src/__support/FPUtil CMakeLists.txt polyeval_test.cpp

[libc][math] Expand polyeval.h with array, loop, and Estrin evaluation. (#243523)

Add array-based, non-unrolled loop, and right-heavy Estrin polynomial
evaluation helpers to `fputil`:
- Add array overloads with optional `OFFSET` template parameter for
`polyeval` and `altpolyeval`, using `sub_multiply` for `altpolyeval` and
supporting both value (`<= sizeof(double)`) and const-ref (`>
sizeof(double)`) coefficient types.
- Add `loop_polyeval` and `loop_altpolyeval` with `LIBC_LOOP_NOUNROLL`
for code-size-sensitive evaluations.
- Add `estrin_polyeval` (array and variadic overloads) using a
precomputed dyadic power table and a minimum-depth right-heavy binary
tree.
- Add unit tests in `polyeval_test.cpp` covering `float`, `double`,
`DoubleDouble`, `DyadicFloat<128>`, and `Frac128` across rounding modes
and evaluation-order sensitivity.
DeltaFile
+518-0libc/test/src/__support/FPUtil/polyeval_test.cpp
+354-45libc/src/__support/FPUtil/polyeval.h
+14-0libc/test/src/__support/FPUtil/CMakeLists.txt
+13-0utils/bazel/llvm-project-overlay/libc/test/src/__support/FPUtil/BUILD.bazel
+4-0libc/src/__support/FPUtil/CMakeLists.txt
+2-0utils/bazel/llvm-project-overlay/libc/src/__support/FPUtil/BUILD.bazel
+905-456 files

LLVM/project 4357c46 — libc/src/__support/math lgammaf.h asinpi.h

[libc][math] Use multiply_sub and sub_multiply across math functions. (#243290)

Replace `multiply_add(a, b, -c)`, `multiply_add(-b, c, a)`, and
`multiply_add(b, -c, a)` with `multiply_sub` and `sub_multiply`.
DeltaFile
+9-10libc/src/__support/math/acos.h
+7-8libc/src/__support/math/asin.h
+7-7libc/src/__support/math/sincosf.h
+7-7libc/src/__support/math/sincos_eval.h
+6-7libc/src/__support/math/asinpi.h
+6-6libc/src/__support/math/lgammaf.h
+42-4587 files not shown
+201-20493 files

LLVM/project 2a781a9 — libc/src/__support/FPUtil dyadic_float.h double_double.h, libc/test/src/__support/FPUtil CMakeLists.txt multiply_add_test.cpp

[libc][math] Add multiply_sub and sub_multiply to multiply_add.h. (#243269)

- Add `fputil::multiply_sub` `(x * y - z)` and `fputil::sub_multiply`
`(x - y * z)` alongside `fputil::multiply_add` `(x * y + z)`.
- Add `NumberPair<T>` `add/sub` overloads in `double_double.h`, and
matching `multiply_sub` and `sub_multiply` overloads for `DoubleDouble`
and `DyadicFloat`.
- Specialization to use `fmadd`/`fmsub` instructions when available.
DeltaFile
+157-41libc/src/__support/FPUtil/multiply_add.h
+169-0libc/test/src/__support/FPUtil/multiply_add_test.cpp
+50-0libc/src/__support/FPUtil/double_double.h
+14-0libc/src/__support/FPUtil/dyadic_float.h
+13-0libc/test/src/__support/FPUtil/CMakeLists.txt
+12-0utils/bazel/llvm-project-overlay/libc/test/src/__support/FPUtil/BUILD.bazel
+415-412 files not shown
+421-418 files

LLVM/project 442845d — llvm/include/llvm/Transforms/IPO DeadArgumentElimination.h, llvm/lib/Transforms/IPO DeadArgumentElimination.cpp

DeadArgumentElimination: Only invalidate the analyses of changed functions

DeadArgumentElimination reported no preserved analyses whenever it
changed anything, discarding all cached function analyses in the
module. Refine this to functions whose calls or argumenst are changed.

callgrind instructions, opt -O3: kimwitu++ k.bc -0.21%, sqlite3 -0.11%.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+27-4llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
+9-0llvm/include/llvm/Transforms/IPO/DeadArgumentElimination.h
+36-42 files

LLVM/project 733f8f9 — llvm/lib/Transforms/IPO AlwaysInliner.cpp

AlwaysInliner: Preserve the function analysis manager proxy

AlwaysInliner already updates the analyses of the functions it inlines
or deletes, but did not preserve FunctionAnalysisManagerModuleProxy,
which ends up clearing every cached function analysis in the module.

This doesn't make much difference in CTMark since few of the programs
use alwaysinline, with the exception of kimwitu++ k.bc (-0.50%).
always_inline is well overused in GPU code, so a sample of 441 ROCm
bitcode files show a -0.08% geomean improvement.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+3-1llvm/lib/Transforms/IPO/AlwaysInliner.cpp
+3-11 files

LLVM/project 7356870 — compiler-rt/cmake/Modules AddCompilerRT.cmake, compiler-rt/lib/asan CMakeLists.txt

[compiler-rt] Fill Windows runtime version metadata (#243544)

Windows compiler-rt DLLs lack descriptions, copyright information and
original filenames, and their numeric ProductVersion is zero.

Fill the descriptive fields and identify ASan as "AddressSanitizer
runtime". Record the actual DLL filename and set numeric ProductVersion
to the same numeric version as FileVersion.
DeltaFile
+70-0compiler-rt/test/asan/TestCases/Windows/version-info.cpp
+12-3compiler-rt/cmake/Modules/AddCompilerRT.cmake
+1-0compiler-rt/resources/windows_version_resource.rc
+1-0compiler-rt/lib/asan/CMakeLists.txt
+84-34 files

LLVM/project 22b86b9 — lldb/include/lldb/Target Target.h, lldb/source/Core ModuleList.cpp

[lldb] Run module scripts' --at-initial-stop hooks at the current stop (#243394)

A module's dSYM script often adds a stop hook from
`__lldb_module_added_to_target`, to do something once the process can be
read, and adds it with `--at-initial-stop` so it also runs when LLDB
first gains control of the process. That covers a script that LLDB loads
before that stop, like when it attaches or loads a core file. But when
the module joins a target whose process already stopped, for example
with `target modules add`, or by turning on
`target.load-script-from-symbol-file` as LLDB's warning suggests, that
stop already ran its stop hooks, so the stop hook waits for the process
to stop again. To avoid that, the script has to check whether there's a
stopped process and do the work itself.

This patch solves that by collecting the stop hooks, and the hooks from
`target hook add`, that a module's `__lldb_module_added_to_target` adds.
When it returns, if the process already stopped, we run the ones added
with `--at-initial-stop` right away. We don't resume the process,
whatever they vote, since resuming it is up to the user. If the process

    [13 lines not shown]
DeltaFile
+89-19lldb/source/Target/Target.cpp
+65-0lldb/include/lldb/Target/Target.h
+64-0lldb/test/API/macosx/dsym_modules/TestdSYMModuleHooks.py
+35-0lldb/test/API/macosx/dsym_modules/initial_stop_hook.py
+10-3lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+10-2lldb/source/Core/ModuleList.cpp
+273-241 files not shown
+280-277 files

LLVM/project c84d972 — clang/test/CodeGenCUDA device-dynamic-cast-void.cu, clang/test/CodeGenHipStdPar unsupported-exceptions.cpp

AMDGPU: Fix tests using legacy triples
DeltaFile
+10-10clang/test/CodeGenHipStdPar/unsupported-exceptions.cpp
+3-3llvm/test/CodeGen/AMDGPU/amdgpu-uniform-intrinsic-combine-cmp.ll
+2-2llvm/test/MC/AMDGPU/buffer-op-lds-operand.s
+2-2clang/test/CodeGenOpenCL/amdgpu-debug-info-variable-expression.cl
+1-1llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizer-combiner-sbfx-knownbits.mir
+1-1clang/test/CodeGenCUDA/device-dynamic-cast-void.cu
+19-191 files not shown
+20-207 files

LLVM/project d6905d3 — llvm/include/llvm/CodeGen LiveIntervals.h, llvm/lib/CodeGen LiveIntervals.cpp RegisterCoalescer.cpp

RegisterCoalescer: Only shrink subranges in ShrinkMask after a join (#243348)

When joinCopy needs to shrink the main range, shrinkToUses was called
on the whole interval. This also shrinks every subrange. If the join
did not set ShrinkMainRange, no subrange is ever shrunk, so the join
is already trusted to leave only the subranges in ShrinkMask needing
it. The other reasons for shrinking the main range (pruned main range
values, uses that now read only undef lanes) do not change any
subrange. Pass ShrinkMask to shrinkToUses to restrict which subranges
it shrinks, unless the source interval was in ToBeUpdated.

llc instructions:u, AMDGPU sample: -0.11%

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+6-3llvm/lib/CodeGen/RegisterCoalescer.cpp
+5-2llvm/lib/CodeGen/LiveIntervals.cpp
+4-2llvm/include/llvm/CodeGen/LiveIntervals.h
+15-73 files

LLVM/project 2944573 — llvm/lib/Target/RISCV RISCVRegisterInfo.td, llvm/test/TableGen AsmMatcherCoerceFromRegClass.td

[nspr] initial commit
DeltaFile
+105-15llvm/test/TableGen/AsmMatcherCoerceFromRegClass.td
+6-0llvm/lib/Target/RISCV/RISCVRegisterInfo.td
+111-152 files

LLVM/project 7da2a30 — llvm/include/llvm/Target Target.td, llvm/test/TableGen RegClassByHwMode.td AsmMatcherCoerceFromRegClass.td

[nspr] initial commit
DeltaFile
+46-16llvm/utils/TableGen/AsmMatcherEmitter.cpp
+37-0llvm/test/TableGen/AsmMatcherCoerceFromRegClass.td
+26-2llvm/test/TableGen/RegClassByHwMode.td
+6-1llvm/include/llvm/Target/Target.td
+115-194 files

LLVM/project 5714f0e — llvm/include/llvm/Target Target.td

[nspr] update
DeltaFile
+4-5llvm/include/llvm/Target/Target.td
+4-51 files

LLVM/project b0af5ca — llvm/test/TableGen AsmMatcherCoerceFromRegClass.td, llvm/utils/TableGen AsmMatcherEmitter.cpp

[nspr] initial commit
DeltaFile
+22-4llvm/utils/TableGen/AsmMatcherEmitter.cpp
+10-0llvm/test/TableGen/AsmMatcherCoerceFromRegClass.td
+32-42 files