LLVM/project 6fd7788 — llvm/lib/Target/SystemZ SystemZISelLowering.h SystemZISelLowering.cpp, llvm/test/CodeGen/SystemZ vec-mul-sum-i128.ll

[SystemZ] Use VMSLG for i128 multiply-accumulate of 64-bit products

Add a DAG combine that turns
  (add (add (mul x0, y0), (mul x1, y1)), c)
on i128, where all x and y have their upper 64 bits known zero, into
a single VECTOR MULTIPLY SUM LOGICAL (VMSLG) instead of two MLG(R)
plus two VAQ. Requires vector-enhancements-1 (z14).

Assisted by: IBM Bob
DeltaFile
+44-0llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+34-0llvm/test/CodeGen/SystemZ/vec-mul-sum-i128.ll
+1-0llvm/lib/Target/SystemZ/SystemZISelLowering.h
+79-03 files

LLVM/project bbbafae — llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp

Use "llvm_unreachable" instead of "assert(false && ...)"

Co-authored-by: Nick Desaulniers <ndesaulniers at google.com>
DeltaFile
+1-1llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+1-11 files

LLVM/project 0b126de — llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp

Don't add duplicate registers as live-in.

Co-authored-by: Nick Desaulniers <ndesaulniers at google.com>
DeltaFile
+1-1llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+1-11 files

LLVM/project 5a464bd — llvm/lib/Target/NVPTX NVPTXISelLowering.cpp, llvm/test/CodeGen/NVPTX bf16-instructions.ll

