LLVM/project 9acd08c — llvm/lib/Target/SPIRV SPIRVOptions.td SPIRVPrepareFunctions.cpp

[SPIRV] Declare -spirv-allow-unknown-intrinsics in TableGen (#243891)

Follow-up to #239474

Keep `-spv-allow-unknown-intrinsics` as an alias
DeltaFile
+7-13llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.cpp
+8-0llvm/lib/Target/SPIRV/SPIRVOptions.td
+15-132 files

LLVM/project dd96e2e — llvm/lib/Target/M68k/Disassembler M68kDisassembler.cpp

[M68k] Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC. (#245009)
DeltaFile
+1-1llvm/lib/Target/M68k/Disassembler/M68kDisassembler.cpp
+1-11 files

LLVM/project b244a75 — lldb/test/API/lang/cpp/dynamic-value-templates TestDynamicValueTemplates.py

[lldb][test] Require __clang_vtable for template dynamic value test (#245012)

The test fails if older versions of clang are used:
https://ci.swift.org/view/all/job/llvm.org/job/lldb-cmake-matrix/1076/
(https://github.com/llvm/llvm-project/pull/238970#issuecomment-7070949523).
Like the other template tests, this needs to require clang 24+. But it
should pass on Windows with the MS ABI.
DeltaFile
+5-0lldb/test/API/lang/cpp/dynamic-value-templates/TestDynamicValueTemplates.py
+5-01 files

LLVM/project 8f7eb6f — llvm/runtimes CMakeLists.txt

[runtimes] Make runtimes-test-depends depend on flang (#241544)

This patch adds runtimes-test-depends to add_flang_mod_deps so that
"ninja test-depends" in a fresh build directory waits for bin/flang
before building flang-rt-mod via fakeflang.

Note that #203481 and #235643 already added the same dependency for
check-flang-rt, check-openmp, and check-offload.

Assisted-by: Antigravity
DeltaFile
+5-3llvm/runtimes/CMakeLists.txt
+5-31 files

LLVM/project e9e7c93 — mlir/lib/Conversion/VectorToSCF VectorToSCF.cpp, mlir/test/Conversion/VectorToSCF vector-to-scf.mlir

[mlir][VectorToSCF] Clamp the create_mask bound in the scalable transposed write (#243714)

`ScalableTransposeTransferWriteConversion` lowers a masked write of a
transposed `vector<[N]xMxty>` to a loop over the scalable dim, and used
the first `vector.create_mask` operand as the loop bound. `create_mask`
clamps its operands to the vector size, so `vector.create_mask %c100,
%c4 : vector<[4]x4xi1>` is all-true, but the loop wrote 100 rows instead
of `4 * vscale`.

The loop bound is now `min(mask size, N * vscale)`.

Tested by `@scalable_transpose_store_dynamic_mask`. Also run on SVE
hardware (Graviton3, vscale = 2) with `create_mask %c100, %c4` into a
16-row memref: main writes 100 rows, this patch writes 8.

Part of #227821.

Assisted-by: Claude
DeltaFile
+8-3mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
+8-2mlir/test/Conversion/VectorToSCF/vector-to-scf.mlir
+16-52 files

LLVM/project faf2627 — mlir/docs SPIRVToLLVMDialectConversion.md, mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp

[mlir][SPIR-V] Add SPIRVToLLVM conversion for CompositeConstruct (#244369)

Lower structs and arrays to llvm.insertvalue chains and vectors to
llvm.insertelement chains, splitting vector constituents into elements
DeltaFile
+50-1mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+42-0mlir/test/Conversion/SPIRVToLLVM/misc-ops-to-llvm.mlir
+7-5mlir/docs/SPIRVToLLVMDialectConversion.md
+99-63 files

LLVM/project f05b113 — mlir/docs SPIRVToLLVMDialectConversion.md, mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp

[mlir][SPIR-V] Add SPIRVToLLVM conversions for spirv.Any and spirv.All (#244391)
DeltaFile
+22-0mlir/test/Conversion/SPIRVToLLVM/logical-ops-to-llvm.mlir
+7-0mlir/docs/SPIRVToLLVMDialectConversion.md
+2-0mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+31-03 files

LLVM/project 4158d13 — mlir/lib/Target/SPIRV/Deserialization Deserializer.cpp, mlir/test/Target/SPIRV spec-constant.mlir

[mlir][SPIR-V] Fix deserializer crash on spec composite constituents (#244375)

Accept nested OpSpecConstantComposite constituents and diagnose the ones
that have no symbol to reference
DeltaFile
+39-0mlir/unittests/Dialect/SPIRV/DeserializationTest.cpp
+17-3mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp
+6-0mlir/test/Target/SPIRV/spec-constant.mlir
+62-33 files

LLVM/project 5417db8 — llvm/lib/CodeGen/SelectionDAG LegalizeDAG.cpp DAGCombiner.cpp, llvm/test/CodeGen/Mips r6-fcmp-invert.ll

[SelectionDAG] Use the compare operand's boolean contents when inverting a SETCC (#244992)

When LegalizeDAG expands a SETCC by inverting its condition code, it
wraps the new SETCC in getLogicalNOT() using the result type. That
picks the true value from the integer boolean contents, but the SETCC
result follows the boolean contents of the compared operand type.

On MIPS R6 FP compares produce 0/-1 while integer booleans are 0/1.
Since #173541 SETUNE, SETONE, SETO and SETNE are expanded this way, so
the inverted mask was XORed with 1, giving 1/-2 instead of -1/0, and
later combines produced wrong values.

Build the NOT with getBoolConstant() using the operand type, as the
SELECT_CC fallback below already does. Also let extractBooleanFlip()
recognize such a NOT of a SETCC, so select (not setcc) keeps folding
to a select with swapped operands.

MIPS R6 is the only target where the integer and FP boolean contents
differ, so other targets are not affected.

    [3 lines not shown]
DeltaFile
+255-0llvm/test/CodeGen/Mips/r6-fcmp-invert.ll
+13-0llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+7-2llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+275-23 files

LLVM/project f1ac70f — compiler-rt/lib/ubsan ubsan_signals_standalone.cpp ubsan_flags.cpp, compiler-rt/test/ubsan lit.common.cfg.py

[ubsan] Initialize flags before installing deadly signal handlers (#244984)

When `SANITIZER_CAN_USE_PREINIT_ARRAY` is 0 or UBSan is linked as a
shared library, a `.preinit_array` function or DSO constructor calling
`sigaction()` can run `InitializeDeadlySignals()` before flags are
parsed, permanently skipping signal handlers requested via options.

Assisted-by: Gemini
DeltaFile
+44-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init-shared.cpp
+44-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+8-0compiler-rt/test/ubsan/lit.common.cfg.py
+5-0compiler-rt/lib/ubsan/ubsan_flags.cpp
+2-0compiler-rt/lib/ubsan/ubsan_signals_standalone.cpp
+103-05 files

LLVM/project db40cf4 — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN metadata.ll

[GVN] Merge metadata from values to load

A select from load con contain different metadata premise. Such
metadata might be incompatible and therefore be poisoned. Merge the
metadata and propogate to the previous load to eliminate this.

Asissted-by: Cluade # Test
DeltaFile
+180-0llvm/test/Transforms/GVN/metadata.ll
+3-0llvm/lib/Transforms/Scalar/GVN.cpp
+183-02 files

LLVM/project 652246c — compiler-rt/test/ubsan/TestCases/Misc/Posix sigaction-before-init.cpp sigaction-before-init-shared.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+27-5compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+27-5compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init-shared.cpp
+54-102 files

LLVM/project 18c8c25 — compiler-rt/test/ubsan lit.common.cfg.py, compiler-rt/test/ubsan/TestCases/Misc/Posix sigaction-before-init.cpp sigaction-before-init-shared.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+22-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init-shared.cpp
+8-0compiler-rt/test/ubsan/lit.common.cfg.py
+0-2compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+30-23 files

LLVM/project 07fbbfd — compiler-rt/test/ubsan/TestCases/Misc/Posix sigaction-before-init.cpp sigaction-before-init-shared.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+0-22compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init-shared.cpp
+2-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+2-222 files

LLVM/project 3dad180 — compiler-rt/test/ubsan/TestCases/Misc/Posix sigaction-before-init.cpp sigaction-before-init-shared.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+22-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init-shared.cpp
+1-1compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+23-12 files

LLVM/project 25d5572 — compiler-rt/test/ubsan/TestCases/Misc/Posix sigaction-before-init.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+22-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+22-01 files

LLVM/project bb55066 — llvm/lib/Target/X86 X86IntrinsicsInfo.h, llvm/test/CodeGen/X86 avx10_2_512satcvtds-intrinsics.ll

[X86][AVX10.2] Use INTR_TYPE_1OP_MASK_SAE for 512-bit VCVTTP.*QS intrinsics (#244127)

They are SAE instructions like VCVTTP.*Q.

Assisted-by: Claude Opus 5.5
DeltaFile
+289-0llvm/test/CodeGen/X86/avx10_2_512satcvtds-intrinsics.ll
+16-12llvm/lib/Target/X86/X86IntrinsicsInfo.h
+305-122 files

LLVM/project b80bed2 — llvm/lib/Transforms/IPO Attributor.cpp, llvm/test/Transforms/OpenMP no-change-preserve-analyses.ll

Attributor: Don't report a change when no functions are internalized

internalizeFunctions returned true for an empty set, so this reported
a change for every module and invalidated all function analyses even
when it did nothing.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+21-0llvm/test/Transforms/OpenMP/no-change-preserve-analyses.ll
+3-0llvm/lib/Transforms/IPO/Attributor.cpp
+24-02 files

LLVM/project da161a8 — llvm/lib/Transforms/Utils CallGraphUpdater.cpp, llvm/test/Transforms/OpenMP preserve-function-analyses.ll

fixup! OpenMPOpt: Invalidate function analyses individually

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+7-1llvm/test/Transforms/OpenMP/preserve-function-analyses.ll
+3-0llvm/lib/Transforms/Utils/CallGraphUpdater.cpp
+10-12 files

LLVM/project d527f06 — llvm/include/llvm/Transforms/IPO Attributor.h, llvm/include/llvm/Transforms/Utils CallGraphUpdater.h

OpenMPOpt: Invalidate function analyses individually

Avoid discarding analyses that never need to be invalidated, such as
TargetLibraryInfo.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+43-0llvm/test/Transforms/OpenMP/preserve-function-analyses.ll
+18-3llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+7-6llvm/include/llvm/Transforms/IPO/Attributor.h
+2-0llvm/include/llvm/Transforms/Utils/CallGraphUpdater.h
+70-94 files

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

Attributor: Decide which instructions access memory in the opcode switch (#241115)

initializeInformationCache already switches over the opcode of every
instruction, and then called mayReadOrWriteMemory out of line for each
one. Decide in the switch instead, where only calls need to check their
memory effects.

Instruction counts (callgrind) with other pending attributor-light
changes applied: attributor-light sqlite3 -0.79%, kimwitu++ k -0.32%,
SPASS cnf -0.31%, consumer-typeset z08 -8.59%; the full attributor
-0.02% to -0.08%.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+22-7llvm/lib/Transforms/IPO/Attributor.cpp
+22-71 files

LLVM/project 1779f11 — llvm/lib/Transforms/IPO ExpandVariadics.cpp, llvm/test/Transforms/ExpandVariadics no-callers-report-change.ll

ExpandVariadics: Report a change when rewriting a function without calls

This only reported a change if it rewrote a call, but it always
rewrites the function itself. In lowering mode a variadic function
without callers was changed without being reported.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+17-0llvm/test/Transforms/ExpandVariadics/no-callers-report-change.ll
+4-7llvm/lib/Transforms/IPO/ExpandVariadics.cpp
+21-72 files

LLVM/project 9720628 — llvm/lib/Transforms/Instrumentation PGOForceFunctionAttrs.cpp, llvm/test/Instrumentation/PGOForceFunctionAttrs preserve-function-analyses.ll

PGOForceFunctionAttrs: Only clear analyses of changed functions

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+26-0llvm/test/Instrumentation/PGOForceFunctionAttrs/preserve-function-analyses.ll
+10-1llvm/lib/Transforms/Instrumentation/PGOForceFunctionAttrs.cpp
+36-12 files

LLVM/project 6d49ca2 — compiler-rt/lib/ubsan ubsan_signals_standalone.cpp ubsan_flags.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+5-0compiler-rt/lib/ubsan/ubsan_flags.cpp
+2-0compiler-rt/lib/ubsan/ubsan_signals_standalone.cpp
+7-02 files

LLVM/project 7ef5d3e — llvm/lib/Target/X86/AsmParser X86AsmParser.cpp, llvm/test/MC/X86 intel-syntax-scale-register-parentheses-error.s intel-syntax-scale-register-parentheses.s

[X86][MC] Fold parenthesized register scale expressions (#237899)

Fix incorrect scales in Intel memory operands such as `rbx*(1+1)` and
`rbx*(4/2)`, which currently use scales 1 and 8 instead of 2.

Evaluate parenthesized constants with the existing intel expression
parser, preserving named operators. Validate the full-width scale and
diagnose division/modulo by zero, signed division overflow, and invalid
shift counts.

Validation:

- 713 selected X86 MC and llvm-ml tests passed with assertions enabled.
- 537 supplementary local checks passed across 16/32/64-bit modes.

Partially addresses #150427. Expressions such as `(rax+1)*2` remain
outside this change.
DeltaFile
+83-35llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+24-0llvm/test/MC/X86/intel-syntax-scale-register-parentheses.s
+21-0llvm/test/MC/X86/intel-syntax-scale-register-parentheses-error.s
+128-353 files

LLVM/project bb91f24 — llvm/lib/Target/X86 X86InstrInfo.cpp X86InstrAVX512.td, llvm/test/CodeGen/X86 avx512-mask-spills.ll

[X86] Fix spill folding of zero-extending mask moves (#240833)

`KMOVBkk`, `KMOVDkk` and, with BWI, `KMOVWkk` zero the mask bits above
their width, but `X86InstrInfo::isCopyInstrImpl` reports them as copies.
Since 4d42e8b5 (D150388), spill folding then replaces such a move with a
spill of its source, so the zero extension is lost (#240463).

Spill folding is correct for real copies, so this patch stops treating
these moves as copies: `KMOVBkk`, `KMOVDkk` and their `_EVEX` forms are
no longer marked `isMoveReg`, and `isCopyInstrImpl` excludes `KMOVWkk`
when BWI is available. Without BWI, `KMOVWkk` moves the whole mask
register and stays a copy.

Fixes #240463

Assisted-by: Claude Opus 5.5
DeltaFile
+69-0llvm/test/CodeGen/X86/avx512-mask-spills.ll
+8-6llvm/lib/Target/X86/X86InstrAVX512.td
+6-0llvm/lib/Target/X86/X86InstrInfo.cpp
+83-63 files

LLVM/project 24c4b81 — clang/lib/Sema SemaExprMember.cpp, clang/test/Sema ext_vector_components.c

[Clang] Fix qualifiers of ext vector components accessed via `->`

For `p->x` where `p` points to an `ext_vector_type` vector, Sema takes the
qualifiers from the type of `p`, which is the pointer itself, instead of the
vector it points to. As a result, `p->x = 1` is accepted even if `p` points to a
`const` vector, while `(*p).x = 1` is rejected. An address space on the vector
is lost in the same way.

This PR takes the qualifiers from the vector for both `.` and `->`. A swizzle
that repeats a component, e.g. `v.xx`, is a computed value, so it doesn't get
any qualifiers.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+18-0clang/test/SemaCXX/ext-vector-component-qualifiers.cpp
+7-0clang/test/Sema/ext_vector_components.c
+3-3clang/lib/Sema/SemaExprMember.cpp
+28-33 files

LLVM/project e6e21ab — llvm/include/llvm/Analysis MustExecute.h InstructionPrecedenceTracking.h, llvm/lib/Analysis MustExecute.cpp InstructionPrecedenceTracking.cpp

fixup! [LICM] Refresh cache for load update
DeltaFile
+16-9llvm/lib/Analysis/InstructionPrecedenceTracking.cpp
+7-4llvm/include/llvm/Analysis/InstructionPrecedenceTracking.h
+0-5llvm/lib/Analysis/MustExecute.cpp
+0-4llvm/lib/Transforms/Scalar/LICM.cpp
+0-2llvm/include/llvm/Analysis/MustExecute.h
+23-245 files

LLVM/project 334f68c — flang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Lower/OpenMP distribute-parallel-do.f90 distribute-parallel-do-simd.f90

[flang][OpenMP] Evaluate composite DISTRIBUTE clauses outside PARALLEL

In composite DISTRIBUTE PARALLEL DO [SIMD], omp.distribute is nested
inside omp.parallel, and the DISTRIBUTE clauses were evaluated after
omp.parallel was created. A DECLARE VARIANT call in the DIST_SCHEDULE
chunk-size expression therefore matched construct={parallel}, although
DISTRIBUTE encloses PARALLEL in the source, and every thread evaluated
the expression.

Evaluate the DISTRIBUTE clauses before creating omp.parallel, as for the
explicit nesting, and destroy their temporaries once, after omp.parallel.

Fixes #244760

Assisted-by: GitHub Copilot
Co-authored-by: Copilot <223556219+Copilot at users.noreply.github.com>
DeltaFile
+44-0flang/test/Lower/OpenMP/declare-variant-construct.f90
+12-8flang/lib/Lower/OpenMP/OpenMP.cpp
+6-4flang/test/Lower/OpenMP/distribute-parallel-do.f90
+6-4flang/test/Lower/OpenMP/distribute-parallel-do-simd.f90
+68-164 files

LLVM/project 7287b4a — clang/lib/CIR/Dialect/Transforms CallConvLoweringPass.cpp, clang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.h CIRABIRewriteContext.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+29-26clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.h
+42-13clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+21-1clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+92-403 files