LLVM/project 6605fc6 — lldb/include/lldb/Symbol Symtab.h, lldb/source/Symbol Symtab.cpp

[lldb] Add a new UInt32 hex to DataFileCache symtab filenames (#247855)

Create a string of all Language plugins in the current lldb for
creating/loading a DataFileCache symtab file. If a user is running two
different lldb's on the same computer, one with additional Language
plugins so they may have additional demangling schemes, and the user has
symtab file creation enabled, the DataFileCache will have symtab files
for each of the different lldb's in use.

This prevents an lldb with fewer demanglers from writing its symtab to
disk, and then an lldb with additional demanglers using the symtab
as-is, and not having a chance to demangle additional names that it is
able to handle.

I outlined the two approaches that I could take in this Discourse,
https://discourse.llvm.org/t/datafilecache-symtab-issue-with-lldbs-that-have-different-language-plugins-demanglers/93018
and in the end I decided that the new 32-bit hex field in the filename
was the simplest and best choice.

assisted-by: claude
rdar://193942473
DeltaFile
+83-0lldb/test/API/functionalities/module_cache/language_plugins/TestModuleCacheLanguagePlugins.py
+75-0lldb/unittests/Symbol/SymtabTest.cpp
+22-1lldb/source/Symbol/Symtab.cpp
+7-1lldb/include/lldb/Symbol/Symtab.h
+3-0lldb/test/API/functionalities/module_cache/language_plugins/Makefile
+1-0lldb/test/API/functionalities/module_cache/language_plugins/main.c
+191-26 files

LLVM/project 28f2c3d — llvm/lib/Target/RISCV/MCTargetDesc RISCVAsmBackend.cpp, llvm/test/MC/RISCV compressed-relocations.s

[RISCV][MC] Fix crash relaxing compressed branches to symbol + offset (#247917)

The assembler accepts `symbol + offset` as the target of `c.j`, `c.jal`,
`c.beqz` and `c.bnez`. When such an instruction has to be relaxed,
`relaxInstruction()` expanded it with `RISCVRVC::uncompress()`, but the
decompression patterns only accept a constant or a bare symbol. The
expansion failed, which hit the "Can't uncompress instruction"
assertion, or "Unsupported instruction" when assertions were disabled.

Build the uncompressed BEQ/BNE/JAL directly instead, as is already done
for JAL and C_LI.

Fixes #247828

This change was written with the help of an AI tool (Claude Code); I
reviewed and tested it.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+24-0llvm/test/MC/RISCV/compressed-relocations.s
+14-8llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
+38-82 files

LLVM/project 472641a — libcxx/include/__memory allocator.h shared_ptr.h

[libc++] Fix CFI unrelated-cast failures in allocator and shared_ptr

While working on the CFI CI (https://github.com/llvm/llvm-project/issues/245696), running the tests with CFI found two new `cfi-unrelated-cast` failures in libc++. They were caused by casting newly allocated memory to a typed pointer before an object is constructed in it. We add `_LIBCPP_NO_SANITIZE("cfi-unrelated-cast")` to `__operator_new_wrapper` in `allocator.h` since it cannot avoid the cast. The other case, `__allocate_shared_unbounded_array`, was casting uninitialized storage to `_ControlBlock*` before `_ControlBlock` was constructed, so we change it to use placement new on `void*` directly like `__allocate_shared_impl` does.

Assisted-by: Gemini
DeltaFile
+2-2libcxx/include/__memory/shared_ptr.h
+1-1libcxx/include/__memory/allocator.h
+3-32 files

LLVM/project 2514c67 — llvm/lib/CodeGen/SelectionDAG ScheduleDAGSDNodes.cpp, llvm/test/CodeGen/AMDGPU sdag-sched-cloned-scc-def-value-use.ll

SelectionDAG: Fix marking used physreg defs dead on cloned nodes

94a90a694f87 marked an expensive-to-copy physreg def dead on a
scheduler-cloned node if no successor edge was associated with the
register. An edge is only associated with the register if the user
reads it through a glued CopyToReg. If the physreg result is also used
as an ordinary value operand, InstrEmitter emits a copy from the
physreg to a virtual register after each clone of the node.

This left a read of the register after its def was marked dead:

  S_CMP_EQ_U32 %16, %17, implicit-def dead $scc
  %18:sreg_32 = COPY $scc

Don't mark the def dead if InstrEmitter emitted a copy from the
physreg.

Assisted-by: Claude
DeltaFile
+42-0llvm/test/CodeGen/AMDGPU/sdag-sched-cloned-scc-def-value-use.ll
+21-12llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
+63-122 files

LLVM/project edd2218 — clang/docs ReleaseNotes.md, clang/lib/AST VTableBuilder.cpp

[clang][MS ABI] Fix non-virtual part of vtordispex this adjustment (#248414)

A vtordispex thunk locates the virtual base that contains the final
overrider
through the vbtable of the most derived class and then adds a static
offset.
`CalculateVtordispAdjustment` computed that offset relative to the
overrider's
own class (`Overrider.Offset`) instead of relative to that virtual base
(`Overrider.VirtualBase`). The two only agree when the class sits at
offset
zero inside the virtual base. Otherwise, e.g. when a base with a vfptr
is laid
out before it, the overrider is called with a `this` that is too low by
exactly that offset. In the project where I ran into this, the callee
then
read its pimpl pointer from the wrong place and crashed.

The fix computes the static part relative to `Overrider.VirtualBase`,

    [33 lines not shown]
DeltaFile
+37-0clang/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance-vtordisps.cpp
+6-1clang/lib/AST/VTableBuilder.cpp
+6-0clang/docs/ReleaseNotes.md
+49-13 files

LLVM/project 53dad12 — llvm/include/llvm/Transforms/IPO Attributor.h

Attributor: Only store AAKindSet IDs of kinds without a mask bit (#248611)

AAKindSet::contains only searches the ID list for kinds that have no
bit in the mask, but the list held the IDs of every kind in the
set. Store only the ones without a bit, so AMDGPUAttributor searches 8
IDs instead of 18.

amdgpu-attributor pass, callgrind: -0.08% on a full-LTO rocPRIM module.

Assisted-by: Claude
DeltaFile
+17-2llvm/include/llvm/Transforms/IPO/Attributor.h
+17-21 files

LLVM/project 368e441 — llvm/test/CodeGen/SPIRV loop-unroll-nonshader.ll llc-pipeline.ll, llvm/test/CodeGen/SPIRV/instructions undef-composite.ll

Reland "[SPIR-V] Default to NewPM" (#239489) (#248672)

This reapplies #239489, reverted in #245119 because NewPM runs the
machine verifier and exposed latent SPIR-V bugs. These are fixed by
#245209 and #245610

The first reland #246273 was reverted in #246562 because of failures in
expensive checks builds. These are fixed by #247244, #247249 and #247357
DeltaFile
+0-18llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp
+4-4llvm/test/CodeGen/SPIRV/llc-pipeline.ll
+0-2llvm/test/CodeGen/SPIRV/structurizer/do-continue.ll
+0-2llvm/test/CodeGen/SPIRV/structurizer/cf.while.continue.ll
+0-2llvm/test/CodeGen/SPIRV/loop-unroll-nonshader.ll
+0-2llvm/test/CodeGen/SPIRV/instructions/undef-composite.ll
+4-308 files not shown
+6-3814 files

LLVM/project e206b77 — utils/bazel/llvm-project-overlay/llvm BUILD.bazel

[Bazel] Fixes 09e276a (#248685)

This fixes 09e276a01f6ef4b29ee061534441e36e015690c3 (#214096).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=09e276a01f6ef4b29ee061534441e36e015690c3

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+4-0utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+4-01 files

LLVM/project d389c0b — llvm/lib/Transforms/IPO Attributor.cpp

Attributor: Use the function information already looked up when seeding (#248645)

identifyDefaultAbstractAttributes looked up the function information at
the start, and again for its opcode map. Use the one it already has.

Assisted-by: Claude
DeltaFile
+3-4llvm/lib/Transforms/IPO/Attributor.cpp
+3-41 files

LLVM/project 762909c — offload/include/Shared Debug.h, offload/test/offloading info_category.c

[Offload] Use DataTransfer as the LIBOMPTARGET_DEBUG name of data transfer INFO

Rename the LIBOMPTARGET_DEBUG category of OMP_INFOTYPE_DATA_TRANSFER
messages from "DataCopy" back to "DataTransfer", as before this change.
LIBOMPTARGET_DEBUG=DataTransfer now selects both the INFO data transfer
messages and the ODBG(ODT_DataTransfer) debug messages. The debug
messages are still compiled out without OMPTARGET_DEBUG, so release
builds print only the INFO messages.

Add checks for both build modes to info_category.c.

Co-authored-by: Copilot <223556219+Copilot at users.noreply.github.com>
DeltaFile
+14-0offload/test/offloading/info_category.c
+1-1offload/include/Shared/Debug.h
+15-12 files

LLVM/project f870f78 — flang/lib/Optimizer/Transforms StackArrays.cpp, flang/test/Transforms stack-arrays-omp-loop.fir

[flang] Treat omp.loop_nest bodies as loops in StackArrays (#248026)

The body of an `omp.loop_nest` runs once per iteration, but it is
neither a control flow graph loop nor a `LoopLikeOpInterface`, so
`isInStackGrowingLoop` did not treat it as a loop. A stack allocation
sized in the body, like a character temporary in a `parallel do`, got no
stack save/restore. The stack grew with every iteration until it
overflowed.

Treat `omp.loop_nest` and `omp.canonical_loop` bodies as loop bodies.

Fixes #245263.
DeltaFile
+61-0flang/test/Transforms/stack-arrays-omp-loop.fir
+4-0flang/lib/Optimizer/Transforms/StackArrays.cpp
+65-02 files

LLVM/project c3ffeca — clang/docs ReleaseNotes.md, clang/lib/AST ItaniumMangle.cpp

[Clang][CUDA][HIP] Fix Itanium mangler assertion on kernels in template arguments (#248543)

The Itanium mangler made a `GlobalDecl` from a `NamedDecl` when it
mangled a declaration that is referenced from a template argument or an
expression. That c'tor hits an assertion for a CUDA or HIP kernel ("Use
other ctor with GPU kernels!"), because the `GlobalDecl` of a kernel
must tell whether it refers to the kernel or to its host stub.

For example, clang with assertions crashed on this host code:

```
__global__ void kern();
template <auto F> int prepare() { return 0; }
int use() { return prepare<kern>(); }
```

There are three places that needs to be fixed:
`mangleValueInTemplateArg` (the example above), the `DeclRefExpr` case
of `mangleExpression` (a kernel named in an expression in a function

    [9 lines not shown]
DeltaFile
+40-0clang/test/CodeGenCUDA/kernel-template-arg-mangling.cu
+14-3clang/lib/AST/ItaniumMangle.cpp
+3-0clang/docs/ReleaseNotes.md
+57-33 files

LLVM/project 99b45ff — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 pr244615.ll pr246044.ll

[X86] LowerBUILD_VECTOR - for [src, 0, .., 0] vectors ensure we freeze the i8/i16 source before zero extending (#248666)

Protect against cases where the original source element is undef/poison, causing propagation etc.

Fixes #244615
DeltaFile
+7-7llvm/test/CodeGen/X86/pr45563-2.ll
+4-2llvm/test/CodeGen/X86/pr246044.ll
+3-1llvm/lib/Target/X86/X86ISelLowering.cpp
+2-0llvm/test/CodeGen/X86/pr244615.ll
+16-104 files

LLVM/project 47bfaf8 — libcxx/include any, libcxx/include/__memory relocate_at.h

[libc++] Introduce relocation primitives and use them in std::any

We can use relocation primitives in std::any to optimize trivially
relocatable objects. This turns moves, move assignments and swaps of
std::any holding trivially relocatable types like std::string into a
memcpy instead of a move construction followed by a destruction.

Relocation algorithms usable in containers will follow.
DeltaFile
+87-0libcxx/include/__memory/relocate_at.h
+42-1libcxx/test/std/utilities/any/any.class/any.modifiers/swap.pass.cpp
+34-1libcxx/test/std/utilities/any/any.class/any.assign/move.pass.cpp
+34-0libcxx/include/__type_traits/is_nothrow_relocatable.h
+20-1libcxx/test/std/utilities/any/any.class/any.cons/move.pass.cpp
+4-2libcxx/include/any
+221-52 files not shown
+228-58 files

LLVM/project 26d6732 — libcxx/include/__vector vector.h, libcxx/test/std/containers/sequences insert_range_sequence_containers.h

[libc++] Fix vector::insert_range with a sized input range when not reallocating (#229763)

`vector::insert_range` inserts the new elements in the wrong place when
all of these hold:

- the range is sized but only an input range (e.g. `views::counted` over
a single-pass iterator),
- the vector has enough spare capacity, so it does not reallocate, and
- fewer elements follow the insertion point than are being inserted.

The new elements are left at the end of the vector instead of at the
insertion point. This patch fixes that.

Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>
Co-authored-by: A. Jiang <de34 at live.cn>
(cherry picked from commit 8fc265422f1502a198457fe34e7474da5e8f03fc)
DeltaFile
+17-1libcxx/test/std/containers/sequences/insert_range_sequence_containers.h
+1-1libcxx/test/std/containers/sequences/vector/vector.modifiers/insert_range.pass.cpp
+1-1libcxx/test/std/containers/sequences/vector.bool/insert_range.pass.cpp
+1-1libcxx/include/__vector/vector.h
+1-0libcxx/test/std/strings/basic.string/string.modifiers/string_insert/insert_range.pass.cpp
+21-45 files

LLVM/project 735ebfe — libc/src/__support/math acoshf.h, libc/test/src/math/smoke acoshf_test.cpp

[libc][math] Fix acoshf raising FE_INVALID on quiet NaN. (#248633)

Check x <= 1.0f using integer bits instead of an FP comparison before
NaN handling. On RISC-V, <= lowers to signaling fle.s, raising
FE_INVALID on quiet NaN (+qNaN and -qNaN).

Add the reproducing steps to the smoke test.

```
cmake -B build -S runtimes -G Ninja \
  -DLLVM_ENABLE_RUNTIMES=libc \
  -DCMAKE_C_COMPILER=clang \
  -DCMAKE_CXX_COMPILER=clang++ \
  -DCMAKE_C_COMPILER_TARGET=riscv64-linux-gnu \
  -DCMAKE_CXX_COMPILER_TARGET=riscv64-linux-gnu \
  -DCMAKE_BUILD_TYPE=Release \
  -DLIBC_TARGET_TRIPLE=riscv64-linux-gnu \
  -DCMAKE_CROSSCOMPILING_EMULATOR=qemu-riscv64


    [2 lines not shown]
DeltaFile
+5-3libc/src/__support/math/acoshf.h
+6-1libc/test/src/math/smoke/acoshf_test.cpp
+11-42 files

LLVM/project bea01e6 — llvm/test/CodeGen/AMDGPU fence-barrier-latency.ll lower-intrinsics-mcast-full-mask.ll

[AMDGPU] Flush LDS before async strore from LDS

Fixes: ROCM-33926
DeltaFile
+686-297llvm/test/CodeGen/AMDGPU/asyncmark-stage.ll
+369-187llvm/test/CodeGen/AMDGPU/asyncmark-gfx12plus.ll
+251-91llvm/test/CodeGen/AMDGPU/lds-dma-war-async.ll
+236-29llvm/test/CodeGen/AMDGPU/llvm.amdgcn.tensor.load.store.ll
+218-2llvm/test/CodeGen/AMDGPU/lower-intrinsics-mcast-full-mask.ll
+113-84llvm/test/CodeGen/AMDGPU/fence-barrier-latency.ll
+1,873-6909 files not shown
+2,531-74715 files

LLVM/project 39b92a4 — lldb/source/Plugins/Process/OpenBSD NativeProcessOpenBSD.cpp

[lldb][OpenBSD] Add blank lines to NativeProcessOpenBSD for readability (NFC) (#248681)

Separate the steps within the functions with blank lines, as was
asked for in the review of the fork and memory region support.
DeltaFile
+13-0lldb/source/Plugins/Process/OpenBSD/NativeProcessOpenBSD.cpp
+13-01 files

LLVM/project 6e2ba83 — llvm/lib/Target/PISA PISAInstrInfo.cpp, llvm/lib/Target/PISA/MCTargetDesc PISATargetStreamer.cpp PISATargetStreamer.h

Apply clang-format
DeltaFile
+3-3llvm/lib/Target/PISA/PISAInstrInfo.cpp
+2-3llvm/lib/Target/PISA/MCTargetDesc/PISATargetStreamer.h
+1-1llvm/lib/Target/PISA/MCTargetDesc/PISATargetStreamer.cpp
+6-73 files

LLVM/project 080ee0b — libcxx/include/__new allocation_result.h new_at_least.h, libcxx/src/support new.ipp

Revert "[libc++] Add __new_at_least" (#248673)

Reverts llvm/llvm-project#215813

There is a long list of issues on #215813, some are bugs in other
components. We need time to resolve them.
DeltaFile
+0-111libcxx/test/libcxx/language.support/support.dynamic/new_at_least.pass.cpp
+0-88libcxx/src/support/new.ipp
+0-73libcxx/test/libcxx/language.support/support.dynamic/new_at_least.replace.pass.cpp
+0-72libcxx/test/libcxx/language.support/support.dynamic/new_at_least.align_val_t.replace.pass.cpp
+0-63libcxx/include/__new/new_at_least.h
+0-33libcxx/include/__new/allocation_result.h
+0-44028 files not shown
+61-56634 files

LLVM/project e0c38a4 — llvm/include/llvm/IR IntrinsicsAMDGPU.td

[AMDGPU] Remove unused r600 texture intrinsics. NFC (#248348)

`llvm.r600.{txl,txlc,txb,txbc,txf,txq,ddx,ddy}` have no users and no
lowering in the R600 backend, so they cannot be selected. Remove them
together with the now unused `TextureIntrinsicInt32Input` class.

RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840
DeltaFile
+0-22llvm/include/llvm/IR/IntrinsicsAMDGPU.td
+0-221 files

LLVM/project f3e7da7 — offload/include/Shared Debug.h

feeback function overload
DeltaFile
+8-14offload/include/Shared/Debug.h
+8-141 files

LLVM/project b703482 — offload/include/Shared Debug.h, offload/liboffload/plugins/amdgpu/src rtl.cpp

rebase INFO into debug stream
DeltaFile
+175-157offload/include/Shared/Debug.h
+67-65offload/libompaccsupport/src/Mapping.cpp
+11-9offload/liboffload/plugins/amdgpu/src/rtl.cpp
+7-8offload/libompaccsupport/src/device.cpp
+8-7offload/libomptarget/include/Helpers.h
+7-7offload/liboffload/plugins/cuda/src/rtl.cpp
+275-2532 files not shown
+284-2618 files

LLVM/project 898e730 — offload/include/Shared Debug.h, offload/libompaccsupport/src Mapping.cpp

[Offload] Add LIBOMPTARGET_INFO output to LIBOMPTARGET_DEBUG

Assisted-by: Claude Opus 5.5
DeltaFile
+80-71offload/include/Shared/Debug.h
+49-0offload/test/mapping/attach_ptr_update_to_restore_info.c
+22-0offload/test/offloading/info_category.c
+10-10offload/libompaccsupport/src/Mapping.cpp
+8-7offload/libomptarget/src/omptarget.cpp
+7-7offload/libomptarget/include/Helpers.h
+176-955 files not shown
+189-10811 files

LLVM/project 00203f3 — llvm/lib/Target/Hexagon/Utils HexagonDepMask.h, llvm/test/CodeGen/AMDGPU amdgcn.bitcast.320bit.ll amdgcn.bitcast.512bit.ll

Rebase, address comments

Created using spr 2.0.0-beta.1
DeltaFile
+7,106-7,623llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+2,746-2,857llvm/test/CodeGen/X86/vector-interleaved-store-i16-stride-7.ll
+2,318-2,569llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+1,688-1,190llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.320bit.ll
+2,844-0llvm/lib/Target/Hexagon/Utils/HexagonDepMask.h
+1,298-1,316llvm/test/CodeGen/X86/clmul-vector.ll
+18,000-15,5551,329 files not shown
+78,229-35,0091,335 files

LLVM/project d47c34e — libcxx/include/__new allocation_result.h new_at_least.h, libcxx/src/support new.ipp

Revert "[libc++] Add __new_at_least (#215813)"

This reverts commit f59521e7ec81282e7a1c810bec8db33fe7461b3f.
DeltaFile
+0-111libcxx/test/libcxx/language.support/support.dynamic/new_at_least.pass.cpp
+0-88libcxx/src/support/new.ipp
+0-73libcxx/test/libcxx/language.support/support.dynamic/new_at_least.replace.pass.cpp
+0-72libcxx/test/libcxx/language.support/support.dynamic/new_at_least.align_val_t.replace.pass.cpp
+0-63libcxx/include/__new/new_at_least.h
+0-33libcxx/include/__new/allocation_result.h
+0-44028 files not shown
+61-56634 files

LLVM/project 864daa3 — mlir/include/mlir/Target/LLVMIR ModuleImport.h, mlir/lib/Target/LLVMIR ModuleImport.cpp

[MLIR][LLVM] Import nameless functions, aliases and ifuncs (#248261)

LLVM IR allows nameless functions, aliases and ifuncs (e.g.
`MergeFunctions` creates nameless functions when it merges linkonce_odr
functions), but the importer only generated symbols for nameless global
variables. A constant that references a nameless function fails an
invalid `cast<GlobalVariable>`, and a module with two nameless functions
fails with a symbol redefinition.

This patch extends the nameless global support from #101918 and #111797
to functions, aliases and ifuncs. It generates a symbol for every
nameless global value and uses it at each site that references a global.

Assisted-by: Claude Code
DeltaFile
+163-0mlir/test/Target/LLVMIR/Import/nameless-functions.ll
+51-70mlir/lib/Target/LLVMIR/ModuleImport.cpp
+4-3mlir/include/mlir/Target/LLVMIR/ModuleImport.h
+218-733 files

LLVM/project 77dd870 — llvm/test/CodeGen/PISA asm-printer-unsupported-vector-hint-fp128.ll

Add asm-printer-unsupported-vector-hint-fp128.ll test
DeltaFile
+11-0llvm/test/CodeGen/PISA/asm-printer-unsupported-vector-hint-fp128.ll
+11-01 files

LLVM/project ba6e6db — llvm/lib/Target/PISA PISATargetMachine.cpp PISAOptimizeRedundantCopies.cpp, llvm/test/CodeGen/PISA asm-printer-fp-inline-asm.mir

Adjustments after rebase
DeltaFile
+16-1llvm/lib/Target/PISA/PISAOptimizeRedundantCopies.cpp
+0-2llvm/lib/Target/PISA/PISATargetMachine.cpp
+1-1llvm/test/CodeGen/PISA/asm-printer-fp-inline-asm.mir
+17-43 files

LLVM/project 4cef28e — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Document why AsmPrinter::emitGlobalConstant is not used
DeltaFile
+4-0llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+4-01 files