[NVPTX] Avoid double rounding in integer to bf16 conversions (#244801)

Below sm_90, int to bf16 is lowered through f32, which rounds twice and can
be off by one ulp, e.g. `uitofp i32 16842753` gives 0x4B80 instead of 0x4B81.

Convert to f32 rounding towards zero and set the lowest bit if inexact
(round to odd), so the final rounding to bf16 is correct. Operands known to
fit in 24 bits keep the direct conversion. The first commit adds the tests.

Fixes #244593

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+552-26llvm/test/CodeGen/NVPTX/bf16-instructions.ll
+35-4llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+587-302 files

LLVM/project 104e5f4 — llvm/docs ReleaseNotes.md, llvm/include/llvm-c Orc.h

[ORC][C API] Add LLVMOrcThreadSafeContextWithContextDo (#232676)

LLVMOrcThreadSafeContextGetContext was removed in 0bfa0bcd79f7 along
with ThreadSafeContext::getContext, but no C API replacement for
ThreadSafeContext::withContextDo was added. As a result, C API clients
have no way to safely access the LLVMContext wrapped by an existing
LLVMOrcThreadSafeContextRef, e.g. to create a new module in it.

This patch adds LLVMOrcThreadSafeContextWithContextDo, which mirrors
LLVMOrcThreadSafeModuleWithModuleDo: the given callback is invoked with
the wrapped LLVMContext while the context lock is held.

Assisted-by: Claude Opus 5.5

Co-authored-by: Lang Hames <lhames at gmail.com>
DeltaFile
+67-0llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
+23-0llvm/include/llvm-c/Orc.h
+8-0llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
+4-0llvm/docs/ReleaseNotes.md
+102-04 files

LLVM/project 054215d — lldb/include/lldb lldb-enumerations.h, lldb/include/lldb/Interpreter CommandOptionArgumentTable.h

[lldb] Declare darwin-log enable options in TableGen

The --filter option of `plugin structured-data darwin-log enable` took
eArgRawInput, which describes free-form text passed after ' -- ' and so
contradicts how the option works: each --filter takes one rule, which
must be quoted if it contains spaces, and the option may be repeated.

Replace it with the newly introduced eArgTypeDarwinLogFilter and declare
the options of the command in TableGen like the other commands.

This was the only use of eArgRawInput as an argument type. The
corresponding entry in the option argument table is kept so that
`help raw-input` still works.

The multi-line description of --filter contains manual formatting, but
apparently it has been broken since 23dffff4 (tracked by #246769).

Assisted-by: Claude
DeltaFile
+103-0lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLogOptions.td
+4-98lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
+16-0lldb/test/API/commands/help/TestHelp.py
+5-0lldb/source/Plugins/StructuredData/DarwinLog/CMakeLists.txt
+1-0lldb/include/lldb/lldb-enumerations.h
+1-0lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h
+130-986 files

LLVM/project d16b20e — lldb/include/lldb lldb-enumerations.h, lldb/include/lldb/Interpreter CommandOptionArgumentTable.h

[lldb] Declare darwin-log enable options in TableGen

The --filter option of `plugin structured-data darwin-log enable` took
eArgRawInput, which describes free-form text passed after ' -- ' and so
contradicts how the option works: each --filter takes one rule, which
must be quoted if it contains spaces, and the option may be repeated.

Replace it with the newly introduced eArgTypeDarwinLogFilter and declare
the options of the command in TableGen like the other commands.

This was the only use of eArgRawInput as an argument type. The
corresponding entry in the option argument table is kept so that
`help raw-input` still works.

The multi-line description of --filter contains manual formatting, but
apparently it has been broken since 23dffff4 (tracked by #246769).

Assisted-by: Claude
DeltaFile
+103-0lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLogOptions.td
+4-98lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
+16-0lldb/test/API/commands/help/TestHelp.py
+5-0lldb/source/Plugins/StructuredData/DarwinLog/CMakeLists.txt
+1-0lldb/include/lldb/lldb-enumerations.h
+1-0lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h
+130-986 files

LLVM/project 20bf0f8 — lldb/include/lldb lldb-enumerations.h, lldb/include/lldb/Interpreter CommandOptionArgumentTable.h

[lldb] Declare darwin-log enable options in TableGen

The --filter option of `plugin structured-data darwin-log enable` took
eArgRawInput, which describes free-form text passed after ' -- ' and so
contradicts how the option works: each --filter takes one rule, which
must be quoted if it contains spaces, and the option may be repeated.

Replace it with the newly introduced eArgTypeDarwinLogFilter and declare
the options of the command in TableGen like the other commands.

This was the only use of eArgRawInput as an argument type. The
corresponding entry in the option argument table is kept so that
`help raw-input` still works.

The multi-line description of --filter contains manual formatting, but
apparently it has been broken since 23dffff4 (tracked by #246769).

Assisted-by: Claude
DeltaFile
+5-98lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
+103-0lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLogOptions.td
+17-0lldb/test/API/commands/help/TestHelp.py
+5-0lldb/source/Plugins/StructuredData/DarwinLog/CMakeLists.txt
+1-0lldb/include/lldb/lldb-enumerations.h
+1-0lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h
+132-986 files

LLVM/project a1127b1 — libc/config/gpu/spirv entrypoints.txt

[libc][GPU] Disable ldiv, labs for SPIR-V targets (#246545)
DeltaFile
+3-2libc/config/gpu/spirv/entrypoints.txt
+3-21 files

LLVM/project 2b05084 — lld/MachO SyntheticSections.cpp, lld/test/MachO stabs.s

[lld][MachO] Reuse symbol string offsets in STABS

`SymtabSection::emitStabs()` calls `stringTableSection.addString()` for
every defined symbol's name, even though `SymtabSection::finalizeContents()`
already added those exact strings to the string table for the ordinary
symbol table. On large debug links, repeating the hash and `DenseMap`
probe for every STABS symbol accounts for a substantial share of
`__LINKEDIT` finalization.

This PR carries each symbol's existing `strx` alongside its `fileId` in
`symbolsNeedingStabs` (fitting in the existing struct padding) and reuses
it directly in `emitStabs()`.

We reuse `strx` unconditionally, including under
`-no-deduplicate-symbol-strings`. That flag (`c676104875f3`) was added as
a link-time speedup trade-off rather than to force STABS entries to
duplicate ordinary symbol names. Re-appending STABS strings in that mode
bloated outputs by 15-40% and slowed down several links due to extra
output writing and code signing; reusing `strx` avoids both while keeping

    [2 lines not shown]
DeltaFile
+17-10lld/MachO/SyntheticSections.cpp
+22-0lld/test/MachO/stabs.s
+39-102 files

LLVM/project b4a8598 — llvm/lib/Transforms/Vectorize VectorCombine.cpp, llvm/test/Transforms/VectorCombine bitcast-shuffle-ptr.ll

[VectorCombine] Fix crash on bitcasts of pointer vectors

foldBitcastShuffle divides by the scalar sizes of the source and
destination element types, which are zero for pointers. A bitcast of a
shuffled pointer vector, or one between a byte vector and a pointer
vector, then crashes with a division by zero. Take the sizes from the
DataLayout, so these bitcasts are folded too.

Fixes #246659

Assisted-by: Claude Code (Claude Opus 5.5)

DeltaFile
+89-0llvm/test/Transforms/VectorCombine/bitcast-shuffle-ptr.ll
+7-4llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+96-42 files

LLVM/project 7dbd3e4 — clang/tools/apinotes-test Opts.td CMakeLists.txt, llvm/utils/gn/secondary/clang/tools/apinotes-test BUILD.gn

[apinotes-test] Switch to OptTable (#246760)

Parse the command line with OptTable instead of cl::opt, as part of
removing cl::opt from clang/. Help output uses the OptTable format, and
LLVM's global options (e.g. -debug-only, --version) are no longer
accepted.

LLM-aided
DeltaFile
+41-8clang/tools/apinotes-test/APINotesTest.cpp
+11-0utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+9-0llvm/utils/gn/secondary/clang/tools/apinotes-test/BUILD.gn
+9-0clang/tools/apinotes-test/CMakeLists.txt
+6-0clang/tools/apinotes-test/Opts.td
+76-85 files

LLVM/project 03ec2e7 — lldb/include/lldb lldb-enumerations.h, lldb/include/lldb/Interpreter CommandOptionArgumentTable.h

[lldb] Declare darwin-log enable options in TableGen

The --filter option of `plugin structured-data darwin-log enable` took
eArgRawInput, which describes free-form text passed after ' -- ' and so
contradicts how the option works: each --filter takes one rule, which
must be quoted if it contains spaces, and the option may be repeated.

Add eArgTypeLogFilter for a single filter rule and declare the options
of the command in TableGen like the other commands. The multi-line
description of --filter relies on newlines being escaped correctly in
the generated code. eArgRawInput is kept: command help still points at
'help raw-input' to explain the raw-input convention.

The usage line now lists the options in def name order.

Assisted-by: Claude
DeltaFile
+5-98lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
+103-0lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLogOptions.td
+5-0lldb/source/Plugins/StructuredData/DarwinLog/CMakeLists.txt
+1-0lldb/include/lldb/lldb-enumerations.h
+1-0lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h
+115-985 files

LLVM/project a95ac10 — lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime CMakeLists.txt AppleObjCRuntimeOptions.td

[lldb] Declare objc class-table dump options in TableGen (NFC)

Assisted-by: Claude
DeltaFile
+4-12lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+7-0lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/CMakeLists.txt
+7-0lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeOptions.td
+18-123 files

LLVM/project b507009 — lldb/source/Target CMakeLists.txt TargetOptions.td

[lldb] Declare OptionGroupPlatform options in TableGen (NFC)

Add TargetOptions.td for the options of the option groups in
lldbTarget and move the options of RSync/Caching/SSH there.

Assisted-by: Claude
DeltaFile
+8-31lldb/source/Target/Platform.cpp
+32-0lldb/source/Target/TargetOptions.td
+5-0lldb/source/Target/CMakeLists.txt
+45-313 files

LLVM/project 85a46fd — lldb/include/lldb lldb-enumerations.h, lldb/include/lldb/Interpreter CommandOptionArgumentTable.h

[lldb] Declare darwin-log enable options in TableGen

The --filter option of `plugin structured-data darwin-log enable` took
eArgRawInput, which describes free-form text passed after ' -- ' and so
contradicts how the option works: each --filter takes one rule, which
must be quoted if it contains spaces, and the option may be repeated.

Add eArgTypeLogFilter for a single filter rule and declare the options
of the command in TableGen like the other commands. The multi-line
description of --filter relies on newlines being escaped correctly in
the generated code. eArgRawInput is kept: command help still points at
'help raw-input' to explain the raw-input convention.

The usage line now lists the options in def name order.

Assisted-by: Claude
DeltaFile
+5-98lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
+103-0lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLogOptions.td
+5-0lldb/source/Plugins/StructuredData/DarwinLog/CMakeLists.txt
+1-0lldb/include/lldb/lldb-enumerations.h
+1-0lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h
+115-985 files

LLVM/project 6668504 — lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime CMakeLists.txt AppleObjCRuntimeOptions.td

[lldb] Declare objc class-table dump options in TableGen (NFC)

Move the options of `language objc class-table dump` to a new
AppleObjCRuntimeOptions.td.

Assisted-by: Claude
DeltaFile
+4-12lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+7-0lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/CMakeLists.txt
+7-0lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeOptions.td
+18-123 files

LLVM/project c63a45a — lldb/source/Target CMakeLists.txt TargetOptions.td

[lldb] Declare OptionGroupPlatform options in TableGen (NFC)

Add TargetOptions.td for the options of the option groups in
lldbTarget and move the options of RSync/Caching/SSH there.

Assisted-by: Claude
DeltaFile
+10-29lldb/source/Target/Platform.cpp
+32-0lldb/source/Target/TargetOptions.td
+5-0lldb/source/Target/CMakeLists.txt
+47-293 files

LLVM/project 36d6238 — lldb/source/Target TargetOptions.td Platform.cpp

[lldb] Declare OptionGroupPlatformCaching options in TableGen (NFC)

Move the --local-cache-dir option of OptionGroupPlatformCaching to
TargetOptions.td.

Assisted-by: Claude
DeltaFile
+3-6lldb/source/Target/Platform.cpp
+7-0lldb/source/Target/TargetOptions.td
+10-62 files

LLVM/project f3de2eb — lldb/source/Target TargetOptions.td Platform.cpp

[lldb] Declare OptionGroupPlatformSSH options in TableGen (NFC)

Move the options of OptionGroupPlatformSSH to TargetOptions.td.

Assisted-by: Claude
DeltaFile
+3-8lldb/source/Target/Platform.cpp
+8-0lldb/source/Target/TargetOptions.td
+11-82 files

LLVM/project 0b61692 — lldb/source/Target CMakeLists.txt TargetOptions.td

[lldb] Declare OptionGroupPlatformRSync options in TableGen (NFC)

Add TargetOptions.td for the options of the option groups in
lldbTarget and move the options of OptionGroupPlatformRSync there.

Assisted-by: Claude
DeltaFile
+4-15lldb/source/Target/Platform.cpp
+17-0lldb/source/Target/TargetOptions.td
+5-0lldb/source/Target/CMakeLists.txt
+26-153 files

LLVM/project d7cd113 — lldb/include/lldb/Interpreter CommandOptionArgumentTable.h, lldb/include/lldb/Target Target.h

[lldb] Declare OptionGroupValueObjectDisplay options in TableGen

The --dynamic-type option is an enum, but it was declared without an
argument type, so `help` printed "-d <none>" and the option was not
described as an enumeration:
```
$ (lldb) help dwim-print
       -d <none> ( --dynamic-type <none> )
            Show the object as its full dynamic type, not its static
            type, if available.
            Values: no-dynamic-values | run-target | no-run-target
$ (lldb) help <dynamic-value-type>
error: '<dynamic-value-type>' is not a known command.
```

This is now fixed, as shown in the added test.

Assisted-by: Claude
DeltaFile
+69-0lldb/source/Interpreter/InterpreterOptions.td
+9-44lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp
+0-23lldb/source/Target/Target.cpp
+20-0lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h
+17-0lldb/test/API/commands/help/TestHelp.py
+0-2lldb/include/lldb/Target/Target.h
+115-691 files not shown
+116-697 files

LLVM/project 7ab39ea — llvm/lib/Analysis BasicAliasAnalysis.cpp

[BasicAA] Add fast path for constant-offset i8 GEPs (NFC) (#246754)

This patch adds a fast path for two-operand constant-offset i8 GEPs in
DecomposeGEPExpression.

Without this patch, we initialize a GEP type iterator and scale the
index by the element stride even for canonical i8 GEPs.  Note that
accumulateConstantOffset already uses a similar fast path.

This reduces CTMark geomean instruction counts by 0.13% at -O3 and
0.19% with ThinLTO.  Instruction counts on tramp3d-v4 drop by up to
0.60%.

Assisted-by: Antigravity
DeltaFile
+11-0llvm/lib/Analysis/BasicAliasAnalysis.cpp
+11-01 files

LLVM/project 7608659 — llvm/lib/Target/AMDGPU GCNSchedStrategy.h GCNSchedStrategy.cpp

[AMDGPU][NFC] Split the GCN tracker path out of getRegisterPressures

With the GCN trackers, getRegisterPressures encoded the banked ArchVGPR
and AGPR numbers into the VGPR_32 and AGPR_32 slots of the pressure-set
vector, so that initCandidate could read them back out. Those slots are
meant to hold generic RegPressureTracker results indexed by pressure set.

Keep getRegisterPressures for the generic tracker only, and add
getGCNTrackerPressure, which returns the GCN trackers' GCNRegPressure.
initCandidate now computes the SGPR, ArchVGPR and AGPR pressure directly
from that GCNRegPressure when the GCN trackers are in use, without going
through the pressure-set vector.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+75-82llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
+8-5llvm/lib/Target/AMDGPU/GCNSchedStrategy.h
+83-872 files

LLVM/project e9329e7 — llvm/lib/Support KnownFPClass.cpp, llvm/test/Transforms/InstCombine simplify-demanded-fpclass-fmul.ll

[KnownFPClass] Rule out subnormal fmul results for constant scale-ups (#246718)

A finite constant with magnitude at least 1 cannot turn a non-subnormal
input into a subnormal product. Teach `KnownFPClass::fmul` to use this
fact for constant multipliers.

I need this for a NVPTX optimization to prove it is safe to use a ftz
ex2 intrinsic call.
DeltaFile
+25-0llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-fmul.ll
+3-1llvm/lib/Support/KnownFPClass.cpp
+28-12 files

LLVM/project 9c9354d — lldb/include/lldb lldb-enumerations.h, lldb/include/lldb/Interpreter CommandOptionArgumentTable.h

[lldb] Declare darwin-log enable options in TableGen

The --filter option of `plugin structured-data darwin-log enable` took
eArgRawInput, which describes free-form text passed after ' -- ' and so
contradicts how the option works: each --filter takes one rule, which
must be quoted if it contains spaces, and the option may be repeated.

Add eArgTypeLogFilter for a single filter rule and declare the options
of the command in TableGen like the other commands. The multi-line
description of --filter relies on newlines being escaped correctly in
the generated code. eArgRawInput is kept: command help still points at
'help raw-input' to explain the raw-input convention.

The usage line now lists the options in def name order.

Assisted-by: Claude
DeltaFile
+5-98lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
+103-0lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLogOptions.td
+5-0lldb/source/Plugins/StructuredData/DarwinLog/CMakeLists.txt
+1-0lldb/include/lldb/lldb-enumerations.h
+1-0lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h
+115-985 files

LLVM/project 1344175 — lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime CMakeLists.txt AppleObjCRuntimeOptions.td

[lldb] Declare objc class-table dump options in TableGen (NFC)

Move the options of `language objc class-table dump` to a new
AppleObjCRuntimeOptions.td.

Assisted-by: Claude
DeltaFile
+4-12lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+7-0lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/CMakeLists.txt
+7-0lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeOptions.td
+18-123 files

LLVM/project fb5d6f8 — lldb/source/Target TargetOptions.td Platform.cpp

[lldb] Declare OptionGroupPlatformCaching options in TableGen (NFC)

Move the --local-cache-dir option of OptionGroupPlatformCaching to
TargetOptions.td.

Assisted-by: Claude
DeltaFile
+3-6lldb/source/Target/Platform.cpp
+7-0lldb/source/Target/TargetOptions.td
+10-62 files

LLVM/project 5486233 — lldb/source/Target TargetOptions.td Platform.cpp

[lldb] Declare OptionGroupPlatformSSH options in TableGen (NFC)

Move the options of OptionGroupPlatformSSH to TargetOptions.td.

Assisted-by: Claude
DeltaFile
+3-8lldb/source/Target/Platform.cpp
+8-0lldb/source/Target/TargetOptions.td
+11-82 files

LLVM/project 13d6955 — lldb/source/Target CMakeLists.txt TargetOptions.td

[lldb] Declare OptionGroupPlatformRSync options in TableGen (NFC)

Add TargetOptions.td for the options of the option groups in
lldbTarget and move the options of OptionGroupPlatformRSync there.

Assisted-by: Claude
DeltaFile
+4-15lldb/source/Target/Platform.cpp
+17-0lldb/source/Target/TargetOptions.td
+5-0lldb/source/Target/CMakeLists.txt
+26-153 files