LLVM/project 2ce7bf7 — libcxx/include/__memory allocator.h shared_ptr.h, libcxx/include/__new new_at_least.h

[libc++] Fix cfi-unrelated-cast failures in allocator, __new_at_least, and shared_ptr

Fix three `cfi-unrelated-cast` failures in libc++ headers discovered while bringing up a CFI CI job (https://github.com/llvm/llvm-project/issues/245696):

- Annotate `__operator_new_wrapper` in `__memory/allocator.h` with `_LIBCPP_NO_SANITIZE("cfi-unrelated-cast")`. Commit edad54e08d3b (https://github.com/llvm/llvm-project/pull/229771) replaced `__libcpp_allocate` (which had `_LIBCPP_NO_CFI`) with `__operator_new_wrapper`, so Clang's `matchesStlAllocatorFn` exemption no longer applies to its `static_cast<_Tp*>` on uninitialized memory.
- Annotate `__new_at_least<_Tp>` in `__new/new_at_least.h` with `_LIBCPP_NO_SANITIZE("cfi-unrelated-cast")`. Commit f59521e7ec81 (https://github.com/llvm/llvm-project/pull/215813) introduced a `static_cast<_Tp*>` on freshly allocated `void*` memory that breaks polymorphic `std::vector` allocations across standard modes.
- Construct `_ControlBlock` directly with placement `::new (static_cast<void*>(...))` in `__allocate_shared_unbounded_array` (`__memory/shared_ptr.h`), matching `__allocate_shared_impl`, instead of casting uninitialized storage to polymorphic `_ControlBlock*` before construction. (Bounded arrays already allocate `_ControlBlock` directly and do not trigger a cast check.)

Assisted-by: Gemini
DeltaFile
+2-2libcxx/include/__memory/shared_ptr.h
+2-1libcxx/include/__new/new_at_least.h
+1-1libcxx/include/__memory/allocator.h
+5-43 files

LLVM/project f305807 — llvm/lib/Target/RISCV RISCVExpandPseudoAtomics.cpp, llvm/test/CodeGen/RISCV atomic-masked-merge-zero.ll atomic-cmpxchg-branch-on-result.ll

Revert "[RISCV] Remove unnecessary 'and' from masked cmpxchg loop." (#248244)

Need to fix failing GlobalISel tests.

Reverts llvm/llvm-project#246502
DeltaFile
+384-256llvm/test/CodeGen/RISCV/atomic-cmpxchg.ll
+384-256llvm/test/CodeGen/RISCV/GlobalISel/atomic-cmpxchg.ll
+48-32llvm/test/CodeGen/RISCV/atomic-signext.ll
+24-16llvm/test/CodeGen/RISCV/atomic-cmpxchg-branch-on-result.ll
+11-10llvm/lib/Target/RISCV/RISCVExpandPseudoAtomics.cpp
+6-6llvm/test/CodeGen/RISCV/atomic-masked-merge-zero.ll
+857-5761 files not shown
+860-5787 files

LLVM/project a2ab8a2 — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN cond_br.ll

[GVN] Process Foldable Terminator beforehead

GVN generates phi node to replace a load call. However, addDeadBlock
modify such phi so that any deadblock sucessor in a phi becomes
poison.

This causes disagreement on SSAUpdater as [%a, %b1] [poison, %b2] is
considered as different with [%a, %b1] [0, %b2] even if poison is
replace with 0.

As a result, we make processFoldableTerminator (which is the only
caller of addDeadBlock now) runs before processInstruction. This is
before what we have on phi node generation so that non of the mismatch
happens.

Asissted-by: Claude # Test
DeltaFile
+2-4llvm/test/Transforms/GVN/cond_br.ll
+5-0llvm/lib/Transforms/Scalar/GVN.cpp
+7-42 files

LLVM/project eb3ea5e — llvm/test/Transforms/GVN cond_br.ll

[GVN][NFC] Add test for constant switch inside a loop

Assisted-by: Claude # Test
DeltaFile
+52-0llvm/test/Transforms/GVN/cond_br.ll
+52-01 files

LLVM/project 44dab14 — libcxx/include list deque, libcxx/include/__iterator repeat_iterator.h

Revert "[libc++] Add __repeat_iterator and use it in the sequence containers (#240378)" (#248213)

This reverts commit 484552add0fb92195f2e3f70734adf4a57f8ebc0.

This breaks std::vector::insert(const_iterator, size_type, const_reference)
in C++23 (-std=c++23 -stdlib=libc++), leaving newly inserted elements appended
at the end of the vector instead of at pos when n > (end - pos) and
n <= __remaining_capacity(), which is actively breaking builds in our CI.

See https://github.com/llvm/llvm-project/pull/240378#issuecomment-7322947076
for the minimal C++23 reproducer and root-cause analysis:
1. __repeat_iterator lacks a default constructor, so it does not model
   std::forward_iterator in C++20/23 (and lacks relational operators for
   std::random_access_iterator).
2. In vector::__insert_with_size, the C++23 !forward_iterator path calls
   std::rotate(__p, __old_last, __end) with a stale cached __end (== __old_last)
   instead of __layout_.__end_ptr() (a latent regression from bd338806e423 /
   #155330, which already has an open fix in #229763).

Verified that this clean revert builds libc++/libc++abi/libunwind and makes the
minimal C++23 reproducer pass (Result (5): 1 9 9 9 2).
DeltaFile
+171-5libcxx/include/deque
+0-123libcxx/include/__iterator/repeat_iterator.h
+67-15libcxx/include/__vector/vector.h
+31-4libcxx/include/list
+0-13libcxx/test/std/containers/sequences/vector/vector.modifiers/insert_iter_size_value.pass.cpp
+0-12libcxx/test/std/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp
+269-1723 files not shown
+281-1749 files

LLVM/project 897e32b — llvm/lib/Analysis/models regalloc-eviction-test-model.inc inline-oz-test-model.inc, llvm/unittests/Analysis MLGOUtilsTest.cpp

[mlir][EmitC][MLGO] Emit reflectionSizeMap in mlgo-add-reflection-map (#242627)

Let callers check the byte size of a field before writing through
reflectionMap

User: In MLGO input shapes became runtime options since #224598, so a
compiled field can be smaller than the tensor, this PR is a prerequisite
for #242629
DeltaFile
+81-43llvm/lib/Analysis/models/inline-oz-test-model.inc
+32-25mlir/lib/Dialect/EmitC/Transforms/MLGOAddReflectionMap.cpp
+20-16mlir/test/Dialect/EmitC/mlgo-add-reflection-map.mlir
+7-5mlir/test/Target/Cpp/mlgo-add-reflection-map.mlir
+6-4llvm/unittests/Analysis/MLGOUtilsTest.cpp
+5-4llvm/lib/Analysis/models/regalloc-eviction-test-model.inc
+151-973 files not shown
+159-1039 files

LLVM/project 038a971 — llvm/lib/Target/SPIRV SPIRVIRMapping.h SPIRVGlobalRegistry.cpp, llvm/test/CodeGen/SPIRV/GlobalISel mir-roundtrip-type-keys.ll

[SPIR-V] Restore image, sampler, event and queue types from MIR (#247729)

Without them, -start-after crashes when instruction selection looks up
these types

Signed images are recovered from their OpName
DeltaFile
+70-12llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
+50-1llvm/test/CodeGen/SPIRV/GlobalISel/mir-roundtrip-type-keys.ll
+9-3llvm/lib/Target/SPIRV/SPIRVIRMapping.h
+129-163 files

LLVM/project d62c1d5 — libcxx/test/std/language.support/support.limits/support.limits.general variant.version.compile.pass.cpp tuple.version.compile.pass.cpp, libcxx/utils generate_feature_test_macro_components.py

[libc++] Added FTMs from Búzios 202611 (#246833)

# References
- https://wg21.link/version.syn
DeltaFile
+194-0libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
+74-0libcxx/test/std/language.support/support.limits/support.limits.general/ranges.version.compile.pass.cpp
+44-3libcxx/utils/generate_feature_test_macro_components.py
+46-0libcxx/test/std/language.support/support.limits/support.limits.general/variant.version.compile.pass.cpp
+46-0libcxx/test/std/language.support/support.limits/support.limits.general/tuple.version.compile.pass.cpp
+46-0libcxx/test/std/language.support/support.limits/support.limits.general/string_view.version.compile.pass.cpp
+450-35 files not shown
+595-311 files

LLVM/project 0e64d01 — clang/include/clang/StaticAnalyzer/Core CheckerManager.h, clang/lib/StaticAnalyzer/Core CheckerManager.cpp

[analyzer][NFC] Out-line CheckerManager::CheckerTags accessors (#248205)

- `CheckerManager::getChecker` and `isRegisteredChecker` are templates
instantiated in every checker TU. Their inline `DenseMap<void *,
std::unique_ptr<CheckerBackend>>` lookup/insert code was therefore
re-instantiated and re-compiled in each of them.
- Route both through the new private out-of-line members
`getCheckerSlot` and `hasCheckerWithTag`, defined in
`CheckerManager.cpp`.
- `getChecker` runs only at checker registration, so there is no
analysis run-time cost.

Build-time impact (instructions retired, 196 `lib/StaticAnalyzer` TUs):
- Total: -0.77% median (-0.12..-0.88% over 5 paired sweeps, noise 0.2%).

Run-time impact (analyzer, 20 TUs of clang/lib/{AST,Sema,Parse,CodeGen},
elapsed cycles, 10 interleaved rounds per binary, before = merge base
a26d5a8):
- Result: no slowdown detected. Median of per-round totals -0.32%: no

    [9 lines not shown]
DeltaFile
+7-2clang/include/clang/StaticAnalyzer/Core/CheckerManager.h
+9-0clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
+16-22 files

LLVM/project 2264465 — clang/include/clang/StaticAnalyzer/Core/PathSensitive CallEvent.h, clang/lib/StaticAnalyzer/Checkers VirtualCallChecker.cpp NullabilityChecker.cpp

[analyzer][NFC] Drop `SourceManager.h` from `CallEvent.h` (#248179)

- `CallEvent::isInSystemHeader` was the only user of `SourceManager` in
`CallEvent.h`, yet its inline body made every includer of the header
parse `clang/Basic/SourceManager.h`. Move the body into `CallEvent.cpp`
and drop the include.
- Include `clang/Basic/SourceManager.h` explicitly in
`ErrnoChecker.cpp`, `ErrnoModeling.cpp`, `LocalizationChecker.cpp`,
`NullabilityChecker.cpp`, `VirtualCallChecker.cpp` and
`ExprEngineCallAndReturn.cpp`, which relied on it transitively.

Build-time impact (instructions retired, 196 `lib/StaticAnalyzer` TUs):
- Total: -0.79% (5 paired sweeps, all faster; run-to-run noise 0.3%).
- 140 TUs change by more than 0.15%, by -1.07% over those (net,
including the TUs that regain the include).

Run-time impact (analyzer, 20 TUs of clang/lib/{AST,Sema,Parse,CodeGen},
elapsed cycles, 10 interleaved rounds per binary, before = merge base
a26d5a8):

    [9 lines not shown]
DeltaFile
+1-20clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
+21-0clang/lib/StaticAnalyzer/Core/CallEvent.cpp
+1-0clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
+1-0clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
+1-0clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
+1-0clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
+26-202 files not shown
+28-208 files

LLVM/project 3ea0413 — clang/include/clang/StaticAnalyzer/Core/PathSensitive CheckerContext.h, clang/lib/StaticAnalyzer/Core CheckerContext.cpp

[analyzer][NFC] Out-line `CheckerContext::addTransitionImpl` (#248181)

- `CheckerContext::addTransitionImpl` is reached from every
`addTransition` overload and instantiated `CoreEngine::makeNode` and the
`ExplodedNodeSet` calls in every checker TU. Move it into
`CheckerContext.cpp`.

Build-time impact (instructions retired, 196 `lib/StaticAnalyzer` TUs):
- Total: -1.23% (4 paired sweeps, all faster; run-to-run noise 0.2%).
- 97 TUs change by more than 0.15%, by -2.5% over those.

Run-time impact (analyzer, 20 TUs of clang/lib/{AST,Sema,Parse,CodeGen},
elapsed cycles, 10 interleaved rounds per binary, before = merge base
a26d5a8):
- Result: no slowdown detected. Median of per-round totals -0.12%: no
slowdown; total cycles are slightly lower (95% CI -0.21%..-0.08%
excludes zero).
- Total per round (%): -0.05, -0.12, -0.20, -0.11, -0.32, -0.02, -0.01,
-0.30, -0.10, -0.19.

    [5 lines not shown]
DeltaFile
+18-0clang/lib/StaticAnalyzer/Core/CheckerContext.cpp
+1-14clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
+19-142 files

LLVM/project 1de6d57 — llvm/lib/Target/NVPTX NVPTXInstrInfo.td, llvm/test/CodeGen/NVPTX i1-select.ll

[NVPTX] Fold predicate only when it has one user (#248159)

This is a perf fix for 9386502801a033a676d9dce8ca8482c0d50e4f43. Folding
the predicate is not beneficial if there are multiple users. In that
case the shared predicate can be kept in a register and we need a
shorter code sequence in the final codegen.
DeltaFile
+7-2llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
+3-3llvm/test/CodeGen/NVPTX/i1-select.ll
+10-52 files

LLVM/project b520c77 — mlir/python/mlir/dsl/core dsl.py, mlir/test/python/dsl core_tracing.py core_plugins.py

[mlir][python][dsl] Move the DSL to mlir/python/mlir/dsl

The package moves from mlir/tools/mlir-dsl to the root Python package and
its tests to mlir/test/python/dsl, so they use the lit configuration of the
Python bindings. The MLIR_ENABLE_PYTHON_DSL option and the check-mlir-dsl
target are removed: the DSL is built and tested with the bindings.

Co-Authored-By: Claude Fable 5.2 <noreply at anthropic.com>
DeltaFile
+0-370mlir/tools/mlir-dsl/dsl/core/dsl.py
+370-0mlir/python/mlir/dsl/core/dsl.py
+0-220mlir/tools/mlir-dsl/test/core_plugins.py
+220-0mlir/test/python/dsl/core_plugins.py
+0-158mlir/tools/mlir-dsl/test/core_tracing.py
+158-0mlir/test/python/dsl/core_tracing.py
+748-74826 files not shown
+1,050-1,19232 files

LLVM/project 0ce8723 — llvm/include/llvm/Transforms/IPO Attributor.h, llvm/lib/Transforms/IPO OpenMPOpt.cpp AttributorAttributes.cpp

[Attributor][NFC] Remove AAValueSimplify

Unused since bf789b1957ef replaced it with AAPotentialValues. Seed
AAPotentialValues instead in allow_list.ll.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+0-449llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+4-110llvm/include/llvm/Transforms/IPO/Attributor.h
+4-13llvm/test/Transforms/Attributor/allow_list.ll
+2-2llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+10-5744 files

LLVM/project dcb8924 — llvm/lib/Analysis ValueTracking.cpp, llvm/test/Transforms/InstCombine trunc.ll

[ValueTracking] Fix arg conflation in ComputeMaxSignificantBits (#248129)

The function llvm::ComputeMaxSignificantBits passes a Depth integer in
place of the UseInstrInfo boolean to ComputeNumSignBits, which was
unflagged to date due to implicit conversions. Fix this.

Assisted-by: llm, for testing
DeltaFile
+15-0llvm/test/Transforms/InstCombine/trunc.ll
+2-1llvm/lib/Analysis/ValueTracking.cpp
+17-12 files

LLVM/project 115be72 — flang/include/flang/Support Fortran-features.h, flang/lib/Semantics expression.cpp

[flang] Optionally warn when a structure constructor nulls a pointer subcomponent (#247865)

When a structure constructor omits a component whose type has default
initialization, that component gets the default initialization.
In the case where a pointer subcomponent has no initializer of its own,
the standard (F'2023 7.5.10 p3, 19.5.2.2 p1, 7.5.4.6 p7) specifies that
it is undefined. However, flang makes such a pointer subcomponent
NULL().
This PR adds a usage warning for it which is off by default.  The
warning is enabled by -pedantic or -Wdefault-init-null-pointer.
The existing -Wdefault-struct-constructor-null-pointer warning catches
cases
where the pointer is omitted directly. This PR and
-Wdefault-init-null-pointer
cover a pointer nested inside an omitted component.

Follow-up to #247370.

Assisted-by: AI
DeltaFile
+150-0flang/test/Semantics/structconst14.f90
+96-6flang/lib/Semantics/expression.cpp
+3-0flang/unittests/Common/FortranFeaturesTest.cpp
+1-1flang/include/flang/Support/Fortran-features.h
+250-74 files

LLVM/project ab101c3 — llvm/test/CodeGen/PowerPC vec_conv_fp64_to_i16_elts.ll vec_conv_fp64_to_i8_elts.ll

[PowerPC] Enable SlotIndexes compaction by default

Greedy measures live ranges in slot indexes, and instructions erased
before allocation (by PHI elimination, two-address lowering and the
coalescer) leave entries behind that make ranges look longer than
they are. Opt PowerPC in to dropping them, as AMDGPU and ARM do, so
allocation works with real distances. Passing
-greedy-compact-slot-indexes=false restores the old behaviour.

On CTMark (pwr8, pwr10, AIX, ppc32), .text and llc compile time move
by less than 0.03% and evictions drop by 1.5-5.8%.

The test updates are register allocation changes; csr-split.ll gets
back the live range split it was written to check.
DeltaFile
+1,589-1,644llvm/test/CodeGen/PowerPC/clmul-vector.ll
+279-279llvm/test/CodeGen/PowerPC/all-atomics.ll
+192-192llvm/test/CodeGen/PowerPC/vec_conv_fp32_to_i16_elts.ll
+165-165llvm/test/CodeGen/PowerPC/more-dq-form-prepare.ll
+142-142llvm/test/CodeGen/PowerPC/vec_conv_fp64_to_i8_elts.ll
+132-132llvm/test/CodeGen/PowerPC/vec_conv_fp64_to_i16_elts.ll
+2,499-2,55437 files not shown
+3,490-3,54243 files

LLVM/project 59b5cab — llvm/lib/Target/RISCV RISCVFrameLowering.h RISCVFrameLowering.cpp, llvm/test/CodeGen/RISCV/rvv interrupt-attr-nocall.ll callee-saved-regs.ll

[RISCV] Fix RVV callee-saves in realigned frames

The prologue saves RVV callee-saved registers before it realigns SP
and sets up BP, but their slots were addressed from the realigned SP
or BP. The epilogue reloaded them from the wrong address, BP frames
stored them through the caller's s1, and their CFI was wrong.

Address these slots from FP, which does not move, and derive their
CFI from getFrameIndexReference so the two cannot diverge.

Fixes #244792
DeltaFile
+112-64llvm/test/CodeGen/RISCV/rvv/rvv-cfi-info.ll
+34-28llvm/test/CodeGen/RISCV/rvv/callee-saved-regs.ll
+23-12llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+8-2llvm/test/CodeGen/RISCV/rvv/interrupt-attr-nocall.ll
+1-2llvm/lib/Target/RISCV/RISCVFrameLowering.h
+178-1085 files

LLVM/project 46a064a — llvm/test/CodeGen/RISCV/rvv interrupt-attr-nocall.ll callee-saved-regs.ll

[RISCV] Add tests for RVV CSRs in realigned frames

Precommit the tests for #244792 so that its fix shows up as a diff.
The checks record the current, wrong output: the prologue saves the
vector callee-saved registers before it realigns the stack, and the
epilogue reloads them from a different address.
DeltaFile
+382-0llvm/test/CodeGen/RISCV/rvv/rvv-cfi-info.ll
+139-0llvm/test/CodeGen/RISCV/rvv/callee-saved-regs.ll
+43-0llvm/test/CodeGen/RISCV/rvv/interrupt-attr-nocall.ll
+564-03 files

LLVM/project 7772ae4 — flang/lib/Evaluate variable.cpp, flang/lib/Semantics scope.cpp

Don't treat distinct literal substrings as equal

Expression equality compares dummy arguments by position, as needed
when comparing interfaces (F2023 15.3.2.2). As a result, a host dummy
and an internal procedure dummy at the same position currently compare
equal, even though they are distinct entities (19.5.1.4).

This was not a problem before because literal substrings never compared
equal, so their bounds were never considered. Now that literal
substrings are compared by value, 'ab'(i:i) with host dummy i compares
equal to 'ab'(j:j) with internal dummy j. This can cause Semantics to
reject valid code, such as an ATOMIC READ of a(iachar('ab'(j:j))) into
a(iachar('ab'(i:i))).

For literal substring bounds, only match dummy arguments by position
when neither procedure is nested within the other.

Lowering's own expression equality compared literals by name(), which
is never set, so any two literals compared equal. Since Semantics now

    [6 lines not shown]
DeltaFile
+51-8flang/lib/Evaluate/variable.cpp
+16-0flang/test/Semantics/separate-mp02.f90
+13-0flang/test/Semantics/OpenMP/atomic-read.f90
+13-0flang/test/Lower/OpenMP/atomic-update.f90
+13-0flang/test/Lower/OpenACC/acc-atomic-update.f90
+0-11flang/lib/Semantics/scope.cpp
+106-192 files not shown
+119-228 files

LLVM/project 2c73bfb — clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp, clang/test/Modules lsv-objc.m

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+5,270-0llvm/lib/Target/Hexagon/HexagonGlobalSchedulerV2.cpp
+1,922-0mlir/test/Dialect/X86/vector-contract-16bit-fp-to-fma.mlir
+0-1,425mlir/test/Dialect/X86/vector-contract-bf16-to-fma.mlir
+722-262llvm/test/Transforms/LoopUnroll/RISCV/outer-loop-unroll-threshold.ll
+926-0clang/test/Modules/lsv-objc.m
+852-67clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+9,692-1,7541,455 files not shown
+54,605-15,8981,461 files

LLVM/project f568531 — clang/lib/CodeGen CodeGenModule.cpp, clang/test/CodeGen/PowerPC attr-target-clones-export-mapping.c

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+12-0clang/test/CodeGen/PowerPC/attr-target-clones-export-mapping.c
+2-1clang/lib/CodeGen/CodeGenModule.cpp
+14-12 files

LLVM/project bbea500 — llvm/lib/Target/RISCV RISCVExpandPseudoAtomics.cpp, llvm/test/CodeGen/RISCV atomic-masked-merge-zero.ll atomic-cmpxchg-branch-on-result.ll

Revert "[RISCV] Remove unnecessary 'and' from masked cmpxchg loop. (#246502)"

This reverts commit 5fa79a43c0a3804663f8966ff902179f5e9e2dd0.
DeltaFile
+384-256llvm/test/CodeGen/RISCV/atomic-cmpxchg.ll
+384-256llvm/test/CodeGen/RISCV/GlobalISel/atomic-cmpxchg.ll
+48-32llvm/test/CodeGen/RISCV/atomic-signext.ll
+24-16llvm/test/CodeGen/RISCV/atomic-cmpxchg-branch-on-result.ll
+11-10llvm/lib/Target/RISCV/RISCVExpandPseudoAtomics.cpp
+6-6llvm/test/CodeGen/RISCV/atomic-masked-merge-zero.ll
+857-5761 files not shown
+860-5787 files

LLVM/project 6d46669 — lldb/include/lldb/Target Process.h, lldb/source/Target Process.cpp

[lldb] Publish the attaching state before sending the attach request (#245632)

When attaching to a process that was connected before the attach (e.g.
`process connect` followed by `process attach --waitfor`), the private
state thread is already running, so Process::Attach has to publish
eStateAttaching itself. It only did so after
DoAttachToProcessWithName/ID returned, but by then the attach request
may already be on its way to the server.

TestAttachWaitConnected.py shows the resulting race:

1. The test calls SBTarget::Attach with a wait-for attach info.
Process::Attach calls DoAttachToProcessWithName, which hands the
vAttachWait packet to the gdb-remote async thread and returns.

2. The mock server receives vAttachWait, and the test immediately calls
SBProcess::SendAsyncInterrupt to cancel the attach.

3. Process::SendAsyncInterrupt sends eBroadcastBitInterrupt to the

    [14 lines not shown]
DeltaFile
+25-13lldb/source/Target/Process.cpp
+10-0lldb/include/lldb/Target/Process.h
+0-2lldb/test/API/functionalities/gdb_remote_client/TestAttachWaitConnected.py
+35-153 files

LLVM/project 92e702c — lld/MachO InputSection.h InputSection.cpp, lld/test/MachO function-starts.s

[lld][MachO] Stream FunctionStartsSection from laid-out code sections (#247021)

Currently, `FunctionStartsSection::finalizeContents()` scans every
`ObjFile`'s full symbol table, resolves `defined->getVA()` for each live
code symbol, and sorts all addresses with `llvm::sort`.

By the time `FunctionStartsSection::finalizeContents()` runs, output
segments, their sections, and each `ConcatOutputSection`'s inputs are
already laid out in ascending virtual address order, and each input
section's `symbols` list is kept sorted by offset. This PR walks those
laid-out code sections directly.

To avoid calling `isCodeSection()` on every subsection, we add an
`isCodeSection(const Section &)` overload and cache its result across
consecutive inputs sharing the same originating `Section`. This targets
the common case where most subsections remain in their original input
order (even under an order file, non-code sections and unprioritized
code sections stay grouped by `Section`).


    [13 lines not shown]
DeltaFile
+129-0lld/test/MachO/function-starts.s
+38-19lld/MachO/SyntheticSections.cpp
+5-2lld/MachO/InputSection.cpp
+1-0lld/MachO/InputSection.h
+173-214 files

LLVM/project ca6d38a — clang/lib/CIR/CodeGen CIRGenExpr.cpp, clang/test/CIR/CodeGen cxx2b-static-call-operator.cpp

[CIR] Emit the object of an inherited static call operator

Sema converts the object argument of an inherited static operator() or
operator[] to the base class with a CK_NoOp cast, not a derived-to-base
conversion.  emitCastLValue rejects a CK_NoOp that changes the record
type and reports errorNYI.

emitCall now drops that cast before emitting the object as an ignored
expression.  The object is never read, so the cast has no effect on the
IR.  emitCastLValue still rejects every other record-changing CK_NoOp.
This change does not handle CK_AddressSpaceConversion, which Sema uses
when the object is in a different address space.

libc++'s ranges::begin, ranges::end and ranges::data now inherit a
static operator() from std::_CPO.  Without this change, 860 libc++ std/
tests fail to compile under -fclangir.

Assisted-by: Cursor / Claude Opus 5.5
DeltaFile
+205-0clang/test/CIR/CodeGen/cxx2b-static-call-operator.cpp
+10-2clang/lib/CIR/CodeGen/CIRGenExpr.cpp
+215-22 files

LLVM/project bbf95b2 — llvm/include/llvm/Transforms/IPO Attributor.h, llvm/lib/Transforms/IPO Attributor.cpp

Merge branch 'users/reble/attributor/skip-lookup-disallowed-aas' into users/reble/attributor/skip-load-store-seeding
DeltaFile
+6-14llvm/include/llvm/Transforms/IPO/Attributor.h
+1-1llvm/lib/Transforms/IPO/Attributor.cpp
+7-152 files

LLVM/project 083885a — llvm/test/TableGen string-hex-escape.td, llvm/test/TableGen/Inputs string-hex-escape-eof.td

Move end of file test input to a file

printf does not handle the escaped backslash the same way on Windows.

Assisted-by: Claude
DeltaFile
+2-2llvm/test/TableGen/string-hex-escape.td
+1-0llvm/test/TableGen/Inputs/string-hex-escape-eof.td
+3-22 files

LLVM/project f85e2db — llvm/test/CodeGen/AArch64 sve-fixed-length-masked-expandloads.ll sve-interleaved-accesses.ll, llvm/test/CodeGen/AMDGPU constant-address-space-32bit-vmem.ll

Merge branch 'main' into users/arsenm/runtime-libcalls/asan-out-of-tree-runtimes
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
+880-55llvm/test/CodeGen/AMDGPU/constant-address-space-32bit-vmem.ll
+4,887-2,056596 files not shown
+24,505-5,887602 files

LLVM/project e9b6981 — compiler-rt/lib/reasan reasan_allocator.h reasan_hsa_interceptors.cpp, compiler-rt/lib/sanitizer_common sanitizer_offload.h sanitizer_offload_hsa.h

Optional, comments, stuff
DeltaFile
+36-19compiler-rt/lib/reasan/reasan_allocator.cpp
+26-7compiler-rt/lib/sanitizer_common/sanitizer_offload.cpp
+14-11compiler-rt/lib/sanitizer_common/sanitizer_offload_hsa.h
+3-1compiler-rt/lib/reasan/reasan_allocator.h
+4-0compiler-rt/lib/reasan/reasan_hsa_interceptors.cpp
+1-0compiler-rt/lib/sanitizer_common/sanitizer_offload.h
+84-386 files