[lldb] Require base classes that share a pointer to be pointers (NFC) (#243612)
Currently ValueObjectChild gives a base class child the pointer value of
its parent whenever the parent's type has eTypeInstanceIsPointer. That
is wrong for a base class whose instances aren't pointers, such as an
Objective-C base class of a Swift class, which lives at the address that
the pointer points to. No type system in LLVM sets
eTypeInstanceIsPointer, but the Swift type system does, and the Swift
fork works around this by comparing the type systems of the parent and
the child.
This patch fixes this by also requiring the type of the base class to
have eTypeInstanceIsPointer.
Assisted-by: Claude
[CIR][OpenMP] Add support for 'distribute parallel for' with 'target teams'
Adds support for handling the full '[target] teams distribute parallel for'.
Introduces setting the omp.composite attibute for the 'distribute parallel for'
composite construct.
Assisted-by: Cursor / Claude Sonnet 5 High
[CIR][OpenMP] Add initial support for distribute
This patch adds initial support for the OpenMP 'distribute' directive. Basic
code generation for the standalone and combined cases is introduced. Support
for clauses will be added in the future. The composite 'teams distribute
parallel for' form will be added in a subsequent patch.
Assisted-by: Cursor / Claude Sonnet 5 High
[CIR][OpenMP] Add support for omp teams
This patch adds support for the OpenMP 'teams' directive, both standalone
and as the combined `target teams` construct. isCombinableLeaf now also
recognizes teams, so an explicitly-nested `target` + `teams` pair gets
the same omp.combined marking as the combined case.
Assisted-by: Cursor / Claude Sonnet 5 High
[CIR][OpenMP] Add support for host_eval so that SPMD kernels can be used
This patch adds support for host_eval so that SPMD kernels and in the future
num_threads and other clauses can be implemented correctly.
Assisted-by: Cursor / Claude Sonnet 5 High
[CIR][OpenMP] Add support for the OpenMP 'for' directive (#229256)
This patch adds support for wsloop in ClangIR: the `for` directive and
its combined forms `parallel for` and `target parallel for`. This is
lowered to an omp.wsloop + omp.loop_nest, nested utilizing the existing
queue-based decomposition.
Assisted-by: Cursor / Claude Sonnet 5 High
[lldb] Add GetByteStride API for types (#242506)
Add `GetByteStride` to `CompilerType`, `SBType`, and `TypeSystem`.
Stride is the size allocated for a type when placed sequentially in
contiguous storage. In C/C++/ObjC, the stride is the size, but in other
languages (ex Swift) have types which have separate values for size and
stride. This change supports such cases.
[WebKit checkers] Don't treat an indirect call as a mutation of a guardian (#242619)
The local variable checkers reported a raw pointer that is guarded by a
local variable or parameter whenever the guarded scope contained a call
without a direct callee, such as a call through a function pointer or a
block, even when the guardian wasn't passed to the call. With fast
enumeration, the guarded scope is the loop body:
```cpp
if (auto *results = dynamic_objc_cast<NSArray>(dictionary[@"results"])) {
for (id item in results) {
if ([item isKindOfClass:PAL::getDDScannerResultClassSingleton()])
append((DDScannerResult *)item);
}
}
```
The element variable item was reported because the soft-linked class
[12 lines not shown]
[AMDGPU] Remove unused AMDGPUOperand::setImm (NFC) (#243539)
setImm was added specifically for parseFORMAT on July 24, 2020 in commit
6b8948922c59c9f786996387b41d8e29ed3e7a8a. The last caller was removed
on November 17, 2026 in commit 051b6b06f1b6e8763dae66b70205447e40d4b5ff,
which split parseFORMAT into parseFormat and parseFormatOp.
Assisted-by: Antigravity
[Attributor] Remove unused PotentialValuesState::getBestState (NFC) (#243404)
The last caller of the zero-argument overload was removed on November
16, 2026 in commit 2218d6214d547b52b1122d85151f799a10301560.
Assisted-by: Antigravity
[lld][MachO] Remove -no_objc_relative_method_lists from tests (#243254)
`-objc_relative_method_lists` was enabled by default in
https://github.com/llvm/llvm-project/pull/104519, but it left
`-no_objc_relative_method_lists` in a bunch of tests. Remove the flag
from the tests and fix them.
LLM assisted
sysutils/noct: Add new port
Noct is a command-line filesystem inspection and analysis toolkit for
Unix-like systems. It combines fast directory listing with specialized
views for ownership, permissions, sizes, ages, duplicate files, scripts,
extensions, filesystem boundaries, cleanup candidates, and more.
It supports rich terminal colors, icons, themes, Tree output, filtering,
sorting, configurable long listings, and focused inspection modes.
WWW: https://github.com/ferusx/noct
PR: 297935
Approved by: osa, vvd (mentors, implicit)
[VPlan] Cost ExtractLane by the type of the vector it extracts from. (#243633)
ExtractLane's first operand is the lane index, and VecTy had an
incorrect element type.
Use getScalarType, which handles result types of both ExtractLane and
ExtractElement correctly.
[objdump] Fix relative method pointer size (#243250)
Some pointers in `print_relative_method_list()` were printed assuming
the wrong size. Fix that by using `PRIx64`. Also compare `pointerBits ==
64` rather than `pointerSize` which is the number of bytes, not the
number of bits. Lastly use `get_pointer_64()` since the input is 64
bits.
Add a test that uses `update_test_body.py` to dump YAML for the input.
LLM assisted
Tune SPL large allocations, drop default ZFS tunable
Our kernels' larger MAX_ORDER raises spl_kmem_alloc_max from 1MB
to 8-16MB. kmem/vmem allocations of that size then try physically
contiguous memory and wake kswapd, which on fragmented memory may
evict a large part of the ARC to satisfy them. Restore the usual
1MB limit, above which SPL uses vmalloc directly.
zfs_arc_shrinker_limit=0 is the default since ZFS 2.3.
[LFI][AArch64] Account for deferred LR guard flush in getInstSizeInBytes (#224791)
In AArch64MCLFIRewriter, any control flow instruction (branches, calls,
returns)
can trigger flushing of an active DeferredLRGuard, emitting a `4-byte`
link-register
mask (`add x30, x27, w30, uxtw`) immediately before the instruction.
To preserve generic pseudo-instruction sizing (such as `TCRETURN*`)
while accounting
for the flush, wrap `AArch64InstrInfo::getInstSizeInBytes` by
calculating the exact
value for all control-flow instructions then adding a `4-byte`
overestimate for LFI. It did
require adjusting LFI-specific sizing for indirect and authenticated
tail calls as well as
the `TLSDESC` call sequences in the calculation. These estimates are
verified in LFI's
InstSizes and CodeGen tests.
Assisted-by: Gemini
[flang][Evaluate] Analyze contiguity and copies per consequent-arg (#238055)
The contiguity and copy-in/copy-out analysis that semantics and lowering
use treated a conditional argument (F2023 R1526) as a single expression.
It answered from the condition or from the first consequent-arg. The
actual argument is the consequent-arg chosen at run time (F2023 15.5.2.3
p2), so the analysis has to account for every consequent-arg. This is
also the base for lowering conditional arguments. Without it, an array
conditional argument passed to a CONTIGUOUS dummy argument wouldn't get
the copy-in it needs.
Contiguity:
- IsContiguous() had an overload for ActualArgument that no caller
reached, because the header declared only the function template. The
template traversed the whole argument; it saw the scalar condition first
and reported every conditional argument as contiguous. Declare the
overload in check-expression.h with default arguments and remove the
template's explicit instantiation for ActualArgument. Other actual
arguments get the same answers as before.
[74 lines not shown]