LLVM/project 4ccaeaa — offload/liboffload/plugins/level_zero/src L0Device.cpp, offload/unittests/OffloadAPI/memory olMemcpy3D.cpp

[Offload][L0] Copy a single slice as a 2D region (#246571)

For a 3D copy with a depth of one, add the z offsets to the source and
destination pointers and pass a z origin of zero to
zeCommandListAppendMemoryCopyRegion, instead of passing a nonzero z
origin with a depth of one.

Assisted by Claude.

---------

Co-authored-by: blazej-smorawski <blazej.smorawski at intel.com>
DeltaFile
+15-4offload/liboffload/plugins/level_zero/src/L0Device.cpp
+0-1offload/unittests/OffloadAPI/memory/olMemcpy3D.cpp
+15-52 files

LLVM/project 4798b84 — llvm/lib/Analysis ValueTracking.cpp, llvm/test/Analysis/ValueTracking phi-known-bits.ll

[ValueTracking] Limit compare analysis to integer types (#239757)

Fix bug introduced in https://github.com/llvm/llvm-project/pull/237661.
Improving KnownBits by doing compare analysis must not be done on fat
pointers since compares on them only test address bits and provide no
information on non-address bits. Fix by limiting analysis to integers.

Also do not analyze ICMP_NE since it provides almost no information.

---------

Signed-off-by: John Lu <John.Lu at amd.com>
DeltaFile
+72-0llvm/test/Analysis/ValueTracking/phi-known-bits.ll
+22-18llvm/lib/Analysis/ValueTracking.cpp
+94-182 files

LLVM/project 3d21ce3 — lldb/source/Plugins/Process/gdb-remote ProcessGDBRemote.cpp, lldb/test/API/functionalities/gdb_remote_client TestReadMemory.py TestWriteMemory.py

[lldb] Show the stub's error string on failed memory access (#247810)

A stub that supports QEnableErrorStrings can say why a memory read or
write failed by replying `Exx;<hex text>`. ProcessGDBRemote dropped the
text and reported only the address. Append it to the error:

```
memory read failed for 0x1000: no such region
```

A bare `Exx` reply keeps the current message.

rdar://193043790
Assisted-by: Claude
DeltaFile
+18-4lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+22-0lldb/test/API/functionalities/gdb_remote_client/TestWriteMemory.py
+20-0lldb/test/API/functionalities/gdb_remote_client/TestReadMemory.py
+60-43 files

LLVM/project fbce874 — flang/docs GettingInvolved.md

[flang][docs] Remove reference to classic flang call

The call no longer takes place.
DeltaFile
+0-7flang/docs/GettingInvolved.md
+0-71 files

LLVM/project 096562a — llvm/lib/Target/SystemZ/MCTargetDesc SystemZInstPrinterCommon.cpp

[SystemZ][z/OS] Remove always triggering assertion (#248059)

HLASM does not have mnemonics for all conditions. However, these
instructions are generated, so this `assert()` triggers for all
non-trivial inputs, which really hinders debugging. When the issue is
solved at the right level, then this `assert()` can be added back.
DeltaFile
+5-3llvm/lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinterCommon.cpp
+5-31 files

LLVM/project d6dce2a — llvm/test/Transforms/SLPVectorizer/AArch64 store-chain-split-wide-stored-values.ll

[SLP][NFC]Add another test for cheapest candidate selection, NFC

Pull-request: https://github.com/llvm/llvm-project/pull/248113
DeltaFile
+79-0llvm/test/Transforms/SLPVectorizer/AArch64/store-chain-split-wide-stored-values.ll
+79-01 files

LLVM/project 2423b94 — lldb/source/Plugins/SymbolFile/DWARF DWARFASTParser.cpp DWARFASTParserFortran.cpp

[lldb] Use extensible RTTI for DWARFASTParser (NFC) (#247875)

This patch replaces the DWARFASTParser::Kind enum with
llvm::RTTIExtends. A new parser no longer needs to add itself to
DWARFASTParser.h, which is a first step towards letting parsers live
outside SymbolFileDWARF.

Assisted-by: Claude
DeltaFile
+6-9lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParser.h
+4-4lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h
+3-4lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserFortran.h
+3-2lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserFortran.cpp
+3-2lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+2-0lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParser.cpp
+21-216 files

LLVM/project d3ea7fc — llvm/lib/Transforms/Vectorize LoopVectorize.cpp VPlanTransforms.cpp, llvm/unittests/Transforms/Vectorize VPlanHCFGTest.cpp VPlanTestBase.h

[VPlan] Remove UncountableExitStyle (NFC). (#247242)

handleUncountableEarlyExits always picks the strategy from the plan
itself: it uses the masked strategy if the loop has stores and the
read-only strategy otherwise, ignoring the passed-in style. The only
caller passes ReadOnly unconditionally, so the enum and parameter carry
no information. Remove them and use the result of loopHasStores
directly. Fold the description of the two strategies into the doc
comment of handleUncountableEarlyExits. This came up as part of
https://github.com/llvm/llvm-project/pull/233313, where we effectively
pick another style for side-effects, based
on VPlan analysis.

If we want to chose the style based on target preference, I think it
would be cleaner to pass TTI to pick based on the VPlan analysis.

PR: https://github.com/llvm/llvm-project/pull/247242
DeltaFile
+0-15llvm/lib/Transforms/Vectorize/VPlan.h
+9-6llvm/lib/Transforms/Vectorize/VPlanTransforms.h
+6-7llvm/unittests/Transforms/Vectorize/VPlanTestBase.h
+5-7llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+2-5llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+1-2llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp
+23-421 files not shown
+24-437 files

LLVM/project 980ef9b — llvm/test/CodeGen/AArch64 sve-fixed-length-masked-expandloads.ll sve-interleaved-accesses.ll, llvm/test/CodeGen/RISCV xqcilo-xqcilia-frame-index.ll xqcilo-xqcilia-sfb-frame-index.ll

Merge remote-tracking branch 'llvm/main' into users/reble/amdgpu-phi-hasuses-nfc
DeltaFile
+688-788llvm/test/CodeGen/AArch64/sve-fixed-length-fp-extend-bf16.ll
+1,449-0llvm/test/CodeGen/RISCV/xqcilo-xqcilia-sfb-frame-index.ll
+413-668llvm/test/CodeGen/AArch64/sve-interleaved-accesses.ll
+477-544llvm/test/CodeGen/AArch64/sve-fixed-length-masked-expandloads.ll
+980-1llvm/test/CodeGen/RISCV/xqcilo-xqcilia-frame-index.ll
+697-25llvm/test/CodeGen/SPARC/fp-strict.ll
+4,704-2,026503 files not shown
+18,894-4,748509 files

LLVM/project e75079e — clang/lib/StaticAnalyzer/Checkers DereferenceChecker.cpp, clang/test/Analysis null-pointer-arithm.c

[analyzer] Make the reports of the core.NullPointerArithm checker non-sinking (#247730)

Fixes #246710

Although null pointer arithmetic is undefined behavior, it does not
generally trap at runtime, and continuing the analysis after reporting
it is safe. This fix allows this by adjusting the report node to be
non-sinking.
DeltaFile
+10-1clang/test/Analysis/null-pointer-arithm.c
+3-1clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
+13-22 files

LLVM/project 3e55351 — mlir/lib/Tools/mlir-reduce MlirReduceMain.cpp

[mlir][reducer] Show all mlir-reduce options in --help (#245992)

--no-implicit-module, --allow-unregistered-dialect and
--split-input-file were not in the mlir-reduce option category.
HideUnrelatedOptions marks options outside the category as really
hidden, so they were missing from both --help and --hidden flags. This
Puts them in the flags.
DeltaFile
+3-3mlir/lib/Tools/mlir-reduce/MlirReduceMain.cpp
+3-31 files

LLVM/project f47c10b — lldb/source/Plugins/Process/Windows/Common NativeProcessWindows.h NativeProcessWindows.cpp

[lldb][Windows] Forward the inferior's output before reporting a stop (#248088)

`NativeProcessWindows` reads the inferior's stdout on its own thread and
passes it to `GDBRemoteCommunicationServerLLGS` with
`NewProcessOutput()`. There is a race condition where data can still be
in the pipe when the inferior is stopped. It only reaches the client
**after** the process resumes.

`TestChangeValueAPI` is flaky on Windows on ARM because of this.

This patch makes `NativeProcessWindows` wait for its read thread to send
what is already in the pipe before it reports a stop.
DeltaFile
+9-0lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp
+4-0lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.h
+13-02 files

LLVM/project 616fb27 — llvm/lib/Target/Sparc SparcISelLowering.cpp, llvm/test/CodeGen/SPARC inlineasm-fp-clobber.ll

[Sparc] Don't drop inline asm clobbers of %f32-%f62 (#247789)

An inline asm clobber of %f32-%f62, as in `"~{f32}"`, was silently
ignored, while `"~{d16}"` worked. The registers for %f32-%f62 are
D16-D31,
and the generic lookup matches constraint names against the TableGen
register names, which are d16-d31. Operands are rewritten to {dN}
according to their value type, but a clobber has no value type, so it
fell through and matched nothing.

Map the even names %f32-%f62 in a clobber to D16-D31. These are the
names of the upper registers that clang accepts in clobbers.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+32-0llvm/test/CodeGen/SPARC/inlineasm-fp-clobber.ll
+11-0llvm/lib/Target/Sparc/SparcISelLowering.cpp
+43-02 files

LLVM/project 32e8a36 — clang/lib/CodeGen CGOpenMPRuntimeGPU.h CodeGenFunction.cpp, clang/test/OpenMP target_no_loop.cpp

[clang][OpenMP] Add no-loop SPMD kernel promotion (#224041)

A target teams distribute parallel for that is guaranteed a thread for
every iteration does not need the loop around its body. Flang already
drops it and runs the region as a no-loop kernel.

Enable the same optimization for Clang through mirroring Flang's MLIR
promotion using OpenMPIRBuilder. The kernel is tagged SPMD_NO_LOOP, so
the runtime sizes the grid to the iteration space, and the body is
emitted without a loop around it. The canonical loop it consumes is
reconstructed in the no-loop branch rather than taken from an
OMPCanonicalLoop node, so the promotion does not require
-fopenmp-enable-irbuilder.

Split out of #205325.
Assisted by: Claude Opus 5.5
DeltaFile
+229-0clang/test/OpenMP/target_no_loop.cpp
+130-46clang/lib/CodeGen/CGStmtOpenMP.cpp
+91-0offload/test/offloading/target-no-loop.c
+45-0clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
+10-8clang/lib/CodeGen/CodeGenFunction.cpp
+11-0clang/lib/CodeGen/CGOpenMPRuntimeGPU.h
+516-544 files not shown
+536-6110 files

LLVM/project 1766fff — clang/lib/CodeGen/Targets Mips.cpp, clang/test/CodeGen mips-varargs.c

[Mips] Fix big-endian va_arg of vectors smaller than a slot (#247572)

Vectors are passed like aggregates on MIPS, so on big-endian a vector
smaller than an argument slot is at the start of its slot, the same as
GCC. va_arg right-adjusted it instead and read the padding. On O32 this
broke vectors under 4 bytes, and on N32/N64 vectors under 8 bytes.

Fixes #247461

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+53-0clang/test/CodeGen/mips-varargs.c
+6-0clang/lib/CodeGen/Targets/Mips.cpp
+59-02 files

LLVM/project a253820 — llvm/lib/Target/Mips MicroMips32r6InstrInfo.td, llvm/test/CodeGen/Mips is_fpclass.ll

[Mips] Add microMIPS R6 patterns for is_fpclass (#247752)

IS_FPCLASS is legal on R6, but the CLASS.fmt patterns were only
defined for the standard encoding, so llvm.is.fpclass failed to select
on microMIPS R6. Add the microMIPS R6 equivalents.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+304-141llvm/test/CodeGen/Mips/is_fpclass.ll
+12-0llvm/lib/Target/Mips/MicroMips32r6InstrInfo.td
+316-1412 files

LLVM/project 186261c — llvm/include/llvm/Analysis LoopAccessAnalysis.h, llvm/lib/Analysis LoopAccessAnalysis.cpp

[LAA] Conservatively handle compressed pointers

This allows vectorizing loops with `ptr` conditional inductions (that
are used to compute the addresses of loads/stores), and loops where
the pointers may alias (so need bounds checks).

For now, diff checks are not supported if either the source or sink is
a compressed pointer (as the difference may not be constant within the
loop). This could be relaxed for pointers derived from the same phi.

We ensure the over-approximation does not wrap before bounds checking
compressed pointers to ensure the bounds hold for the loop.

All SCEV predicates and bounds checks are frozen as the compressed
access may not occur in the scalar loop (if the condition turns out to
be false for the entire loop), to avoid branching on poison.

Assisted-by: Codex (adding test converage, comments my own).
DeltaFile
+293-0llvm/test/Transforms/LoopVectorize/compress-idioms-runtime-checks.ll
+242-0llvm/test/Transforms/LoopVectorize/compress-idioms.ll
+81-13llvm/lib/Analysis/LoopAccessAnalysis.cpp
+92-0llvm/test/Transforms/LoopVersioning/compressed-pointer-runtime-check-freeze.ll
+0-30llvm/test/Transforms/LoopVectorize/compress-idioms-negative-tests.ll
+27-3llvm/include/llvm/Analysis/LoopAccessAnalysis.h
+735-464 files not shown
+755-5810 files

LLVM/project 64d8f67 — llvm/include/llvm/Analysis IVDescriptors.h, llvm/include/llvm/Transforms/Utils LoopUtils.h

[Analysis] Move collectCompressedPtrs to IVDescriptors.{cpp|h} (NFC)

`collectCompressedPtrs` needs to be accessible in LAA to handle runtime
checks for compressed ptrs.
DeltaFile
+0-85llvm/lib/Transforms/Utils/LoopUtils.cpp
+85-0llvm/lib/Analysis/IVDescriptors.cpp
+19-0llvm/include/llvm/Analysis/IVDescriptors.h
+0-18llvm/include/llvm/Transforms/Utils/LoopUtils.h
+104-1034 files

LLVM/project 79a666c — llvm/docs ProgrammersManual.md

[Docs] Fix getTerminator() documentation (#248010)

https://github.com/llvm/llvm-project/pull/189416 changes getTerminator()
to require a well-formed BasicBlock, but didn't adjust the documentation
in the ProgrammersManual.
DeltaFile
+2-2llvm/docs/ProgrammersManual.md
+2-21 files

LLVM/project fb4d597 — lldb/source/Plugins/SymbolFile/NativePDB SymbolFileNativePDB.cpp, lldb/test/Shell/SymbolFile/NativePDB line-tables-only-decl.test line-tables-only-run.yaml

[lldb][NativePDB] Accept functions without a type (#236547)

When I was trying to trim down the output from llvm with
`-gline-tables-only`, I noticed that lldb doesn't parse functions if
they don't have a type.
It's fine for functions to not have a type in PDB. If you look at the
PDBs from Microsoft's symbol servers, then, if they have functions at
all, they never have types (i.e. type index 0).

With this PR, lldb will accept these functions. They will get a nullptr
`Type*` and an `LLDB_INVALID_UID` for the type UID.
`ResolveTypeUID` couldn't handle that UID before, but now it will return
a nullptr type too.

I added two tests (of the same program). One to check that we can parse
the functions and another one to check that we can generate a backtrace.
I can't use the current clang-cl to compile this, because it would
generate types for functions, so it's using yaml2obj.
DeltaFile
+400-0lldb/test/Shell/SymbolFile/NativePDB/Inputs/line-tables-only-pdb.yaml
+117-0lldb/test/Shell/SymbolFile/NativePDB/line-tables-only-run.yaml
+18-9lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+18-0lldb/test/Shell/SymbolFile/NativePDB/line-tables-only-decl.test
+553-94 files

LLVM/project bbd41f4 — bolt/include/bolt/Core MCInstUtils.h MCPlusBuilder.h, bolt/lib/Core MCInstUtils.cpp BinaryContext.cpp

Address the review comments
DeltaFile
+73-23bolt/test/binary-analysis/AArch64/gs-pauth-jump-table.s
+31-0bolt/lib/Core/BinaryContext.cpp
+14-10bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
+9-4bolt/include/bolt/Core/MCPlusBuilder.h
+5-7bolt/include/bolt/Core/MCInstUtils.h
+9-3bolt/lib/Core/MCInstUtils.cpp
+141-471 files not shown
+147-477 files

LLVM/project a167da3 — llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp

[AMDGPU] Invalidate stale UniformityInfo entries in 64-bit div/rem expansion (#215460)

expandDivRem64 erases instructions outside DeadVals worklist, so a freed
instruction address could be reused and misclassified by UniformityInfo

Found as a result of an audit after finding the same class of bug fixed
for Reassociate in #214719
DeltaFile
+7-2llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+7-21 files

LLVM/project 5370a99 — clang/lib/CIR/CodeGen CIRGenOpenMPClause.h CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c target-reduction.c

[CIR][OpenMP] Add support for OpenMP reduction clause

This patch adds support for the OpenMP reduction clause on the teams and for
directives for reductions with built-in identifiers on local scalar integer and
floating-point variables. Other cases, such as user-defined reductions,
modifiers, arrays and globals, are reported as not yet implemented.

Assisted-by: Cursor / Claude Opus 5.5 Medium
DeltaFile
+212-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.cpp
+173-0clang/test/CIR/CodeGenOpenMP/target-reduction.c
+130-42clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+33-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+25-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.h
+573-425 files

LLVM/project e1dac42 — clang/lib/Parse ParsePragma.cpp

[clang] Explicitly discard the vectorize_width token consume result
DeltaFile
+1-1clang/lib/Parse/ParsePragma.cpp
+1-11 files

LLVM/project fcafd9f — clang/lib/Parse ParsePragma.cpp

[clang] Validate vectorize_width state after consuming its identifier
DeltaFile
+11-10clang/lib/Parse/ParsePragma.cpp
+11-101 files

LLVM/project 9b899cc — clang/lib/Parse ParsePragma.cpp

[clang] Use TryConsumeToken for vectorize_width arguments
DeltaFile
+1-3clang/lib/Parse/ParsePragma.cpp
+1-31 files

LLVM/project 8c16249 — clang/docs ReleaseNotes.md, clang/lib/Parse ParsePragma.cpp

[clang] Fix crash on trailing comma in vectorize_width

With `#pragma clang loop vectorize_width(4, )`, the token after the comma
is the end marker for the loop hint. The parser diagnoses the missing
argument, then lexes past the marker. Error recovery consumes the
following loop and crashes at the end of the file.

```text
Stack dump:
1.      <eof> parser at end of file
2.      <stdin>:1:10: parsing function body 'f'
3.      <stdin>:1:10: in compound statement ('{}')
```

Leave the end marker for the existing recovery path so parsing resumes
at the following loop. Clang now emits only the malformed hint error.

```text
<stdin>:2:40: error: vectorize_width loop hint malformed; use vectorize_width(X, fixed) or vectorize_width(X, scalable) where X is an integer, or vectorize_width('fixed' or 'scalable')

    [6 lines not shown]
DeltaFile
+5-0clang/test/Parser/pragma-loop-vectorize.cpp
+3-1clang/lib/Parse/ParsePragma.cpp
+2-0clang/docs/ReleaseNotes.md
+10-13 files

LLVM/project 022436a — llvm/lib/Target/RISCV RISCVInterleavedAccess.cpp, llvm/test/CodeGen/RISCV/rvv fixed-vectors-interleaved-access.ll

[RISCV] Fix VL calculation for lowering interleaved loads/stores (#247382)

AI Usage: Codex assisted test generation.
DeltaFile
+56-6llvm/test/CodeGen/RISCV/rvv/fixed-vectors-interleaved-access.ll
+2-3llvm/lib/Target/RISCV/RISCVInterleavedAccess.cpp
+58-92 files

LLVM/project 3315436 — llvm/lib/Target/AMDGPU SIISelLowering.cpp, llvm/test/CodeGen/AMDGPU dag-topological-sort.ll

[AMDGPU] Handle fp_class conditions in frexp select combine (#248079)

performFrexpSelectCombine removes a select that returns 0 for inf or nan
inputs to frexp_exp, but it only recognized setcc conditions. An isinf or
isfinite setcc is combined into AMDGPUISD::FP_CLASS, and with
-combiner-topological-sorting that happens before the select is visited.

Assisted-by: Claude Fable 5.2 <noreply at anthropic.com>
DeltaFile
+83-0llvm/test/CodeGen/AMDGPU/dag-topological-sort.ll
+14-0llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+97-02 files

LLVM/project de89a67 — llvm/lib/Transforms/IPO MemProfContextDisambiguation.cpp, llvm/test/Assembler thinlto-memprof-summary.ll

[MemProf] Don't clone functions whose block addresses escape (#247257)

CloneFunction only remaps block addresses used inside the function body.
If a function's block addresses escape, e.g. through a computed-goto
jump table stored in a global variable, a MemProf clone continues
loading the original function's block addresses and jumps into
the original function's blocks, leading to crashes.

Skip such functions when building the MemProf callsite context graph so
their allocations retain default behavior.

Assisted-by: Gemini
DeltaFile
+114-0llvm/test/ThinLTO/X86/memprof-escaping-blockaddress.ll
+85-0llvm/test/ThinLTO/X86/memprof-escaping-blockaddress-tailcall.ll
+79-0llvm/test/Transforms/MemProfContextDisambiguation/escaping-blockaddress.ll
+77-0llvm/test/Transforms/MemProfContextDisambiguation/escaping-blockaddress-tailcall.ll
+72-0llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
+12-12llvm/test/Assembler/thinlto-memprof-summary.ll
+439-1218 files not shown
+492-4424 files