LLVM/project 20498c8llvm/test lit.cfg.py, llvm/test/ExecutionEngine/Orc throw-catch-no-frame-pointer.ll throw-catch-minimal.ll

[ORC] Add host-jit-triple lit feature, gate some JIT tests (#220929)

The JIT does not support throwing exceptions on Darwin/arm64e yet. Add
an llvm-lit feature flag, "host-jit-triple", that reports the process
triple as detected by `lli` so that we can mark exception-throwing tests
as unsupported when they would be run as arm64e. (Feature flags based on
build settings, e.g. host-triple and target-triple, don't reliably
report arm64e).

Adds a -host-jit-triple option to lli to print the value for the
feature-flag.

rdar://185482009
DeltaFile
+19-0llvm/test/lit.cfg.py
+10-0llvm/tools/lli/lli.cpp
+4-0llvm/test/ExecutionEngine/OrcLazy/minimal-throw-catch.ll
+4-0llvm/test/ExecutionEngine/Orc/throw-catch-no-frame-pointer.ll
+4-0llvm/test/ExecutionEngine/Orc/throw-catch-minimal.ll
+4-0llvm/test/ExecutionEngine/Orc/throw-catch-merged-compact-unwind.ll
+45-01 files not shown
+48-07 files

LLVM/project ae856abclang/test/CIR/CodeGenCoroutines coro-alloc.cpp, llvm/test/Transforms/LowerTypeTests cfi-jumptable-hotness-summary.ll

rebase

Created using spr 1.3.7
DeltaFile
+0-133orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp
+128-0llvm/unittests/ABI/TypesTest.cpp
+60-41mlir/lib/Dialect/OpenACC/IR/OpenACCCG.cpp
+41-41mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
+80-0clang/test/CIR/CodeGenCoroutines/coro-alloc.cpp
+35-36llvm/test/Transforms/LowerTypeTests/cfi-jumptable-hotness-summary.ll
+344-25158 files not shown
+1,191-56264 files

LLVM/project 2f222c4clang/test/CIR/CodeGenCoroutines coro-alloc.cpp, flang/test/Semantics bug82684.f90

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+0-133orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp
+128-0llvm/unittests/ABI/TypesTest.cpp
+60-41mlir/lib/Dialect/OpenACC/IR/OpenACCCG.cpp
+41-41mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
+80-0clang/test/CIR/CodeGenCoroutines/coro-alloc.cpp
+65-0flang/test/Semantics/bug82684.f90
+374-21558 files not shown
+1,183-55464 files

LLVM/project caa05fcclang/test/CIR/CodeGenCoroutines coro-alloc.cpp, flang/test/Semantics bug82684.f90

rebase

Created using spr 1.3.7
DeltaFile
+0-133orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp
+128-0llvm/unittests/ABI/TypesTest.cpp
+60-41mlir/lib/Dialect/OpenACC/IR/OpenACCCG.cpp
+41-41mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
+80-0clang/test/CIR/CodeGenCoroutines/coro-alloc.cpp
+65-0flang/test/Semantics/bug82684.f90
+374-21558 files not shown
+1,183-55464 files

LLVM/project 68a336eclang/test/CIR/CodeGenCoroutines coro-alloc.cpp, flang/test/Semantics bug82684.f90

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+0-133orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp
+128-0llvm/unittests/ABI/TypesTest.cpp
+60-41mlir/lib/Dialect/OpenACC/IR/OpenACCCG.cpp
+41-41mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
+80-0clang/test/CIR/CodeGenCoroutines/coro-alloc.cpp
+65-0flang/test/Semantics/bug82684.f90
+374-21556 files not shown
+1,154-49262 files

LLVM/project 3e88328clang/test/CIR/CodeGenCoroutines coro-alloc.cpp, flang/test/Semantics bug82684.f90

rebase

Created using spr 1.3.7
DeltaFile
+0-133orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp
+128-0llvm/unittests/ABI/TypesTest.cpp
+60-41mlir/lib/Dialect/OpenACC/IR/OpenACCCG.cpp
+41-41mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
+80-0clang/test/CIR/CodeGenCoroutines/coro-alloc.cpp
+65-0flang/test/Semantics/bug82684.f90
+374-21556 files not shown
+1,154-49262 files

LLVM/project 7e9d354clang/test/CIR/CodeGenCoroutines coro-alloc.cpp, flang/test/Semantics bug82684.f90

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+0-133orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp
+128-0llvm/unittests/ABI/TypesTest.cpp
+60-41mlir/lib/Dialect/OpenACC/IR/OpenACCCG.cpp
+41-41mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
+80-0clang/test/CIR/CodeGenCoroutines/coro-alloc.cpp
+65-0flang/test/Semantics/bug82684.f90
+374-21556 files not shown
+1,154-49262 files

LLVM/project f111407llvm/include/llvm/SandboxIR Context.h, llvm/lib/SandboxIR Context.cpp

Revert "Reapply "[SandboxIR] Callback registration now allows specifying order (#221008)" (#221095)

Reverts llvm/llvm-project#221017

unittest failure
DeltaFile
+0-96llvm/unittests/SandboxIR/SandboxIRTest.cpp
+16-57llvm/include/llvm/SandboxIR/Context.h
+39-33llvm/lib/SandboxIR/Context.cpp
+55-1863 files

LLVM/project 5498c18clang/lib/CIR/CodeGen CIRGenBuilder.cpp, clang/test/CIR/CodeGen global-replace-record-array.c

[CIR] Fix a problem with global view index calculation (#221066)

When a global that was declared with an incomplete array type is
replaced by a global with the completed type, the byte offset of each
global view on the old global is recomputed from its indices, and new
indices are derived from that offset. The offset computation rounded its
running total up to the ABI alignment of the record being indexed, which
incorrectly assumes that every member starts at a multiple of its
enclosing record's alignment. That does not hold for a member followed
by padding, so the offset came out too large. The recomputed view then
designated the wrong address or, when the inflated offset no longer
landed on a subelement boundary, fell back to a global offset attribute
holding the wrong offset.

Assisted-by: Cursor / claude-opus-5
DeltaFile
+32-0clang/test/CIR/CodeGen/global-replace-record-array.c
+0-3clang/lib/CIR/CodeGen/CIRGenBuilder.cpp
+32-32 files

LLVM/project 49c9f55clang/lib/Driver/ToolChains Flang.cpp, flang/docs Extensions.md

[flang] Warn rather than error on out-of-range constant subscripts (#220435)

A reference with an out-of-range constant subscript is now accepted with
a
warning instead of being rejected with an error, and
`-fno-out-of-bounds-subscripts`
restores the error.

A subscript value is required to be within its bounds only when the
reference is
executed (F'2023 9.5.3.1 paragraph 2), so a reference that never runs
does not
render a program nonconforming. Whether a reference is ever executed
cannot be
determined in general -- consider a procedure whose only call site is in
dead
code, or one that is never called at all -- so rejecting these outright
turns
away conforming programs. Semantics already recognized the narrow case

    [108 lines not shown]
DeltaFile
+65-0flang/test/Semantics/bug82684.f90
+30-5flang/lib/Semantics/expression.cpp
+22-0flang/test/Driver/fout-of-bounds-subscripts.f90
+12-9flang/test/Semantics/bug171844.f90
+14-6clang/lib/Driver/ToolChains/Flang.cpp
+20-0flang/docs/Extensions.md
+163-206 files not shown
+189-2212 files

LLVM/project 30c695dclang/lib/CIR/CodeGen CIRGenCoroutine.cpp, clang/test/CIR/CodeGenCoroutines coro-alloc.cpp

[CIR] Add support for coroutine allocation failure (#220466)

This PR adds support for the coroutine promise member function
`get_return_object_on_allocation_failure()`.

When a coroutine fails to allocate its frame, the default behavior is to
throw `std::bad_alloc`. If the promise type defines
`get_return_object_on_allocation_failure()`, the coroutine uses the
nothrow form of `operator new`. If the allocation returns `nullptr`,
`get_return_object_on_allocation_failure()` is called and its return
value is returned to the caller instead of throwing.

One difference from OG is that we reverse the allocation condition. OG
checks whether the allocation was successful and branches to the
initialization path when the allocation succeeds. CIR checks whether the
allocated pointer is `nullptr` and handles the allocation failure case
inside a `cir.if`.
DeltaFile
+80-0clang/test/CIR/CodeGenCoroutines/coro-alloc.cpp
+19-6clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
+99-62 files

LLVM/project 256e742clang/lib/CodeGen QualTypeMapper.cpp, clang/test/CodeGen/X86 x86_64-empty-cxx-member-abi.cpp

[LLVMABI] Align RecordType::isEmpty() with Clang's isEmptyRecord() (#218546)

[LLVMABI] Align RecordType::isEmpty() with Clang's isEmptyRecord()

While working on empty record handling for AArch64, I stumbled across a
couple of differences between the LLVM ABI library's
`RecordType::isEmpty()` and Clang's `CodeGen::isEmptyRecord()`. Testing
verified this led to observable differences in classification when using
the ABI library.

This change updates the ABI library's empty record handling to match
Clang.

Assisted-by: Cursor / various models
DeltaFile
+128-0llvm/unittests/ABI/TypesTest.cpp
+25-11llvm/lib/ABI/Types.cpp
+35-0clang/test/CodeGen/X86/x86_64-empty-cxx-member-abi.cpp
+7-6llvm/include/llvm/ABI/Types.h
+2-3clang/lib/CodeGen/QualTypeMapper.cpp
+1-0llvm/utils/gn/secondary/llvm/unittests/ABI/BUILD.gn
+198-201 files not shown
+199-207 files

LLVM/project adf79c9llvm/include/llvm/SandboxIR Context.h, llvm/lib/SandboxIR Context.cpp

Reapply "[SandboxIR] Callback registration now allows specifying order (#221008) (#221017)

This reverts commit 89082772bed1ed16c0311b12147a96c35bb063d8.
And includes the fix.
DeltaFile
+96-0llvm/unittests/SandboxIR/SandboxIRTest.cpp
+57-16llvm/include/llvm/SandboxIR/Context.h
+33-39llvm/lib/SandboxIR/Context.cpp
+186-553 files

LLVM/project 2a7e471llvm/test/Transforms/LowerTypeTests pr37625.ll export-symver.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+16-18llvm/test/Transforms/LowerTypeTests/cfi-icall-alias.ll
+3-7llvm/test/Transforms/LowerTypeTests/export-inline.ll
+3-7llvm/test/Transforms/LowerTypeTests/export-cross-dso-cfi.ll
+2-6llvm/test/Transforms/LowerTypeTests/pr37625.ll
+2-6llvm/test/Transforms/LowerTypeTests/export-symver.ll
+2-6llvm/test/Transforms/LowerTypeTests/export-rename-local.ll
+28-507 files not shown
+38-8813 files

LLVM/project 6a20989orc-rt/include/orc-rt-internal/bedrock/sys PageSize.h, orc-rt/lib/bedrock ExecutorProcessInfo.cpp

[orc-rt] Make ExecutorProcessInfo platform-generic (#220938)

ExecutorProcessInfo was part generic, part system-specific: some of its
methods were implemented directly in its own .cpp, others only existed
as out-of-line definitions in per-OS files under lib/bedrock/sys/.

Move the system-specific pieces into free functions under orc_rt::sys
(mirroring the existing support/sys/ convention), and have
ExecutorProcessInfo consume them like any other client. The class itself
is now fully generic, with no system-specific code of its own.

No functional change, except that page-size detection (previously
hardcoded to POSIX sysconf) now goes through the same per-OS split as
the rest of ExecutorProcessInfo; a Windows implementation is left for a
follow-up.
DeltaFile
+0-133orc-rt/test/unit/bedrock/ExecutorProcessInfoTest.cpp
+12-52orc-rt/lib/bedrock/ExecutorProcessInfo.cpp
+34-26orc-rt/lib/bedrock/sys/darwin/CPUFeatures.cpp
+58-0orc-rt/test/unit/bedrock/sys/TargetTripleTest.cpp
+38-0orc-rt/lib/bedrock/sys/posix/PageSize.cpp
+29-0orc-rt/include/orc-rt-internal/bedrock/sys/PageSize.h
+171-21113 files not shown
+289-26719 files

LLVM/project fefa6aelldb/test lldbflakes.py, lldb/test/API lit.cfg.py lldbtest.py

[lldb][test] Rerun tests that hit a known flaky failure (#221006)

macOS 26.3 denies debugserver permission to attach when too many debug
sessions start at once, which surfaces as a test failing with "process
exited with status -1". The denial is intermittent and a rerun normally
gets through.

Gate the rerun on a list of known flake signatures rather than retrying
every failure, because a blanket retry masks real bugs. Adding to that
list is a last resort for defects outside LLDB's control.
DeltaFile
+40-0lldb/test/lldbflakes.py
+7-0lldb/test/API/lldbtest.py
+5-1lldb/test/Shell/helper/toolchain.py
+1-0lldb/test/Shell/lit.cfg.py
+1-0lldb/test/API/lit.cfg.py
+54-15 files

LLVM/project c71cf14mlir/lib/Interfaces/Utils InferIntRangeCommon.cpp

[MLIR] Move inferred remainder bounds into results (NFC) (#221081)

Move locally computed signed and unsigned remainder bounds into their
final range accumulators when the special-case bounds are selected.

Found by Coverity.

Assisted-by: Codex
DeltaFile
+4-4mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp
+4-41 files

LLVM/project b43d3c3llvm/lib/Target/AMDGPU AMDGPUPromoteAlloca.cpp, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-promote.ll

Carry null operands and intrinsic names across when promoting to VGPRs
DeltaFile
+145-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-promote.ll
+42-2llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
+187-22 files

LLVM/project e99e97dllvm/lib/Target/AMDGPU AMDGPUPromoteAlloca.cpp, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-promote.ll

Count the intrinsics that really become calls when refusing promotion
DeltaFile
+81-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-promote.ll
+30-9llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
+111-92 files

LLVM/project ae36e10llvm/lib/Target/AMDGPU AMDGPUPrivateObjectVGPRs.cpp, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-private-object-vgprs.mir

Propagate object liveness to every changed successor, not only back edges
DeltaFile
+56-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-private-object-vgprs.mir
+14-4llvm/lib/Target/AMDGPU/AMDGPUPrivateObjectVGPRs.cpp
+70-42 files

LLVM/project 9f90875llvm/lib/Target/AMDGPU AMDGPUMemoryUtils.cpp AMDGPUMemoryUtils.h, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-promote.ll

Promote private objects into the VGPR address space via flag
DeltaFile
+279-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-promote.ll
+138-3llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
+1-35llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+23-1llvm/lib/Target/AMDGPU/AMDGPUMemoryUtils.h
+19-0llvm/lib/Target/AMDGPU/AMDGPUMemoryUtils.cpp
+460-395 files

LLVM/project 8bd7ecdllvm/lib/Target/AMDGPU AMDGPUPromoteAlloca.cpp, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-promote.ll

Refuse promotion only when the object is live across a call
DeltaFile
+183-4llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-promote.ll
+117-15llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
+300-192 files

LLVM/project ba81031llvm/lib/Target/AMDGPU SIISelLowering.cpp, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-divergent.ll

Treat a sub-dword VGPR-memory load as divergent too
DeltaFile
+83-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-divergent.ll
+3-1llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+86-12 files

LLVM/project c5475c1llvm/lib/Target/AMDGPU AMDGPUPromoteAlloca.cpp, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-budget.ll

Diagnose an object that does not fit the function's register budget
DeltaFile
+82-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-budget.ll
+36-13llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
+118-132 files

LLVM/project 0e7882ellvm/lib/Target/AMDGPU AMDGPUPromoteAlloca.cpp, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-allocate.ll as-vgpr-across-call.ll

Do not add a second lifetime start when allocating VGPRs again
DeltaFile
+21-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-across-call.ll
+17-3llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
+0-1llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-allocate.ll
+38-43 files

LLVM/project 9044d4bllvm/unittests/Target/AMDGPU VGPRAsMemory.cpp

Pin the width guard that keeps sub-dword accesses out of aliasing decisions
DeltaFile
+66-0llvm/unittests/Target/AMDGPU/VGPRAsMemory.cpp
+66-01 files

LLVM/project 019fe44llvm/lib/Target/AMDGPU AMDGPUPromoteAlloca.cpp AMDGPUPrivateObjectVGPRs.cpp, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-across-call.ll as-vgpr-private-object-vgprs.mir

Allocate and reserve registers for address space 13 objects
DeltaFile
+340-0llvm/lib/Target/AMDGPU/AMDGPUPrivateObjectVGPRs.cpp
+178-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-object-regalloc.ll
+140-12llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
+133-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-allocate.ll
+106-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-private-object-vgprs.mir
+80-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-across-call.ll
+977-1218 files not shown
+1,280-2324 files

LLVM/project 5f012fbllvm/lib/Target/AMDGPU AMDGPUPrivateObjectVGPRs.cpp, llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-asm-clobber.ll

Diagnose inline asm that clobbers a VGPR-memory object's registers
DeltaFile
+93-0llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-asm-clobber.ll
+31-5llvm/lib/Target/AMDGPU/AMDGPUPrivateObjectVGPRs.cpp
+124-52 files

LLVM/project cb5850dllvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-bits-encoding.ll as-vgpr-bits.ll

Regenerate the sub-dword expectations for the M0 setup change
DeltaFile
+38-54llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-bits-control-flow.ll
+30-49llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-bits.ll
+1-1llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-bits-encoding.ll
+69-1043 files

LLVM/project 6ec5118llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR as-vgpr-index-demanded-bits.ll

Regenerate the demanded-bits expectations for the gfx1250 entry sequence
DeltaFile
+24-16llvm/test/CodeGen/AMDGPU/AddressSpaceVGPR/as-vgpr-index-demanded-bits.ll
+24-161 files